angular-eslint

Monorepo for all the tooling related to using ESLint with Angular

MIT License

Downloads
42.4M
Stars
1.6K
Committers
97

Bot releases are hidden (Show)

angular-eslint -

Published by JamesHenry over 2 years ago

14.0.1 (2022-07-08)

Bug Fixes

angular-eslint -

Published by JamesHenry over 2 years ago

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)
angular-eslint - v13.5.0

Published by JamesHenry over 2 years ago

13.5.0 (2022-06-12)

Features

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

Published by JamesHenry over 2 years ago

13.4.0 (2022-06-11)

Features

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

Published by JamesHenry over 2 years ago

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)
angular-eslint -

Published by JamesHenry over 2 years ago

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)
angular-eslint -

Published by JamesHenry over 2 years ago

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)
angular-eslint -

Published by JamesHenry over 2 years ago

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)
angular-eslint -

Published by JamesHenry almost 3 years ago

13.0.1 (2021-11-19)

Bug Fixes

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

Published by JamesHenry almost 3 years ago

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

Published by JamesHenry almost 3 years ago

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)
angular-eslint -

Published by JamesHenry almost 3 years ago

12.6.1 (2021-10-26)

Bug Fixes

angular-eslint -

Published by JamesHenry almost 3 years ago

12.6.0 (2021-10-25)

Bug Fixes

  • eslint-plugin: [sort-ngmodule-metadata-arrays] remove the property restriction (#694) (440f6dc)
  • eslint-plugin: [sort-ngmodule-metadata-arrays] report the correct node (#693) (886db08)
  • eslint-plugin: more appropriate language for no-attribute-decorator (#696) (4dde82c)
  • eslint-plugin-template: [i18n] ignore empty strings and non-texts within BoundText by default (#683) (4075643)

Features

  • bundled-angular-compiler: create own bundle for @angular/compiler (#720) (0c42299)
angular-eslint -

Published by JamesHenry about 3 years ago

12.5.0 (2021-09-20)

Bug Fixes

  • eslint-plugin-template: [mouse-events-have-key-events] ignore custom components (#680) (f65874b)
  • eslint-plugin-template: support escape chars in inline templates (#691) (8b89ec7)

Features

  • utils: publicly expose utils related to eslint-plugin (#676) (07711f1)
angular-eslint -

Published by JamesHenry about 3 years ago

12.4.1 (2021-09-09)

Bug Fixes

  • utils: add missing filename option for invalid case utils (#674) (80b72b3)
angular-eslint -

Published by JamesHenry about 3 years ago

12.4.0 (2021-09-09)

Bug Fixes

  • eslint-plugin: [no-empty-lifecycle-method] incorrect suggestions and correct reports (#606) (a446e8f)
  • eslint-plugin: [sort-ngmodule-metadata-arrays] handle literal metadata and computed properties (#667) (f993069)
  • eslint-plugin: properly handle computed literals for some rules (#600) (fbd6ff7)
  • eslint-plugin-template: [i18n] fixes some incorrect reports (#665) (a011b9d)
  • eslint-plugin-template: [no-call-expression]: FunctionCalls not being reported (#601) (5552b13)
  • eslint-plugin-template: include more checks for isHiddenFromScreenReader (#545) (db2bc05)

Features

  • eslint-plugin: [prefer-on-push-component-change-detection] add suggestion (#666) (3723c4c)
  • eslint-plugin: [use-injectable-provided-in] add suggestion (#594) (bdef8c7)
  • utils: make package public (#673) (0386082)
angular-eslint -

Published by JamesHenry over 3 years ago

12.3.1 (2021-07-15)

Bug Fixes

  • eslint-plugin: handle literal outputs properly for [-output-] rules (#595) (8621a62)
  • template-parser: correct typings for cjs (#597) (bb60224)
angular-eslint -

Published by JamesHenry over 3 years ago

12.3.0 (2021-07-13)

Bug Fixes

  • eslint-plugin: [no-input-prefix] handle alias and inputs metadata property (#582) (675ee11)
  • eslint-plugin: [no-input-rename] handle alias and inputs metadata property (#583) (2883e18)
  • eslint-plugin: [use-component-view-encapsulation] handle literal encapsulation properly (#586) (3a9b7f4)
  • eslint-plugin: [use-pipe-transform-interface] handle type imports properly in fix (#592) (ac3fb12)

Features

  • builder: add noEslintrc option (#588) (4b150bf)
  • builder: add resolvePluginsRelativeTo option (#590) (3bea308)
  • builder: add rulesdir option (#589) (ff9557d)
  • builder: added outputFile option (#587) (420734b)
  • eslint-plugin: [component-selector] handle shadow dom components properly (#559) (ecbe684)
  • eslint-plugin: [no-pipe-impure] add suggestion (#585) (149bf2f)
  • schematics: better support @angular/cli 12.1 (#591) (c5da07b)
angular-eslint -

Published by JamesHenry over 3 years ago

12.2.2 (2021-07-10)

Bug Fixes

  • eslint-plugin: [no-output-on-prefix] handle getters and outputs metadata property (#566) (5884482)
  • eslint-plugin: [no-output-rename] handle getters and outputs metadata property (#568) (c803ffd)
angular-eslint -

Published by JamesHenry over 3 years ago

12.2.1 (2021-07-10)

Bug Fixes

  • eslint-plugin: [no-output-native] handle getters and outputs metadata property (#567) (22b378d)
  • eslint-plugin: [no-output-on-prefix] correct false positives (#525) (3a66274)
Package Rankings
Top 0.46% on Npmjs.org
Top 6.75% on Proxy.golang.org