tool: lefthook for commit hooks

This commit is contained in:
2026-02-04 19:29:24 -08:00
parent 3c00e74692
commit ac48017e30
3 changed files with 30 additions and 0 deletions

6
lefthook.yml Normal file
View File

@@ -0,0 +1,6 @@
pre-commit:
commands:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,svelte,json,jsonc}"
run: npx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files}
stage_fixed: true