moxie/tooling-biome-lefthook

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 (postinstall runs lefthook install).

Editor integration

  • Use the Biome extension for VS Code / Cursor for format on save if your team agrees — still run yarn lint before push.

TypeScript

  • @biomejs/biome handles style; TypeScript errors may also be surfaced by fork-ts-checker-webpack-plugin during yarn dev / build.