2026-02-11 23:48:45 -08:00
|
|
|
---
|
|
|
|
|
paths:
|
|
|
|
|
- "**/*.ts"
|
|
|
|
|
- "**/*.tsx"
|
|
|
|
|
- "**/*.js"
|
|
|
|
|
- "**/*.jsx"
|
|
|
|
|
---
|
2026-02-05 21:58:06 +08:00
|
|
|
# TypeScript/JavaScript Hooks
|
|
|
|
|
|
|
|
|
|
> This file extends [common/hooks.md](../common/hooks.md) with TypeScript/JavaScript specific content.
|
|
|
|
|
|
|
|
|
|
## PostToolUse Hooks
|
|
|
|
|
|
|
|
|
|
Configure in `~/.claude/settings.json`:
|
|
|
|
|
|
|
|
|
|
- **Prettier**: Auto-format JS/TS files after edit
|
|
|
|
|
- **TypeScript check**: Run `tsc` after editing `.ts`/`.tsx` files
|
|
|
|
|
- **console.log warning**: Warn about `console.log` in edited files
|
|
|
|
|
|
|
|
|
|
## Stop Hooks
|
|
|
|
|
|
|
|
|
|
- **console.log audit**: Check all modified files for `console.log` before session ends
|