Skip to content

Commit f2dd4e9

Browse files
committed
chore: commit hook
1 parent 129a97f commit f2dd4e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lefthook.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@ pre-commit:
22
commands:
33
format:
44
glob: '*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc,vue}'
5-
run: bun prettier {staged_files} --ignore-unknown --write
5+
run: bun prettier {staged_files} --ignore-unknown --write && git update-index --again
6+
7+
lint:
8+
glob: '*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc,vue}'
9+
run: bun biome check --write --no-errors-on-unmatched --files-ignore-unknown=true {staged_files} && git update-index --again

0 commit comments

Comments
 (0)