Skip to content

Commit

Permalink
fix: add typecheck to pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
xpadev-net committed Nov 22, 2024
1 parent 26d3a0f commit 9dc1804
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lefthook.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
pre-commit:
commands:
check:
lint:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: npx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files}
stage_fixed: true
typecheck:
glob: "*.{ts,tsx}"
run: npx tsc --noEmit --skipLibCheck --pretty --noErrorTruncation --skipDefaultLibCheck --project tsconfig.json
stage_fixed: true

0 comments on commit 9dc1804

Please sign in to comment.