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