Skip to content

Commit

Permalink
chore: setup lefthook
Browse files Browse the repository at this point in the history
Manages git hooks. Replacement for a typical husky+lint-staged setup
Used for formatting, lint check and typecheck
  • Loading branch information
sripwoud committed Aug 3, 2024
1 parent 577aec3 commit 84e6f97
Show file tree
Hide file tree
Showing 3 changed files with 3,350 additions and 3,751 deletions.
13 changes: 13 additions & 0 deletions .lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
assert_lefthook_installed: true
output: [execution, failure, summary]
pre-commit:
parallel: true
commands:
fmt:
run: pnpm dprint fmt
stage_fixed: true
lint:
run: pnpm biome lint --config-path=.biome.jsonc --no-errors-on-unmatched
typecheck:
glob: '*.{ts,tsx}'
run: pnpm typecheck
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@types/node": "^20.12.10",
"dprint": "^0.45.1",
"jest": "^29.7.0",
"lefthook": "^1.7.11",
"rimraf": "^5.0.7",
"rollup": "^4.17.2",
"ts-jest": "^29.1.3",
Expand Down
Loading

0 comments on commit 84e6f97

Please sign in to comment.