Skip to content

Commit a5fa69e

Browse files
committed
fix: hook
1 parent 20c9d7f commit a5fa69e

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

lefthook.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# pre-commit:
2-
# parallel: true
3-
# commands:
4-
# lint:
5-
# files: git diff --name-only @{push}
6-
# glob: "*.{js,ts,jsx,tsx}"
7-
# run: npx eslint {files}
8-
# types:
9-
# files: git diff --name-only @{push}
10-
# glob: "*.{js,ts, jsx, tsx}"
11-
# run: npx tsc --noEmit
12-
# commit-msg:
13-
# parallel: true
14-
# commands:
15-
# commitlint:
16-
# run: npx commitlint --edit
1+
pre-commit:
2+
parallel: true
3+
commands:
4+
lint:
5+
files: git diff --name-only @{push}
6+
glob: '*.{js,ts,jsx,tsx}'
7+
run: npx eslint {files}
8+
types:
9+
files: git diff --name-only @{push}
10+
glob: '*.{js,ts, jsx, tsx}'
11+
run: npx tsc --noEmit
12+
commit-msg:
13+
parallel: true
14+
commands:
15+
commitlint:
16+
run: npx commitlint --edit

0 commit comments

Comments
 (0)