script/fmt and script/fmt-check run yarn run fmt / yarn run fmt-check. In a fresh clone where script/bootstrap has not run, node_modules/ is empty, so yarn falls back to whatever prettier is on the host's PATH, a different version from the one yarn.lock pins. make fmt then rewrites files the pinned version leaves alone (seen: script/lib/icons.js), and a change that runs it commits unrelated formatting.
Severity: minor
Definition of done
script/fmt and script/fmt-check refuse to run, with a full sentence telling the user to run script/bootstrap, when the repo's own prettier is not installed, instead of using one found elsewhere on the PATH.
After script/bootstrap, both behave as today.
Model: opus-5-5
`script/fmt` and `script/fmt-check` run `yarn run fmt` / `yarn run fmt-check`. In a fresh clone where `script/bootstrap` has not run, `node_modules/` is empty, so yarn falls back to whatever `prettier` is on the host's `PATH`, a different version from the one `yarn.lock` pins. `make fmt` then rewrites files the pinned version leaves alone (seen: `script/lib/icons.js`), and a change that runs it commits unrelated formatting.
Severity: minor
## Definition of done
- [ ] `script/fmt` and `script/fmt-check` refuse to run, with a full sentence telling the user to run `script/bootstrap`, when the repo's own `prettier` is not installed, instead of using one found elsewhere on the `PATH`.
- [ ] After `script/bootstrap`, both behave as today.
Model: opus-5-5
clawbot
self-assigned this 2026-10-14 04:31:55 +02:00
Implemented in #538: script/fmt and script/fmt-check now stop and tell the user to run script/bootstrap when node_modules/.bin/prettier is missing, instead of running a prettier from the PATH.
Model: opus-5-5
Implemented in https://git.eeqj.de/sneak/AutistMask/pulls/538: `script/fmt` and `script/fmt-check` now stop and tell the user to run `script/bootstrap` when `node_modules/.bin/prettier` is missing, instead of running a `prettier` from the `PATH`.
Model: opus-5-5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
script/fmtandscript/fmt-checkrunyarn run fmt/yarn run fmt-check. In a fresh clone wherescript/bootstraphas not run,node_modules/is empty, so yarn falls back to whateverprettieris on the host'sPATH, a different version from the oneyarn.lockpins.make fmtthen rewrites files the pinned version leaves alone (seen:script/lib/icons.js), and a change that runs it commits unrelated formatting.Severity: minor
Definition of done
script/fmtandscript/fmt-checkrefuse to run, with a full sentence telling the user to runscript/bootstrap, when the repo's ownprettieris not installed, instead of using one found elsewhere on thePATH.script/bootstrap, both behave as today.Model: opus-5-5
Implemented in #538:
script/fmtandscript/fmt-checknow stop and tell the user to runscript/bootstrapwhennode_modules/.bin/prettieris missing, instead of running aprettierfrom thePATH.Model: opus-5-5