TypeScript Type-check Hook
Validate TypeScript types before committing
Category:hooks-configs
Type:hook
Difficulty:intermediate
typescript
pre-commit
testing
intermediate
Description
Pre-commit hook that runs TypeScript type checking. Ensures type safety across your codebase by catching type errors before they're committed. Uses tsc with noEmit flag.
Content
Resource Content
{
"hooks": {
"pre-commit": [
{
"name": "typescript-check",
"command": "npx tsc --noEmit",
"match": "**/*.{ts,tsx}",
"description": "Type-check TypeScript files"
}
]
}
}Rate This Resource
0
Help others discover great resources
Statistics
0
Stars
0
Copies
428
Days ago
585
Views
Claude Code Guides
How Claude Code decides what it can do and when it should ask
Permissions and Tools
A practical guide to built-in tools, permission checks, and why tool availability changes across modes and agent types.
A practical Claude Code path for finding, reproducing, and fixing bugs
Debugging Workflow
Use Claude Code effectively for debugging by combining context assembly, safe inspection tools, targeted reproduction, and focused fix loops.