npm / angular-eslint
angular-eslint
What changed in angular-eslint 19 to 22, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
16 breaking30 new APIs and options8 behavior and defaults14 tooling61 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initangular-eslint 2273 changes
Breaking changes 7
Removes the unused @angular/cli peer dependency.
angular-eslint updates to Angular 22 and TypeScript 6.
Support for eslint v8 is dropped.
The legacy eslintrc config format is no longer supported.
The deprecated no-conflicting-lifecycle rule is removed.
Node.js 20 support is dropped.
The rule now reports only components that opt out of OnPush, is included in the recommended config, and renames suggestion message id suggestAddChangeDetectionOnPush to suggestChangeToOnPush.
New APIs and options 20
Adds customGroups to attributes-order.
Adds the no-multi-token-class-key template rule.
The no-experimental rule now supports an ignorePackages option.
The rule now supports a bindUnits option.
Adds the allowExplicitStandalone option to the prefer-standalone rule.
The rule disallows unconfigured properties.
Schematics adds --tseslint-preset for strict and type-checked configs.
Adds the allowedKeyCodes option to configure permitted key codes.
Adds the requireKeyCode option to configure the rule's key-code requirement.
Adds allowBindToStyle to permit [style] bindings.
Adds the dynamic option value for style bindings.
Adds the prefer-style-binding rule.
Adds the additionalInjectFunctions option to the inject-at-top rule.
Adds the reactive-context-must-read-signal rule.
Adds the allowProvidedInNull option to the use-injectable-provided-in rule.
Adds the allowExplicitOnPush option; when false, explicit OnPush is automatically removed.
Adds the no-outerhtml rule.
Adds the prefer-service-decorator rule.
Adds the require-switch-default rule.
The builder adds the suppressionsLocation option.
Behavior and default changes 1
The option now supports regex entries.
Tooling 6
Adds the no-global-document ESLint rule.
Support was added for extracting inline styles in Angular components.
A new template rule, prefer-let-for-async-pipe, is available.
ESLint inline directive comments are now supported within element opening tags.
Adds a rule requiring inject() at the top of the class.
The Angular v22 @Service decorator is supported.
Fixes and other changes 39
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 correctly for escaped template strings.
Uses source offsets for removal suggestions.
Fixes handling of quotes, entities, and i18n.
Makes split suggestions more conservative.
Scopes the rule to ng-content and @error, and matches parentheses and template literals.
Keeps literal text in merged template literals.
Expressions in @error (when ...) within @boundary blocks are now linted.
The rule now finds duplicate IDs even when they appear after a unique ID.
Suggestion ranges are now mapped for inline templates.
The rule now checks signal and model inputs.
Broken autofixes for no-interpolation-in-attributes were fixed.
The rule now avoids producing double @else blocks.
Broken autofixes for prefer-template-literal were fixed.
The rule now treats call() and apply() as unknown.
The rule now reports camelCase ARIA names in attribute bindings.
The rule now checks control flow.
The template parser now traverses hydrate triggers.
The rule rewrites emit calls of the removed output.
The prefix rule option schema is now fully typed.
The rule now ignores inherited primitive names.
The rule now honors allowNullOrUndefined across compiler copies.
On an Angular major mismatch, ng-add now errors and says what to rerun.
The rule now treats ng-template as a nesting boundary.
The rule avoids unsafe content projection fixes.
The rule now ignores children of svg and math elements.
The rule now ignores all index.html files.
Reports methods that are also called outside a DI context.
Skips inputs with a transform option.
Does not report when input and output types differ.
Improves getter and function detection.
Angular major mismatches are now reported at runtime.
The rule now covers @Component providers, viewProviders and styleUrls arrays.
The rule now escapes the fixed attribute value.
The rule now validates each token in a token list.
Avoids a false positive for methods called from the constructor.
The template parser traverses v22 arrow function, spread, and tagged-template expression nodes.
angular-eslint 2127 changes
Breaking changes 2
The template rule now reports nested arrays.
The rule now defaults to prefix: 'app'; selector style and prefix validation are independent, and prefix separation is checked according to the selected style.
New APIs and options 7
The builder adds an apply-suppressions option.
The cyclomatic-complexity template rule adds a variant option.
Adds the computed-must-return rule to eslint-plugin.
Adds the no-non-null-assertion rule to eslint-plugin-template.
Adds a template rule to enforce class binding over ngClass.
The rule supports ignore attributes.
Adds a rule that encourages using model() for two-way bindings.
Behavior and default changes 2
The rule is added to the recommended config.
textContent is added to the default allowList.
Tooling 4
Adds support for ESLint v10.
Detects Signal member access.
Adds the no-implicit-takeuntil-destroyed ESLint rule.
New projects generated by the schematics use eslint defineConfig.
Fixes and other changes 12
The template rule fixes an issue where it could not destructure null.
The rule appends fixes.
The rule no longer checks inline templates.
Properly handles statements with unary operators.
Adds selectedcontent to nonAriaElements.
Adds a check for InputSignalWithTransform.
Correctly detects the Signal type.
Preserves nested non-string binary + operations.
Allows autofocus on dialog elements for improved accessibility.
The rule now avoids overlapping fixes for semicolon-separated let declarations.
The rule now handles chained concatenations correctly.
The builder always passes all files to the formatter, including when quiet is enabled, aligning invocation with the eslint CLI.
angular-eslint 2022 changes
Breaking changes 4
component-class-suffix is removed from the recommended configuration.
directive-class-suffix is removed from the recommended configuration.
angular-eslint switches to Angular v20.
Template parse errors are no longer suppressed by default.
New APIs and options 3
Supports multiple configs for component-selector.
Supports multiple configs for directive-selector.
Adds the prefer-built-in-pipes template ESLint rule.
Behavior and default changes 3
The rule now provides suggestions, giving developers suggested changes when it reports a violation.
prefer-inject is added to the recommended configuration.
The prefer-standalone fix becomes a suggestion instead of an automatic fix.
Tooling 2
The builder supports {projectName} and {projectRoot} placeholders in outputFile.
Adds the prefer-host-metadata-property ESLint rule.
Fixes and other changes 10
Improves support for eslint defineConfig types when configuring angular-eslint.
Fixes false negatives when linting selectors that only contain a prefix.
The rule now detects variables.
Supports eslint defineConfig types in addition to typescript-eslint config.
Handles animation directives without values.
Supports data URLs in more scenarios.
Fixes the fixer when a class contains generics.
Fixes false positives from the no-uncalled-signals rule.
The template ESLint plugin now supports uppercase tags.
Default orders now include all known keys.
angular-eslint 197 changes
Breaking changes 3
The deprecated rule has been removed.
The deprecated rule has been removed.
The deprecated rule has been removed.
Behavior and default changes 2
The rule is now included in the recommended configuration.
The rule now recognizes that standalone is the default.
Tooling 2
The angular-eslint package can now be referenced as the schematics collection in ng update.
A new ESLint rule is available to prefer signals.