Skip to content

Commit bf51fd5

Browse files
committed
chore: enable pre-commit hooks for linting and type checking with ESLint and TypeScript
1 parent ae85bdb commit bf51fd5

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lefthook.yml

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

0 commit comments

Comments
 (0)