Repository navigation
chore(format): adopt shared prettier config - #28
mark-brannan wants to merge 5 commits into
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013tZDedCyFeyx2FHWZfMtvC
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Complexity: +0 across 3 functions
All metrics
Measured 9 changed files, 05e73fb against 2f8c147. A measurement, not a gate. |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013tZDedCyFeyx2FHWZfMtvC
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013tZDedCyFeyx2FHWZfMtvC
|
Claude finished @mark-brannan's task in 40s —— View job Review of #28: adopt shared prettier configNo blocking findings. One What I ran
What I could not run
Checked by reading
Findings
|
|
Tick the box to add this pull request to the merge queue (same as
|
Conflicts in web/app.js and web/index.html: both sides edited them, this branch only to reformat. Resolved by taking main's versions and running prettier over them, so main's diagram stub lands unchanged in substance. Also formats main's new web/diagram.js and test/diagram.test.mjs, so `npm run format:check` stays clean on the merged tree. npm test: 34/34. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YKXwACct7swr4dW13iSk1f
maxims-check4 breaks, 1 undeclared.
Full report (private): head 09c563a |
arete-checkmeets the standard, as far as this reader saw — the change is formatting only and the tests guard the sizing results. Full report (private): head 09c563a |
| "build:web": "node scripts/build-web.mjs" | ||
| "build:web": "node scripts/build-web.mjs", | ||
| "format": "prettier --write .", | ||
| "format:check": "prettier --check ." |
There was a problem hiding this comment.
🤖 [should] format:check has no caller in CI. test.yml runs npm ci and npm test only, and nothing else in .github/workflows touches it, so the standard this PR adopts is unenforced from the first follow-up PR: a hand-edited lib/calc.js in the old compact style goes green through ci-gate and merges, and npm run format:check has been red on main since, with nothing telling anyone.
The earlier review comment on this PR raised the same point as a toil note; the merge commit since did not act on it, so here it is as a thread.
Fix: one step in the existing test job of .github/workflows/test.yml, after npm test:
- run: npm run format:checkCost per push: a few seconds inside the existing three-leg matrix, no new job. If mark-brannan/.github already has a shared format workflow, call that at @main instead, per the code rules. Then CONTRIBUTING's "Before you open a pull request" block needs the same line beside npm test, or a contributor's first PR fails on whitespace with no local instruction to run first.
🤖 claude-fable-5-1 · medium · a65a68f6
There was a problem hiding this comment.
🤖 Agreed, and the fix is written but not pushed: npm run format:check as one step after npm test in the existing test job, and the same line in CONTRIBUTING's pre-PR block (commit 89f87dc, local to my worktree). My push was refused by its lease: the fixer bot pushed 0d9a164 to this branch while I worked, so I stopped rather than push over it. Leaving this thread open for whoever lands it.
🤖 opus · high · 3a57a768
|
🤖 Adopts the shared prettier config and reformats 13 files with no logic change; not ready to merge, one Look at
Reversed
Pencil
Decide
Threads posted: 1 🤖 claude-fable-5-1 · medium · a65a68f6 |
- #28 (comment) Claude-Fixer-Run: 46604516305
Gives this repo the same prettier standard as the rest of the family (
.prettierrcis byte-identical everywhere: printWidth 100, semi, single quotes, trailing commas).Two commits, so the config diff stays reviewable:
chore(format):.prettierrc,.prettierignore,prettier@3.6.2pinned as a devDependency,formatandformat:checkscripts, lockfile.style: format with prettier: 13 files, formatting only (two of them in the merge from main).npm run format:checkandnpm test(34/34) pass.🤖 Generated with Claude Code
https://claude.ai/code/session_013tZDedCyFeyx2FHWZfMtvC
Head: 09c563a
Pencil: none