Skip to content

Releases: angular-eslint/angular-eslint

v16.0.0

03 May 18:36
Compare
Choose a tag to compare

As always we recommend that you update your existing workspaces by using ng update as we provide some helpful schematics to help migrate your workspaces to the latest and greatest. Running the following will update Angular, the Angular CLI and angular-eslint together:

ng update @angular/core @angular/cli @angular-eslint/schematics

Features

  • eslint-plugin-template: All accessibility rules are now grouped together and exposed via a new @angular-eslint/template/accessibility config. See the main README.md for an example of it in action. Our schematics will explicitly add it for you in new configs, but you are free to remove it if you wish (also note the BREAKING CHANGE regarding accessibility rule names below)
  • builder: support reportUnusedDisableDirectives option
  • builder: respect using eslint.config.js (a.k.a Flat Config) if it is already present. Our schematics will only be updated to generate Flat Config once it is the default way of configuring ESLint later in the year.
  • bump eslint and all @typescript-eslint packages to the latest (handled for you automatically by our ng update schematic)

BREAKING CHANGES

  • As always, the major version primarily communicates the alignment with Angular's major version. Only Angular 16 is supported by angular-eslint 16.
  • Your Node version must now be 16.13.0 or higher. Node 14 support has been dropped in alignment with Angular 16, as Node 14 is EOL.
  • eslint-plugin: The legacy base, recommended--extra, ng-cli-compat and ng-cli-compat--formatting configs have been removed. See the updated guide on migrating from TSLint for more information: ./docs/MIGRATING_FROM_TSLINT.md
  • eslint-plugin-template: The legacy base config has been removed. See the updated guide on migrating from TSLint for more information: ./docs/MIGRATING_FROM_TSLINT.md
  • schematics: The legacy convert-tslint-to-eslint schematic has been removed. See the updated guide on migrating from TSLint for more information: ./docs/MIGRATING_FROM_TSLINT.md
  • eslint-plugin-template: The deprecated accessibility-label-for rule has been removed. label-has-associated-control should be used instead. An automated migration was provided when label-has-associated-control was first added, so hopefully this should not impact too many folks.
  • eslint-plugin-template: Previously some, but not all, accessibility related rules had a prefix of accessibility- in their name. This is inconsistent with all other rules which do not attempt to communicate why they exist in their names. Therefore that naming prefix has been removed from all rules for consistency. The accessibility related rules can easily be identified from the new @angular-eslint/template/accessibility shared config. See the main README.md for an example of it in action.

v15.2.1

10 Feb 12:48
Compare
Choose a tag to compare

15.2.1 (2023-02-10)

Bug Fixes

  • eslint-plugin-template: [i18n] handle ng-template properly (#1257) (7b0877d)
  • update dependency @angular/compiler to v15.1.4 (#1282) (d1b3d59)
  • update dependency eslint to v8.32.0 (#1276) (15d2e23)
  • update dependency eslint to v8.33.0 (#1292) (bd82b42)
  • update typescript-eslint packages to v5.48.2 (#1278) (69d56a7)

v15.2.0

14 Jan 16:24
Compare
Choose a tag to compare

15.2.0 (2023-01-14)

Bug Fixes

  • eslint-plugin: [component-selector] enhance check for prefix and kebab-case (#1250) (16827e4)
  • eslint-plugin: [no-inputs-metadata-property] do not report on directive composition API (#1248) (539cf9f)
  • update dependency @angular/compiler to v15.0.2 (#1245) (061601f)
  • update dependency @angular/compiler to v15.1.0 (#1252) (4295c59)
  • update dependency eslint to v8.29.0 (#1246) (10c14d2)
  • update dependency eslint to v8.31.0 (#1262) (db89c85)
  • update dependency ignore to v5.2.1 (#1237) (609e06b)
  • update dependency ignore to v5.2.4 (#1263) (a220e0c)
  • update typescript-eslint packages to v5.45.1 (#1239) (abb7f79)
  • update typescript-eslint packages to v5.48.1 (#1255) (11151d1)
  • utils: use test case filename when specified (#1259) (37bfd14)
  • utils: use tsconfigRootDir as root dir when specified (#1260) (19fe26c)

Features

  • eslint-plugin-template: [i18n] option to require i18n metadata meaning (#1234) (4ef0290)
  • eslint-plugin-template: [no-interpolation-in-attributes] new rule added (#1242) (977cb3a)
  • eslint-plugin: [require-localize-metadata] option to require meaning (#1235) (b870123)

v15.1.0

24 Nov 11:19
Compare
Choose a tag to compare

15.1.0 (2022-11-24)

Bug Fixes

  • eslint-plugin-template: [accessibility-valid-aria] use Number() to parse numeric values (#1218) (6fe40d6)
  • eslint-plugin-template: [i18n] allow more attributes by default (#1220) (4232b1c)
  • eslint-plugin: [no-input-rename] do not report on directive composition API (#1231) (119fba7)
  • update dependency @angular/compiler to v15.0.1 (#1223) (7b7bd76)
  • update typescript-eslint packages to v5.44.0 (#1222) (5750e3a)

Features

  • eslint-plugin-template: [no-call-expression] add allowList option (#1217) (a69c809)

v15.0.0

20 Nov 12:43
Compare
Choose a tag to compare

15.0.0 (2022-11-20)

As always we recommend that you update your existing workspaces by using ng update as we provide some helpful schematics to help migrate your workspaces to the latest and greatest. Running the following will update Angular, the Angular CLI and angular-eslint together:

ng update @angular/core @angular/cli @angular-eslint/schematics

Bug Fixes

  • schematics: ensure scoped project names have correct eslint extends (7b3f736)

Features

  • bump minimum supported eslint version to 7.20.0 (56ad69f), closes #662
  • eslint-plugin: remove no-conflicting-lifecycle from recommended config (19dd177), closes #502
  • fast linting by default, set eslint and typescript-eslint recommended (#1212) (1a53ef9), closes #1174
  • schematics: ng update migration to preserve v14 parserOptions.project for existing workspaces (1d45914)

BREAKING CHANGES

  • Your installed version of ESLint must be version 7.20.0 or later (naturally we recommend the latest v8 of ESLint if possible)
  • eslint-plugin: no-conflicting-lifecycle is no longer included as part of the recommended config and if you wish to continue using it you will need to enable it yourself in your eslint config rules
  • New projects will not include parserOptions.project configuration in .eslintrc.json files by default, see the new guide here ./docs/RULES_REQUIRING_TYPE_INFORMATION.md

v14.4.0

20 Nov 11:34
Compare
Choose a tag to compare

14.4.0 (2022-11-20)

Features

v14.3.1

20 Nov 10:07
Compare
Choose a tag to compare

14.3.1 (2022-11-20)

Bug Fixes

  • no-input-rename: allow input aliases that match the directive name applied to an element (#1207) (aff3344)
  • update dependency eslint to v8.28.0 (#1210) (c671e74)

v14.3.0

17 Nov 10:13
Compare
Choose a tag to compare

14.3.0 (2022-11-17)

Bug Fixes

  • update dependency @angular/compiler to v14.2.11 (#1202) (6c1eb81)

Features

  • eslint-plugin-template: [accessibility-elements-content] add allowList option (#1201) (3877f43)
  • eslint-plugin-template: [no-inline-styles] add rule (#1162) (7e1aadf)

v14.2.0

15 Nov 10:52
Compare
Choose a tag to compare

14.2.0 (2022-11-15)

Bug Fixes

  • update dependency @angular/compiler to v14.2.10 (#1165) (bb4bfe5)
  • update dependency @angular/compiler to v14.2.3 (#1143) (4eb3e74)
  • update dependency aria-query to v5.1.3 (#1183) (7c5b299)
  • update dependency axobject-query to v3.1.1 (#1184) (dcfd43d)
  • update dependency eslint to v8.27.0 (#1189) (d2ae95a)
  • update dependency eslint-scope to v7 (#1156) (05bd9e6)
  • update typescript-eslint packages to v5.38.1 (#1152) (8f6d0ef)
  • update typescript-eslint packages to v5.43.0 (#1190) (2a4716a)

Features

  • eslint-plugin-template: [accessibility-interactive-supports-focus] add rule (#1134) (d99d8c1)
  • eslint-plugin-template: [accessibility-role-has-required-aria] add rule (#1100) (f684df0)
  • eslint-plugin-template: [attributes-order] add rule with fixer (#1066) (4c789c7)
  • eslint-plugin-template: [no-duplicate-attributes] Add option to ignore properties (#1104) (018d390)
  • update dependency eslint to v8.24.0 (#1148) (5f30b2d)
  • update typescript-eslint packages to v5.38.0 (#1140) (85b4b47)

v14.1.2

21 Sep 18:59
Compare
Choose a tag to compare

14.1.2 (2022-09-21)

Bug Fixes

  • builder: remove nrwl/devkit from builder implementation (#1142) (9d5a7fc)