Skip to content

Commit

Permalink
Merge pull request #120 from xpadev-net/fix/precommit-hook
Browse files Browse the repository at this point in the history
[修正] typecheckをpre-commit hookに追加
  • Loading branch information
xpadev-net authored Nov 22, 2024
2 parents 868d483 + 9dc1804 commit 7d4b21e
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 7d4b21e

Please sign in to comment.