Skip to content

chore: add Angular 21 patterns to docs and lint to on-stop hook#17

Merged
saskim merged 1 commit into
mainfrom
chore/dev-tooling-improvements
May 14, 2026
Merged

chore: add Angular 21 patterns to docs and lint to on-stop hook#17
saskim merged 1 commit into
mainfrom
chore/dev-tooling-improvements

Conversation

@saskim

@saskim saskim commented May 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds an Angular 21 Patterns section to CLAUDE.md documenting current idioms Claude must use:
    • @if/@for/@switch control flow (never *ngIf/*ngFor)
    • Signal-based input(), output(), model() (never @Input()/@Output())
    • Signal queries: viewChild(), contentChild() (never @ViewChild/@ContentChild)
    • takeUntilDestroyed() for RxJS cleanup
    • effect() for signal-driven side effects
  • Adds ng lint as the first step in the on-stop Claude hook (runs before build and tests)
  • Fixes the hook description in CLAUDE.md — after-edit formats with Prettier, it does not lint

Test plan

  • Verify ng lint runs at the end of a Claude turn and surfaces lint errors before build/test output
  • Confirm after-edit hook description in CLAUDE.md matches actual behaviour (Prettier only)

🤖 Generated with Claude Code

Documents current Angular idioms (control flow, signal inputs/outputs,
takeUntilDestroyed, effect) so Claude defaults to v21 patterns. Adds
ng lint as the first step in the on-stop hook and corrects the hook
description in CLAUDE.md.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@saskim saskim merged commit 50708cf into main May 14, 2026
1 check passed
@saskim saskim deleted the chore/dev-tooling-improvements branch May 14, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant