chore(tooling): pin/reconcile Prettier so pnpm format doesn't churn unrelated files #393
Labels
No labels
area:auth
area:ci
area:db
area:infra
area:native
area:pwa
area:service
epic
feature
foundation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
james/carol#393
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Flagged during the data-export PR (#322).
Symptom
Running the repo's
formatscript (prettier --write .) reformatted ~130 unrelated files because the locally-resolved Prettier (3.8.4 at the time) diverges from whatever 3.x the repo was last formatted with. The export PR reverted that churn by hand and committed only the intended files. CI does not gate on Prettier today (noformat:checkin the workflows), so this is a developer-experience papercut, not a build failure — but it makespnpm formatunsafe to run casually.Work
prettier --write .as its own isolated commit so the tree matches the pinned formatter.format:checkCI step (and/or a lefthookpre-commitformatter on staged files) so drift can't silently reaccumulate.eslint-config-prettier(see #164) so ESLint and Prettier don't fight.Caveat
Part of the observed divergence may have been a stale sandbox
node_modules; confirm the version actually resolved from the lockfile before assuming a real pin gap.