Skip to content

Commit 20c6341

Browse files
authored
Rename rules (#959)
1 parent e1e4e94 commit 20c6341

File tree

58 files changed

+139
-81
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+139
-81
lines changed

docs/deprecated-rules.md

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,57 @@
11
# Deprecated Rules
22

3+
## no-fn-reference-in-iterator
4+
5+
This rule was renamed to [`no-array-callback-reference`](rules/no-array-callback-reference.md) to avoid using the abbreviation `fn` in the name.
6+
7+
## no-array-instanceof
8+
9+
This rule was renamed to [`no-instanceof-array`](rules/no-instanceof-array.md) to be more correct.
10+
11+
## no-reduce
12+
13+
This rule was renamed to [`no-array-reduce`](rules/no-array-reduce.md) to be more specific.
14+
15+
## prefer-dataset
16+
17+
This rule was renamed to [`prefer-dom-node-dataset`](rules/prefer-dom-node-dataset.md) to be more specific.
18+
19+
## prefer-event-key
20+
21+
This rule was renamed to [`prefer-keyboard-event-key`](rules/prefer-keyboard-event-key.md) to be more specific.
22+
323
## prefer-exponentiation-operator
424

5-
This rule is deprecated in favor of the built-in ESLint [`prefer-exponentiation-operator`](https://eslint.org/docs/rules/prefer-exponentiation-operator) rule.
25+
This rule was deprecated in favor of the built-in ESLint [`prefer-exponentiation-operator`](https://eslint.org/docs/rules/prefer-exponentiation-operator) rule.
26+
27+
## prefer-flat-map
28+
29+
This rule was renamed to [`prefer-array-flat-map`](rules/prefer-array-flat-map.md) to be more specific.
30+
31+
## prefer-node-append
32+
33+
This rule was renamed to [`prefer-dom-node-append`](rules/prefer-dom-node-append.md) to be less ambiguous.
34+
35+
## prefer-node-remove
36+
37+
This rule was renamed to [`prefer-dom-node-remove`](rules/prefer-dom-node-remove.md) to be less ambiguous.
38+
39+
## prefer-replace-all
40+
41+
This rule was renamed to [`prefer-string-replace-all`](rules/prefer-string-replace-all.md) to be more specific.
42+
43+
## prefer-starts-ends-with
44+
45+
This rule was renamed to [`prefer-string-starts-ends-with`](rules/prefer-string-starts-ends-with.md) to be more specific.
46+
47+
## prefer-text-content
48+
49+
This rule was renamed to [`prefer-dom-node-text-content`](rules/prefer-dom-node-text-content.md) to be more specific.
50+
51+
## prefer-trim-start-end
52+
53+
This rule was renamed to [`prefer-string-trim-start-end`](rules/prefer-string-trim-start-end.md) to be more specific.
654

755
## regex-shorthand
856

9-
This rule was renamed to [`better-regex`](rules/better-regex.md).
57+
This rule was renamed to [`better-regex`](rules/better-regex.md) as it does more than just preferring the shorthand.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)