Skip to content

Commit

Permalink
fix: enable pre-commit hooks for linting and type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
lposen committed Dec 11, 2024
1 parent 5e89fe4 commit cd1b004
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# pre-commit:
# parallel: true
# commands:
# lint:
# glob: "*.{js,ts,jsx,tsx}"
# run: npx eslint {staged_files}
# types:
# glob: "*.{js,ts, jsx, tsx}"
# run: npx tsc
# commit-msg:
# parallel: true
# commands:
# commitlint:
# run: npx commitlint --edit
pre-commit:
parallel: true
commands:
lint:
glob: "*.{js,ts,jsx,tsx}"
run: npx eslint {staged_files}
types:
glob: "*.{js,ts,jsx,tsx}"
run: npx tsc
commit-msg:
parallel: true
commands:
commitlint:
run: npx commitlint --edit

0 comments on commit cd1b004

Please sign in to comment.