Skip to content

Run typecheck on pre-commit to match CI - #24

Merged
technicalpickles merged 2 commits into
mainfrom
claude/ci-precommit-gap-28aa4c
Aug 24, 2026
Merged

Run typecheck on pre-commit to match CI#24
technicalpickles merged 2 commits into
mainfrom
claude/ci-precommit-gap-28aa4c

Conversation

@technicalpickles

Copy link
Copy Markdown
Owner

Summary

  • Pre-commit only ran prettier, so a TypeScript type error would pass locally and only get caught by CI. Add a typecheck command to lefthook.yml's pre-commit block, gated to *.ts changes, running the same npm run typecheck CI already uses.

Test plan

  • npm run typecheck passes cleanly on its own.
  • Couldn't smoke-test the hook directly since lefthook isn't installed in this worktree, but the new command mirrors the existing prettier command's shape.

technicalpickles and others added 2 commits August 24, 2026 10:28
Pre-commit only ran prettier, so a TS type error would sail through
locally and only get caught in CI. Add a typecheck command mirroring
what CI already runs (npm run typecheck), gated to *.ts changes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
CI and lefthook.yml are edited independently and drift silently -- a
check added to one doesn't imply it's mirrored in the other, which is
exactly what happened with the missing typecheck hook fixed in 763ae77.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@technicalpickles
technicalpickles merged commit 48f0017 into main Aug 24, 2026
1 check passed
@technicalpickles
technicalpickles deleted the claude/ci-precommit-gap-28aa4c branch August 24, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant