Skip to content

Commit

Permalink
Publish v0.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amikheychik committed Jun 9, 2024
1 parent 15f829f commit cd40b9f
Show file tree
Hide file tree
Showing 4 changed files with 490 additions and 549 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
:eslint-angular-rules: https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules
:eslint-angular-template-rules: https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules

== v0.21.0

* Updated `link:https://github.com/perfective/eslint-config[@perfective/eslint-config]`
to `link:{eslint-config-tags}/v0.25.0[0.25.0]`.
** Added `eslint-plugin-n` support.
** Deprecated `eslint-plugin-node` (replaced by `eslint-plugin-n`).
** Upgraded `@typescript-eslint` to `7.12.0` (supports TypeScript v5.4).
+
* Updated `@angular-eslint` to `18.0.1`:
** Enabled the `link:{eslint-angular-rules}/no-duplicates-in-metadata-arrays.md[@angular-eslint/no-duplicates-in-metadata-arrays]`
rule as an error.
** Changed the `link:{eslint-angular-rules}/use-lifecycle-interface.md[@angular-eslint/use-lifecycle-interface]`
rule severity to a warning, as now it’s auto-fixable.
** Disabled the `@angular-eslint/no-host-metadata-property` rule as deprecated.


== v0.20.0

* Updated `link:https://github.com/perfective/eslint-config[@perfective/eslint-config]`
Expand Down
50 changes: 50 additions & 0 deletions MIGRATION_GUIDE.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,56 @@ Migration between minor versions follows the same steps:
** fix errors or check auto-fixes of warnings;
** check for the regressions.

== From `v0.20.0` to `v0.21.0`

* Replace customized `eslint-plugin-node` rules (if any) with `eslint-plugin-n`:
** Replace customized `node/` rules with `n/`.
** Replace `node/shebang` rule with `n/hashbang`.
** Disable `n/no-hide-core-modules` as deprecated.
** Change `n/exports-style` severity to `warn`.
+
* Update customizations (if any) for the deprecated `@typescript-eslint` rules:
** Replace `@typescript-eslint/no-throw-literal` with `@typescript-eslint/only-throw-error`.
** Replace `@typescript-eslint/no-useless-template-literals`
with `@typescript-eslint/no-unnecessary-template-expression`.
** Disabled deprecated `@typescript-eslint/prefer-ts-expect-error`.
+
* Add `@jest/globals` to the `devDependencies` for the `jest/prefer-importing-jest-globals` rule.
+
* Disable and gradually enable new rules in the `.eslintrc.js`.
+
[source,js]
----
module.exports = {
extends: [
'@perfective/eslint-config',
],
overrides: [
{
files: ['*.[jt]s?(x)'],
rules: {
'@angular-eslint/no-duplicates-in-metadata-arrays': 'off',
'@stylistic/js/line-comment-position': 'off',
'@stylistic/js/multiline-comment-style': 'off', // Auto-fixable
'@stylistic/jsx/jsx-function-call-newline': 'off', // Auto-fixable
'@typescript-eslint/consistent-return': 'off',
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'off',
'cypress/no-async-before': 'off',
'jest/prefer-importing-jest-globals': 'off', // Auto-fixable
'jest/prefer-jest-mocked': 'off', // Auto-fixable
'unicorn/consistent-empty-array-spread': 'off', // Auto-fixable
'unicorn/no-anonymous-default-export': 'off',
'unicorn/no-await-in-promise-methods': 'off',
'unicorn/no-invalid-fetch-options': 'off',
'unicorn/no-magic-array-flat-depth': 'off',
'unicorn/no-single-promise-in-promise-methods': 'off', // Auto-fixable
},
},
],
};
----


== From `v0.19.2` to `v0.20.0`

* Check customizations of the `eslint` and `@typescript-eslint` rules replaced
Expand Down
Loading

0 comments on commit cd40b9f

Please sign in to comment.