mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-15 21:33:04 +08:00
feat: salvage Angular developer skill
This commit is contained in:
committed by
Affaan Mustafa
parent
14816289ba
commit
456bbd12e5
25
rules/angular/hooks.md
Normal file
25
rules/angular/hooks.md
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
paths:
|
||||
- "**/*.component.ts"
|
||||
- "**/*.component.html"
|
||||
- "**/*.service.ts"
|
||||
- "**/*.directive.ts"
|
||||
- "**/*.pipe.ts"
|
||||
- "**/*.spec.ts"
|
||||
---
|
||||
# Angular Hooks
|
||||
|
||||
> This file extends [common/hooks.md](../common/hooks.md) with Angular specific content.
|
||||
|
||||
## PostToolUse Hooks
|
||||
|
||||
Configure in `~/.claude/settings.json`:
|
||||
|
||||
- **Prettier**: Auto-format `.ts` and `.html` files after edit
|
||||
- **ESLint / ng lint**: Run `ng lint` after editing Angular source files to catch decorator misuse, template errors, and style violations
|
||||
- **TypeScript check**: Run `tsc --noEmit` after editing `.ts` files
|
||||
- **Build check**: Run `ng build` after generating or significantly changing Angular code to catch template and type errors early
|
||||
|
||||
## Stop Hooks
|
||||
|
||||
- **Lint audit**: Run `ng lint` across modified files before session ends to catch any outstanding violations
|
||||
Reference in New Issue
Block a user