npm / @angular-eslint/eslint-plugin-template
@angular-eslint/eslint-plugin-template
What changed in @angular-eslint/eslint-plugin-template 20 to 22, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
3 breaking12 new APIs and options2 behavior and defaults3 tooling19 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@angular-eslint/eslint-plugin-template 2220 changes
Breaking changes 2
Support for ESLint v8 was dropped.
Support for the legacy eslintrc config format was dropped.
New APIs and options 8
Adds the allowedKeyCodes option.
Adds the requireKeyCode option.
Adds allowBindToStyle to allow [style] bindings.
Adds the dynamic option value for style bindings.
Adds the prefer-style-binding rule.
ESLint inline directive comments are now supported within element opening tags.
Adds the no-outerhtml rule to eslint-plugin-template.
Adds the require-switch-default rule to eslint-plugin-template.
Behavior and default changes 1
The option now supports regex entries.
Fixes and other changes 9
The conditional-complexity rule now checks control flow.
The template parser now traverses @defer hydrate triggers.
Honors allowNullOrUndefined across compiler copies.
Treats ng-template as a nesting boundary.
Avoids unsafe content projection fixes.
Ignores all index.html files.
Ignores children of svg and math elements.
The rule now escapes the fixed attribute value.
The rule now validates each token of a token list.
@angular-eslint/eslint-plugin-template 2114 changes
Breaking changes 1
textContent was added to the default allowList, changing which template content is allowed by default.
New APIs and options 4
Adds a variant option to the cyclomatic-complexity rule.
Adds the no-non-null-assertion rule to eslint-plugin-template.
Adds a rule that enforces class binding over ngClass.
The rule supports ignore attributes, allowing developers to exclude attributes from its checks.
Behavior and default changes 1
The prefer-control-flow rule was added to the recommended config, so projects using it will enable the rule by default.
Tooling 1
Adds support for ESLint v10.
Fixes and other changes 7
Fixes the rule failing when destructuring null.
Fixes the rule so it reports non-null assertions in nested arrays.
The rule now includes selectedcontent in nonAriaElements, changing how it handles that element.
Preserves nested non-string binary + operations.
Allows autofocus on dialog elements for improved accessibility.
Fixes overlapping fixes for semicolon-separated let declarations.
Handles chained concatenations correctly.
@angular-eslint/eslint-plugin-template 205 changes
Tooling 2
The prefer-ngsrc rule now provides suggestions, giving developers suggested fixes when the rule reports an issue.
Adds a template lint rule that prefers built-in pipes.
Fixes and other changes 3
The conditional-complexity rule handles animation directives without values.
The prefer-ngsrc rule supports data URLs in more scenarios.
eslint-plugin-template now supports uppercase tags.