You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enforce block statements with Biome's useBlockStatements #666
Control-flow bodies are written both ways across the codebase:
if(errorinstanceofReleaseKitError)returntrue;
if(errorinstanceofReleaseKitError){returntrue;}
The block form should be the only one. Nothing enforces it today: biome.jsonc turns style/useBlockStatements off explicitly, and eslint.config.js has no curly rule.
Size
With the rule set to error, Biome 2.5.6 reports 703 violations in 134 files:
Area
Count
packages/release/src
213
packages/version/test
89
packages/notes/src
88
packages/version/src
78
scripts/
51
packages/publish/src
43
packages/core/src
32
packages/git/src
25
packages/notes/test
23
packages/forge/src
18
packages/release/test
15
packages/config/src
14
packages/publish/test
8
everything else
6
Every one is auto-fixable. Biome marks the fix unsafe by default, so it needs --unsafe:
Enable the rule and mark its fix safe, so the pre-commit biome check --write (lint-staged) adds the braces automatically instead of only reporting them:
Checked: with this config, biome check --write without --unsafe rewrites if (x) return true; into the block form.
Apply the fix across the repo in one mechanical commit, and add that commit to .git-blame-ignore-revs (the file doesn't exist yet) so git blame skips it.
Run pnpm lint, pnpm typecheck and pnpm test on the result. The fix only adds braces, but scripts/ and test files are in scope too.
Sequencing
The sweep touches most source files, so it will conflict with any open PR that edits them (currently #616, #617, #618 and #619). Either land it once those merge, or land it first and have each open branch run the same fix command before merging main: both sides then carry identical braces, so only real changes conflict.
Activity
docs(agents): point the braces rule at #666
chore(biome): enforce block statements (#679)
docs: add commands and gotchas to AGENTS.md, and drop CLAUDE.md (#673)