feat: salvage Angular developer skill

This commit is contained in:
Affaan Mustafa
2026-05-11 19:22:19 -04:00
committed by Affaan Mustafa
parent 14816289ba
commit 456bbd12e5
52 changed files with 4732 additions and 13 deletions

25
rules/angular/hooks.md Normal file
View 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