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

@unstale/cli on npm

@angular-eslint/eslint-plugin-template 2220 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 8

  • 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 1

Fixes and other changes 9

@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