[Angular] Enable strictUnclaimedEventNames (NG8030) to catch misspelled output bindings (after Angular 22.2) #1167

Open
opened 2026-10-02 04:44:19 +00:00 by spikerj · 0 comments
Owner

Why

Angular 22.2 adds the strictUnclaimedEventNames compiler option: a (someEvent) binding that matches no output of the element's directives and no known DOM event becomes compile error NG8030 — catching typo'd / renamed outputs that currently fail silently.

What changes for us

  • 118 tsconfigs set strictTemplates (e.g. projects/spikersoft/tsconfig.json ~L20); add strictUnclaimedEventNames: true under angularCompilerOptions (centralise in a shared base if possible).
  • Fix whatever it finds (dead bindings are bugs: the handler never runs). Custom-element / web-component event bindings may need allow-listing.

Acceptance criteria

  • option on for the app + all libraries
  • every finding fixed or deliberately allow-listed with a comment
  • typecheck/build green

Blocked by the Angular 22.2 upgrade ticket. Size: S-M (depends on findings).

Links: Blocked by #1165.


Filed from the 2026-10-02 spikersoft-angular pnpm outdated changelog review.

## Why Angular 22.2 adds the `strictUnclaimedEventNames` compiler option: a `(someEvent)` binding that matches no output of the element's directives and no known DOM event becomes compile error **NG8030** — catching typo'd / renamed outputs that currently fail silently. ## What changes for us - 118 tsconfigs set `strictTemplates` (e.g. `projects/spikersoft/tsconfig.json` ~L20); add `strictUnclaimedEventNames: true` under `angularCompilerOptions` (centralise in a shared base if possible). - Fix whatever it finds (dead bindings are bugs: the handler never runs). Custom-element / web-component event bindings may need allow-listing. ## Acceptance criteria - [ ] option on for the app + all libraries - [ ] every finding fixed or deliberately allow-listed with a comment - [ ] typecheck/build green **Blocked by** the Angular 22.2 upgrade ticket. Size: **S-M** (depends on findings). **Links:** Blocked by #1165. --- _Filed from the 2026-10-02 spikersoft-angular `pnpm outdated` changelog review._
spikerj added the enhancement label 2026-10-02 04:44:19 +00:00
Sign in to join this conversation.