Lint, format & Git hooks
Biome
Biome replaces ESLint + Prettier for this repo.
| Command | Scope |
|---|---|
yarn lint |
Check src/ |
yarn lint:fix |
Check + auto-fix src/ |
yarn format |
Format src/ and build/ |
Configuration: biome.json (quotes, indent, line width).
Lefthook
lefthook.yml runs biome check --write on staged *.js, *.ts, *.json before commit, then re-stages fixes.
- Install hooks via
yarn install(postinstallrunslefthook install).
Editor integration
- Use the Biome extension for VS Code / Cursor for format on save if your team agrees — still run
yarn lintbefore push.
TypeScript
@biomejs/biomehandles style; TypeScript errors may also be surfaced byfork-ts-checker-webpack-pluginduringyarn dev/ build.