Skip to content

Commit f43512a

Browse files
committed
fix: Bring back globs
1 parent 5692676 commit f43512a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lefthook.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ pre-commit:
22
parallel: true
33
commands:
44
format:
5+
glob: '*.{css,html,json,less,md,scss,yml}'
56
run: npx -c "cross-env NODE_OPTIONS=--max_old_space_size=4096 prettier --write --log-level error {staged_files}"
67
stage_fixed: true
78
lint:
9+
glob: '*.{js,jsx,ts,tsx,cjs,mjs,cts,mts}'
810
run: npx eslint {staged_files} --fix
911
stage_fixed: true

0 commit comments

Comments
 (0)