mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
feat: salvage Angular developer skill
This commit is contained in:
parent
14816289ba
commit
456bbd12e5
52 changed files with 4732 additions and 13 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue