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-11-30.
3 breaking15 new APIs and options3 behavior and defaults5 tooling33 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@angular-eslint/eslint-plugin-template 2240 changes
Breaking changes 2
Support for ESLint v8 was dropped.
Support for the legacy eslintrc config format was dropped.
New APIs and options 11
Adds customGroups to attributes-order configuration.
Adds the no-multi-token-class-key rule.
Adds the bindUnits option.
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 2
Reports camelCase ARIA names in attribute bindings.
The option now supports regex entries.
Tooling 2
Adds support for extracting inline styles in Angular components.
Adds a template lint rule that prefers let for async pipe.
Fixes and other changes 23
Keeps source order and i18n markers together.
Checks @error (when ...) conditions.
Maps inline style fixes correctly in files with a BOM.
Maps inline template fixes for escaped template strings.
Uses source offsets for removal suggestions.
Fixes handling of quotes, entities, and i18n.
Makes split suggestions conservative.
Adjusts scope handling for ng-content and @error, and matching for parentheses and template literals.
Keeps literal text in merged template literals.
Lints @error (when ...) expressions in @boundary blocks.
Finds duplicate IDs that occur after a unique ID.
Maps suggestion ranges for inline templates.
Avoids producing double @else blocks.
Fixes broken autofixes for this rule.
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.