Skip to content

Commit cd40b9f

Browse files
committed
Publish v0.21.0
1 parent 15f829f commit cd40b9f

File tree

4 files changed

+490
-549
lines changed

4 files changed

+490
-549
lines changed

CHANGELOG.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
:eslint-angular-rules: https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules
44
:eslint-angular-template-rules: https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules
55

6+
== v0.21.0
7+
8+
* Updated `link:https://github.com/perfective/eslint-config[@perfective/eslint-config]`
9+
to `link:{eslint-config-tags}/v0.25.0[0.25.0]`.
10+
** Added `eslint-plugin-n` support.
11+
** Deprecated `eslint-plugin-node` (replaced by `eslint-plugin-n`).
12+
** Upgraded `@typescript-eslint` to `7.12.0` (supports TypeScript v5.4).
13+
+
14+
* Updated `@angular-eslint` to `18.0.1`:
15+
** Enabled the `link:{eslint-angular-rules}/no-duplicates-in-metadata-arrays.md[@angular-eslint/no-duplicates-in-metadata-arrays]`
16+
rule as an error.
17+
** Changed the `link:{eslint-angular-rules}/use-lifecycle-interface.md[@angular-eslint/use-lifecycle-interface]`
18+
rule severity to a warning, as now it’s auto-fixable.
19+
** Disabled the `@angular-eslint/no-host-metadata-property` rule as deprecated.
20+
21+
622
== v0.20.0
723

824
* Updated `link:https://github.com/perfective/eslint-config[@perfective/eslint-config]`

MIGRATION_GUIDE.adoc

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,56 @@ Migration between minor versions follows the same steps:
99
** fix errors or check auto-fixes of warnings;
1010
** check for the regressions.
1111

12+
== From `v0.20.0` to `v0.21.0`
13+
14+
* Replace customized `eslint-plugin-node` rules (if any) with `eslint-plugin-n`:
15+
** Replace customized `node/` rules with `n/`.
16+
** Replace `node/shebang` rule with `n/hashbang`.
17+
** Disable `n/no-hide-core-modules` as deprecated.
18+
** Change `n/exports-style` severity to `warn`.
19+
+
20+
* Update customizations (if any) for the deprecated `@typescript-eslint` rules:
21+
** Replace `@typescript-eslint/no-throw-literal` with `@typescript-eslint/only-throw-error`.
22+
** Replace `@typescript-eslint/no-useless-template-literals`
23+
with `@typescript-eslint/no-unnecessary-template-expression`.
24+
** Disabled deprecated `@typescript-eslint/prefer-ts-expect-error`.
25+
+
26+
* Add `@jest/globals` to the `devDependencies` for the `jest/prefer-importing-jest-globals` rule.
27+
+
28+
* Disable and gradually enable new rules in the `.eslintrc.js`.
29+
+
30+
[source,js]
31+
----
32+
module.exports = {
33+
extends: [
34+
'@perfective/eslint-config',
35+
],
36+
overrides: [
37+
{
38+
files: ['*.[jt]s?(x)'],
39+
rules: {
40+
'@angular-eslint/no-duplicates-in-metadata-arrays': 'off',
41+
'@stylistic/js/line-comment-position': 'off',
42+
'@stylistic/js/multiline-comment-style': 'off', // Auto-fixable
43+
'@stylistic/jsx/jsx-function-call-newline': 'off', // Auto-fixable
44+
'@typescript-eslint/consistent-return': 'off',
45+
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'off',
46+
'cypress/no-async-before': 'off',
47+
'jest/prefer-importing-jest-globals': 'off', // Auto-fixable
48+
'jest/prefer-jest-mocked': 'off', // Auto-fixable
49+
'unicorn/consistent-empty-array-spread': 'off', // Auto-fixable
50+
'unicorn/no-anonymous-default-export': 'off',
51+
'unicorn/no-await-in-promise-methods': 'off',
52+
'unicorn/no-invalid-fetch-options': 'off',
53+
'unicorn/no-magic-array-flat-depth': 'off',
54+
'unicorn/no-single-promise-in-promise-methods': 'off', // Auto-fixable
55+
},
56+
},
57+
],
58+
};
59+
----
60+
61+
1262
== From `v0.19.2` to `v0.20.0`
1363

1464
* Check customizations of the `eslint` and `@typescript-eslint` rules replaced

0 commit comments

Comments
 (0)