mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-02-15 10:53:18 +08:00
16 lines
488 B
Markdown
16 lines
488 B
Markdown
|
|
# 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
|