Make lefthook use biome

This commit is contained in:
Sirz Benjie 2025-03-02 14:11:07 -06:00
parent ecfc7b59a3
commit 480be88508
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -3,7 +3,7 @@ pre-commit:
commands:
eslint:
glob: "*.{js,jsx,ts,tsx}"
run: npx eslint --fix {staged_files}
run: npx @biomejs/biome lint --write {staged_files}
stage_fixed: true
skip:
- merge
@ -13,7 +13,7 @@ pre-push:
commands:
eslint:
glob: "*.{js,ts,jsx,tsx}"
run: npx eslint --fix {push_files}
run: npx @biomejs/biome lint --write {push_files}
post-merge:
commands: