Skip to content

Releases: angular-eslint/angular-eslint

v14.0.0

23 Jun 18:21
Compare
Choose a tag to compare

14.0.0 (2022-06-23)

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

BREAKING CHANGES

This is a major version bump and comes with some breaking changes, one of which might possibly impact your ESLint configuration if you are targeting inline HTML templates with a very specific glob pattern because the virtual filename has changed (read on to learn more).

  • update Angular to v14

    • All packages now require the use of Angular CLI >= 14.0.0 < 15.0.0
  • dropped support for Node 12 (in alignment with Angular's own version policy)

  • extracted inline HTML templates now contain the original Component filename in their processed virtual filename

    • When ESLint runs on your Component files, if you are using the recommended configuration, it will invoke a processor we have set up to extract the inline HTML templates from your Component declarations. Behind the scenes we give these extracted templates virtual filenames ending in .html so that rules targeting HTML files can also target your inline templates.
    • Before: In v13 the filename looked like this: inline-template-${++i}.component.html, where i was an incrementing integer (in case for example you had multiple Component declarations in the same .ts file.
    • Now: In v14 the filename now looks like this inline-template-${baseFilename}-${++i}.component.html, where i has the same incrementing integer behavior as before, but we now include the base filename within the virtual filename.
      • E.g. if you have a test file in projects/foo/src/app/app.spec.ts which declares a Component with an inline template, the virtual filename generated behind the scene for that template will be inline-template-app.spec.ts-1.component.html.
      • This new behavior allows you to use ESLint overrides to apply different behavior to Component inline templates in different files.

Features

  • update eslint to ^8.18.0 (automatically migrated via ng update)
  • update typescript-eslint to ^5.29.0 (automatically migrated via ng update)
  • update deprecated cli.defaultCollection usage in angular.json to use cli.schematicCollections instead (automatically migrated via ng update)

v13.5.0

12 Jun 11:01
Compare
Choose a tag to compare

13.5.0 (2022-06-12)

Features

  • eslint-plugin-template: [button-has-type] add rule (#928) (f19bb30)

v13.4.0

11 Jun 13:38
Compare
Choose a tag to compare

13.4.0 (2022-06-11)

Features

  • update typescript-eslint packages to v5.27.1 (#1022) (99e8d4a)

v13.3.0

10 Jun 09:52
Compare
Choose a tag to compare

13.3.0 (2022-06-10)

Bug Fixes

  • eslint-plugin-template: [eqeqeq] update suggest message (#1000) (821cb8e)
  • eslint-plugin: [sort-ngmodule-metadata-arrays] do not sort deps property (#1001) (e6d12f2)

Features

  • eslint-plugin-template: [i18n] add requireDescription option (#988) (8f55ba8)
  • update dependency eslint to v8.17.0 (#979) (7cabac0)

v13.2.1

14 Apr 12:06
Compare
Choose a tag to compare

13.2.1 (2022-04-14)

Bug Fixes

  • eslint-plugin-template: false positive conditional complexity in BoundAttribute > Interpolation (#986) (c3f3120)
  • template-parser: suppress parse errors by default, add suppressParseErrors parserOption (#987) (417bee6)

v13.2.0

14 Apr 08:56
Compare
Choose a tag to compare

13.2.0 (2022-04-03)

Bug Fixes

  • schematics: support more permutations of ng-add (#970) (0bf549b)

Features

  • eslint-plugin-template: add require-localize-metadata rule (#844) (ca1edf0)
  • parser: propagate parse errors from angular compiler (#969) (ab9b496)

v13.1.0

13 Feb 19:28
Compare
Choose a tag to compare

13.1.0 (2022-02-13)

Bug Fixes

  • eslint-plugin-template: [i18n] do not throw when compiler returns null i18n description (#892) (d349149)
  • rule docs links in create-eslint-rule utils (#907) (94f6e21)
  • update dependency ignore to v5.2.0 (#913) (5480102)

Features

  • eslint-plugin-template: [i18n] add checkDuplicateId option (#868) (edaf46f)
  • update angular/compiler to v13.2.2 (#834) (9847978)

v13.0.1

19 Nov 00:03
Compare
Choose a tag to compare

13.0.1 (2021-11-19)

Bug Fixes

  • schematics: auto update eslint-plugin-import as part of v13 ng update (#836) (705e83b)

v13.0.0

18 Nov 22:23
Compare
Choose a tag to compare

13.0.0 (2021-11-18)

Whilst this is a major release of the packages, in this case the major version change is primarily there to signify alignment with v13 of Angular.

You should look to migrate to v13 of all Angular packages, as well as v8 of eslint and v5 of typescript-eslint.

All of this will be handled for you automatically if you leverage the ng update schematics provided by @angular-eslint. You can simply include @angular-eslint/schematics in your ng update command alongside @angular/cli and @angular/core, for example:

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

v12.7.0

18 Nov 21:20
Compare
Choose a tag to compare

12.7.0 (2021-11-18)

Bug Fixes

Features

  • builder: expose nx executor without ng-compat layer (#808) (b2cd5d1)
  • i18n: option to require description for i18n metadata (#804) (7d072e2)
  • schematics: add package group for ng update (#807) (ce2e47d)