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 3 years ago

12.2.0 (2021-06-20)

Bug Fixes

  • eslint-plugin: [no-output-native] correct false positives (#524) (215abec)
  • eslint-plugin-template: [accessibility-table-scope] ignore custom elements (#550) (53eb56d)
  • eslint-plugin-template: [accessibility-valid-aria] ignore custom elements (#552) (f6466ec)
  • eslint-plugin-template: [no-autofocus] ignore custom elements (#540) (366d9df)
  • eslint-plugin-template: [no-positive-tabindex] ignore custom elements (#551) (5e33995)

Features

  • builder: add cacheStrategy option (#520) (427a9f5)
  • eslint-plugin: [use-component-view-encapsulation] add suggestion (#501) (ea9e98d)
  • eslint-plugin-template: [no-positive-tabindex] add suggestion (#541) (0582c2a)
angular-eslint -

Published by JamesHenry over 3 years ago

12.1.0 (2021-05-30)

Bug Fixes

  • eslint-plugin: [no-host-metadata-property] correct false positive with allowStatic option (#482) (89926d8)
  • eslint-plugin: [no-output-on-prefix] not reporting failures on alias (#471) (f9ba372)
  • eslint-plugin: [relative-url-prefix] valid relative urls being reported (#456) (2247394)
  • eslint-plugin-template: [18n] ignore checkAttributes properly (#467) (20e54d7)
  • eslint-plugin-template: [eqeqeq] change fix to suggest (#465) (a497fde)
  • eslint-plugin-template: [no-negated-async] ignore double-bang (#450) (9d06488)
  • schematics: skip config for tsconfig.e2e.json when no e2e project is present (#484) (2673e59)
  • template-parser: generate correct index.d.ts when building (#480) (e150044)
  • utils: support passing data and suggestions individually for each error (#491) (70b01bd)

Features

  • eslint-plugin: [no-empty-lifecycle-method] add suggestion (#463) (1d1a329)
  • eslint-plugin: [no-host-metadata-property] add option to allow static values (#478) (d64c832)
  • eslint-plugin: [no-input-rename] add option to allow some inputs (#475) (9c861dc)
  • eslint-plugin: [prefer-output-readonly] add suggestion (#459) (f3ff789)
  • eslint-plugin: [sort-ngmodule-metadata-arrays] add fixer (#493) (32fae47)
  • eslint-plugin-template: [accessibility-table-scope] add fixer (#490) (f0c4cea)
  • eslint-plugin-template: [accessibility-valid-aria] add suggestion (#489) (678e1b5)
  • eslint-plugin-template: [no-any] add suggestion (#486) (720e869)
  • eslint-plugin-template: [no-autofocus] add fixer (#485) (9450b7d)
  • eslint-plugin-template: [no-distracting-elements] add fixer (#488) (9cefe67)
  • eslint-plugin-template: [no-duplicate-attributes] add suggestion (#495) (62cadcd)
  • eslint-plugin-template: [no-negated-async] add suggestion (#487) (0b3f9eb)
  • schematics: on ng add include a lint command if none exists (#481) (ae49af4)
  • utils: add support for suggestions (#458) (0ea02ae)
angular-eslint -

Published by JamesHenry over 3 years ago

12.0.0 (2021-05-13)

Bug Fixes

  • template-parser: add missing Conditional and its keys to VisitorKeys (#445) (5ad0f1a)
  • eslint-plugin-template: no-negated-async no longer performs equality checks (#399)

Features

BREAKING CHANGES

  • update to angular v12 (c80008d)

    • All packages now require the use of Angular CLI >= 12.0.0 < 13
  • eslint-plugin-template: no-negated-async no longer performs equality checks (#399)

    • You should add the new @angular-eslint/template/eqeqeq rule to your config if you want to continue with the same functionality around equality checks. This will be applied for you by ng update automatically.
angular-eslint -

Published by JamesHenry over 3 years ago

4.3.0 (2021-05-12)

Features

  • eslint-plugin-template: add rule accessibility-label-has-associated-control (#392) (0851f3e)
angular-eslint -

Published by JamesHenry over 3 years ago

4.2.1 (2021-05-12)

Bug Fixes

  • eslint-plugin-template: no-negated-async message tweak (#427) (08a8330)
angular-eslint -

Published by JamesHenry over 3 years ago

4.2.0 (2021-04-28)

Features

  • schematics: add add-eslint-to-project schematic (#426) (7ae557d)
angular-eslint -

Published by JamesHenry over 3 years ago

4.1.0 (2021-04-28)

Bug Fixes

  • schematics: support workspaces which use targets alias (#424) (da6bcf7)

Features

  • schematics: dynamically install tslint-to-eslint-config as needed (#425) (27ca474)
angular-eslint -

Published by JamesHenry over 3 years ago

4.0.0 (2021-04-18)

We have provided automated migrations for you to move to v4.

All you need to do is run the update schematics for @angular-eslint:

npx ng update @angular-eslint/schematics

NOTE: For this release, there are no automated migrations to be run, other than automatically updating the version number of your other @angular-eslint packages.

BREAKING CHANGES

  • Passing --collection=@angular-eslint/schematics to ng new is no longer supported:

    • If you attempt to do it you will get a clear error with instructions on what to do instead.
    • This means we have one consistent way to add @angular-eslint to a workspace - run ng add @angular-eslint/schematics - regardless of whether that workspace is brand new or has existed for a while.
  • We have introduced two new options to the convert-tslint-to-eslint schematic:

    • --remove-tslint-if-no-more-tslint-targets so that we remove TSLint and Codelyzer from the workspace automatically if we detect you have no TSLint usage remaining (true by default).
    • --ignore-existing-tslint-config so that we can jump straight to the up to date recommended ESLint setup, without converting the previous Angular CLI TSLint setup, which is unnecessary for brand new projects (false by default).

Features

  • schematics: options for convert-tslint-to-eslint (#419) (18fd863)
angular-eslint -

Published by JamesHenry over 3 years ago

3.0.1 (2021-04-18)

Bug Fixes

  • eslint-plugin: correctly expose recommended-extra config (#418) (f727d8c)
angular-eslint -

Published by JamesHenry over 3 years ago

3.0.0 (2021-04-17)

PR #388 (f92b184)

We have provided automated migrations for you to move to v3.

All you need to do is run the update schematics for @angular-eslint:

npx ng update @angular-eslint/schematics

BREAKING CHANGES

  • The recommended configs from @angular-eslint/eslin-plugin now only configures rules directly from that plugin. This provides an overall more intuitive experience when stacking the recommended config with other plugins from the ecosystem. If you wish to continue having the same experience (with mixed @angular-eslint and @typescript-eslint rules in the configs you inherit from you can add the new recommended--extra config to your ESLint extends in the relevant config.

E.g. extract from .eslintrc.json

  "extends": [
    "plugin:@angular-eslint/recommended",
+   "plugin:@angular-eslint/recommended--extra",
  ],
  • Within the builder, linting now always runs relative to your workspace root. This should not have any impact on my workflows but is important if you run ng lint from within subdirectories of your workspace.

  • Within the builder, we always make a call to format, even if the lint results are empty. This is important for non-default formatters.

  • We have removed the hard peerDependency on the 3rd party eslint plugins import jsdoc and prefer-arrow. These plugins are only required if you are converted an existing workspace to TSLint and they will still be installed on demand in that scenario.

  • Within the eslint-plugin, the component-max-inline-declarations rule will no longer accept negative values as input. Previously it would silently use the default values in this case. An automated migration is provided for this change as part of the ng update schematics.

angular-eslint -

Published by JamesHenry over 3 years ago

2.1.1 (2021-04-17)

Bug Fixes

  • eslint-plugin: sort-ngmodule-metadata-arrays reporting false positives (#408) (149152a)
  • eslint-plugin: directive-class-suffix reporting selectorless directives (#394) (42d4e5d)
  • eslint-plugin-template: [i18n] remove unsafe fix (#411) (3246b8a)
angular-eslint -

Published by JamesHenry over 3 years ago

2.1.0 (2021-04-11)

Bug Fixes

  • builder: expose maxWarnings option (#402) (76f5ba4)
  • eslint-plugin: no-call-expression incorrect reports for conditionals (#390) (fa9cc73)
  • eslint-plugin-template: accessibility-elements-content not allowing some attributes/inputs (#397) (ffedaa2)
  • eslint-plugin-template: i18n ignoreTags not being ignored properly (#387) (985f6c2)
  • eslint-plugin-template: i18n reporting when a parent element already contains i18n id (#398) (c937a3f)

Features

  • eslint-plugin: add rule sort-ngmodule-metadata-arrays (#386) (935afdd)
  • template-parser: support eslint-disable comments in HTML templates (#405) (5dd9578)
angular-eslint -

Published by JamesHenry over 3 years ago

2.0.2 (2021-03-16)

Bug Fixes

  • builder: printInfo should not be taken into account for report (#376) (d7c6aa4)
angular-eslint -

Published by JamesHenry over 3 years ago

2.0.1 (2021-03-14)

Bug Fixes

  • eslint-plugin-template: conditional-complexity error from bundling (#373) (f466c01)
angular-eslint -

Published by JamesHenry over 3 years ago

2.0.0 (2021-03-13)

We have provided automated migrations for you to move to v2.

All you need to do is first update to Angular and Angular CLI v11.2.0 or above (see https://update.angular.io for full instructions relating to Angular updates):

npx ng update @angular/cli @angular/core

And then run the update schematics for @angular-eslint:

npx ng update @angular-eslint/schematics

Bug Fixes

Features

BREAKING CHANGES

  • The format of results output has changed

  • The use-pipe-decorator rule no longer exists for use

  • feat(template-parser): updated use of parseTemplate to improve loc data

    • Requires @angular/compiler 11.2.0 and above
  • feat(schematics): change way indent and quotes are handled by conversion schematics

    • The conversion schematic handle these rules differently
angular-eslint - v1.2.0

Published by JamesHenry over 3 years ago

1.2.0 (2021-02-06)

Bug Fixes

  • eslint-plugin: component-max-inline-declarations animations not being checked properly (#313) (61a2a0f)
  • eslint-plugin: no-lifecycle-call invalid super calls not being reported (#314) (c44cd5d)
  • eslint-plugin-template: accessibility-valid-aria not reporting i… (#278) (391980f)

Features

  • eslint-plugin: add fixer for use-pipe-transform-interface (#260) (e3f4db6)
  • eslint-plugin-template: add no duplicate attributes rule (#302) (c387de5), closes #293
angular-eslint - v1.1.0

Published by JamesHenry almost 4 years ago

1.1.0 (2021-01-14)

Bug Fixes

  • eslint-plugin: handle DoBootstrap correctly in lifecycle rules (#243) (5010b3f)
  • eslint-plugin-template: conditional-complexity not reporting all cases (#279) (a4fd077)

Features

  • eslint-plugin-template: accessibility-label-for (#268) (49ab76a)
angular-eslint - v1.0.0: Happy New Year!

Published by JamesHenry almost 4 years ago

🎉

The thing the rounded us out to v1 is the ability to create new workspaces which contain no TSLint or Codelyzer at all.

Additionally, versus the pre-releases, the recommended config no longer contains any stylistic rules. It was an oversight that they were in there in the first place.

(If you wish to enable stylistic rules in your lint setup you can always do so in your own config)

Here’s to a great 2021!

angular-eslint -

Published by JamesHenry almost 4 years ago

angular-eslint -

Published by JamesHenry almost 4 years ago

Package Rankings
Top 0.46% on Npmjs.org
Top 6.75% on Proxy.golang.org