Skip to content

Latest commit

 

History

History
344 lines (213 loc) · 30.9 KB

CHANGELOG.md

File metadata and controls

344 lines (213 loc) · 30.9 KB

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

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)

12.4.1 (2021-09-09)

Bug Fixes

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

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)

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)

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)

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)

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)

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)

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)

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.

4.3.0 (2021-05-12)

Features

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

4.2.1 (2021-05-12)

Bug Fixes

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

4.2.0 (2021-04-28)

Features

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

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)

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)

3.0.1 (2021-04-18)

Bug Fixes

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

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.

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)

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)

2.0.2 (2021-03-16)

Bug Fixes

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

2.0.1 (2021-03-14)

Bug Fixes

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

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

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

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)