@@ -9,6 +9,56 @@ Migration between minor versions follows the same steps:
9
9
** fix errors or check auto-fixes of warnings;
10
10
** check for the regressions.
11
11
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
+
12
62
== From `v0.19.2` to `v0.20.0`
13
63
14
64
* Check customizations of the `eslint` and `@typescript-eslint` rules replaced
0 commit comments