unstale

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

@unstale/cli on npm

@angular-eslint/eslint-plugin-template 2240 changes

Breaking changes 2

  • Support for ESLint v8 was dropped.

    22.0.0release notes

  • Support for the legacy eslintrc config format was dropped.

    22.0.0release notes

New APIs and options 11

  • Adds customGroups to attributes-order configuration.

    22.8.0release notes

  • Adds the no-multi-token-class-key rule.

    22.8.0release notes

  • Adds the bindUnits option.

    22.7.0release notes

  • Adds the allowedKeyCodes option.

    22.4.0release notes

  • Adds the requireKeyCode option.

    22.4.0release notes

  • Adds allowBindToStyle to allow [style] bindings.

    22.4.0release notes

  • Adds the dynamic option value for style bindings.

    22.4.0release notes

  • Adds the prefer-style-binding rule.

    22.4.0release notes

  • ESLint inline directive comments are now supported within element opening tags.

    22.1.0release notes

  • Adds the no-outerhtml rule to eslint-plugin-template.

    22.1.0release notes

  • Adds the require-switch-default rule to eslint-plugin-template.

    22.1.0release notes

Behavior and default changes 2

Tooling 2

  • Adds support for extracting inline styles in Angular components.

    22.7.0release notes

  • Adds a template lint rule that prefers let for async pipe.

    22.7.0release notes

Fixes and other changes 23

  • Keeps source order and i18n markers together.

    22.8.0release notes

  • Checks @error (when ...) conditions.

    22.8.0release notes

  • Maps inline style fixes correctly in files with a BOM.

    22.8.0release notes

  • Maps inline template fixes for escaped template strings.

    22.8.0release notes

  • Uses source offsets for removal suggestions.

    22.8.0release notes

  • Fixes handling of quotes, entities, and i18n.

    22.8.0release notes

  • Makes split suggestions conservative.

    22.8.0release notes

  • Adjusts scope handling for ng-content and @error, and matching for parentheses and template literals.

    22.8.0release notes

  • Keeps literal text in merged template literals.

    22.8.0release notes

  • Lints @error (when ...) expressions in @boundary blocks.

    22.7.0release notes

  • Finds duplicate IDs that occur after a unique ID.

    22.7.0release notes

  • Maps suggestion ranges for inline templates.

    22.7.0release notes

  • Avoids producing double @else blocks.

    22.7.0release notes

  • Fixes broken autofixes for this rule.

    22.7.0release notes

  • The conditional-complexity rule now checks control flow.

    22.6.0release notes

  • The template parser now traverses @defer hydrate triggers.

    22.6.0release notes

  • Honors allowNullOrUndefined across compiler copies.

    22.4.0release notes

  • Treats ng-template as a nesting boundary.

    22.4.0release notes

  • Avoids unsafe content projection fixes.

    22.4.0release notes

  • Ignores all index.html files.

    22.4.0release notes

  • Ignores children of svg and math elements.

    22.4.0release notes

  • The rule now escapes the fixed attribute value.

    22.2.0release notes

  • The rule now validates each token of a token list.

    22.2.0release notes

@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.

    21.0.0release notes

New APIs and options 4

  • Adds a variant option to the cyclomatic-complexity rule.

    21.4.0release notes

  • Adds the no-non-null-assertion rule to eslint-plugin-template.

    21.3.0release notes

  • Adds a rule that enforces class binding over ngClass.

    21.2.0release notes

  • The rule supports ignore attributes, allowing developers to exclude attributes from its checks.

    21.2.0release notes

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.

    21.0.0release notes

Tooling 1

Fixes and other changes 7

  • Fixes the rule failing when destructuring null.

    21.4.0release notes

  • Fixes the rule so it reports non-null assertions in nested arrays.

    21.4.0release notes

  • The rule now includes selectedcontent in nonAriaElements, changing how it handles that element.

    21.3.1release notes

  • Preserves nested non-string binary + operations.

    21.3.0release notes

  • Allows autofocus on dialog elements for improved accessibility.

    21.2.0release notes

  • Fixes overlapping fixes for semicolon-separated let declarations.

    21.0.1release notes

  • Handles chained concatenations correctly.

    21.0.1release notes

@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.

    20.7.0release notes

  • Adds a template lint rule that prefers built-in pipes.

    20.5.0release notes

Fixes and other changes 3

  • The conditional-complexity rule handles animation directives without values.

    20.5.2release notes

  • The prefer-ngsrc rule supports data URLs in more scenarios.

    20.5.2release notes

  • eslint-plugin-template now supports uppercase tags.

    20.5.1release notes