Skip to content

Add typecheck and test to pre-commit hook#1

Merged
chatch merged 3 commits into
mainfrom
type-fix
Mar 13, 2026
Merged

Add typecheck and test to pre-commit hook#1
chatch merged 3 commits into
mainfrom
type-fix

Conversation

@chatch

@chatch chatch commented Mar 13, 2026

Copy link
Copy Markdown
Member

Summary

Improves pre-commit validation by adding TypeScript type checking and test execution to the pre-commit hook.

Changes

  • Added typecheck script to package.json: tsc --noEmit
  • Updated .husky/pre-commit to run typecheck after lint-staged
  • Updated .husky/pre-commit to run tests to catch functional issues before commit
  • Minor README.md markdown formatting fix

Validation Order

  1. lint-staged (auto-fix formatting/linting)
  2. typecheck (catch type errors)
  3. test (ensure tests pass)

@chatch chatch merged commit b4d143b into main Mar 13, 2026
1 check passed
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