⚙️ Biome + Lefthook でコミット時にリントとフォーマットを行う方法
インストールと初期化
npm i -D @biomejs/biome lefthook
npx biome init
Lefthook の設定
pre-commit:
commands:
check:
run: "npx biome check --files-ignore-unknown=true --no-errors-on-unmatched {staged_files}"
staged_fixed: true