Skip to content

Commit 2b84f50

Browse files
fix: enable lefthook again
1 parent 9588d53 commit 2b84f50

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

lefthook.yml

+16-16
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)