Skip to content

Commit d1f0c3d

Browse files
committed
perf: optimize pre-commit hooks for speed
- Remove full typecheck from pre-commit (was too slow) - Keep only Biome linting/formatting on staged files - Add pre-push hook for typechecking before pushing - Pre-commit now runs in <1 second vs several seconds before
1 parent 9228794 commit d1f0c3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.husky/pre-push

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm typecheck

.lintstagedrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"*.{ts,tsx,js,jsx}": [
3-
"biome check --write --unsafe --files-ignore-unknown=true --no-errors-on-unmatched",
4-
"bash -c 'pnpm typecheck'"
3+
"biome check --write --unsafe --files-ignore-unknown=true --no-errors-on-unmatched"
54
]
65
}

0 commit comments

Comments
 (0)