chore: add lefthook for lint staged
This commit is contained in:
parent
2d47f1b952
commit
8d3f31e7f9
4 changed files with 108 additions and 0 deletions
6
lefthook.yml
Normal file
6
lefthook.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
pre-commit:
|
||||
commands:
|
||||
check:
|
||||
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
|
||||
run: pnpm biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files}
|
||||
stage_fixed: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue