You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[regexp/no-potentially-useless-backreference](./no-potentially-useless-backreference.md)| disallow backreferences that reference a group that might not be matched ||
26
-
|[regexp/no-super-linear-backtracking](./no-super-linear-backtracking.md)| disallow exponential and polynomial backtracking |:wrench:|
22
+
|[regexp/no-invalid-regexp](./no-invalid-regexp.md)| disallow invalid regular expression strings in `RegExp` constructors |:star:|
23
+
|[regexp/no-lazy-ends](./no-lazy-ends.md)| disallow lazy quantifiers at the end of an expression |:star:|
|[regexp/no-potentially-useless-backreference](./no-potentially-useless-backreference.md)| disallow backreferences that reference a group that might not be matched |:star:|
26
+
|[regexp/no-super-linear-backtracking](./no-super-linear-backtracking.md)| disallow exponential and polynomial backtracking |:star::wrench:|
27
27
|[regexp/no-super-linear-move](./no-super-linear-move.md)| disallow quantifiers that cause quadratic moves ||
28
-
|[regexp/no-useless-assertions](./no-useless-assertions.md)| disallow assertions that are known to always accept (or reject) ||
28
+
|[regexp/no-useless-assertions](./no-useless-assertions.md)| disallow assertions that are known to always accept (or reject) |:star:|
29
29
|[regexp/no-useless-backreference](./no-useless-backreference.md)| disallow useless backreferences in regular expressions |:star:|
30
-
|[regexp/no-useless-dollar-replacements](./no-useless-dollar-replacements.md)| disallow useless `$` replacements in replacement string ||
31
-
|[regexp/strict](./strict.md)| disallow not strictly valid regular expressions |:wrench:|
30
+
|[regexp/no-useless-dollar-replacements](./no-useless-dollar-replacements.md)| disallow useless `$` replacements in replacement string |:star:|
31
+
|[regexp/strict](./strict.md)| disallow not strictly valid regular expressions |:star::wrench:|
|[regexp/control-character-escape](./control-character-escape.md)| enforce consistent escaping of control characters |:star::wrench:|
39
+
|[regexp/negation](./negation.md)| enforce use of escapes on negation |:star::wrench:|
40
40
|[regexp/no-dupe-characters-character-class](./no-dupe-characters-character-class.md)| disallow duplicate characters in the RegExp character class |:star::wrench:|
41
41
|[regexp/no-invisible-character](./no-invisible-character.md)| disallow invisible raw character |:star::wrench:|
42
-
|[regexp/no-legacy-features](./no-legacy-features.md)| disallow legacy RegExp features ||
|[regexp/no-trivially-nested-quantifier](./no-trivially-nested-quantifier.md)| disallow nested quantifiers that can be rewritten as one quantifier |:wrench:|
49
-
|[regexp/no-unused-capturing-group](./no-unused-capturing-group.md)| disallow unused capturing group |:wrench:|
50
-
|[regexp/no-useless-character-class](./no-useless-character-class.md)| disallow character class with one character |:wrench:|
|[regexp/no-trivially-nested-quantifier](./no-trivially-nested-quantifier.md)| disallow nested quantifiers that can be rewritten as one quantifier |:star::wrench:|
49
+
|[regexp/no-unused-capturing-group](./no-unused-capturing-group.md)| disallow unused capturing group |:star::wrench:|
50
+
|[regexp/no-useless-character-class](./no-useless-character-class.md)| disallow character class with one character |:star::wrench:|
|[regexp/no-zero-quantifier](./no-zero-quantifier.md)| disallow quantifiers with a maximum of zero ||
57
-
|[regexp/optimal-lookaround-quantifier](./optimal-lookaround-quantifier.md)| disallow the alternatives of lookarounds that end with a non-constant quantifier ||
58
-
|[regexp/optimal-quantifier-concatenation](./optimal-quantifier-concatenation.md)| require optimal quantifiers for concatenated quantifiers |:wrench:|
56
+
|[regexp/no-zero-quantifier](./no-zero-quantifier.md)| disallow quantifiers with a maximum of zero |:star:|
57
+
|[regexp/optimal-lookaround-quantifier](./optimal-lookaround-quantifier.md)| disallow the alternatives of lookarounds that end with a non-constant quantifier |:star:|
58
+
|[regexp/optimal-quantifier-concatenation](./optimal-quantifier-concatenation.md)| require optimal quantifiers for concatenated quantifiers |:star::wrench:|
59
59
|[regexp/prefer-escape-replacement-dollar-char](./prefer-escape-replacement-dollar-char.md)| enforces escape of replacement `$` character (`$$`). ||
60
-
|[regexp/prefer-predefined-assertion](./prefer-predefined-assertion.md)| prefer predefined assertion over equivalent lookarounds |:wrench:|
60
+
|[regexp/prefer-predefined-assertion](./prefer-predefined-assertion.md)| prefer predefined assertion over equivalent lookarounds |:star::wrench:|
61
61
|[regexp/prefer-quantifier](./prefer-quantifier.md)| enforce using quantifier |:wrench:|
62
-
|[regexp/prefer-range](./prefer-range.md)| enforce using character class range |:wrench:|
62
+
|[regexp/prefer-range](./prefer-range.md)| enforce using character class range |:star::wrench:|
63
63
|[regexp/prefer-regexp-exec](./prefer-regexp-exec.md)| enforce that `RegExp#exec` is used instead of `String#match` if no global flag is provided ||
64
64
|[regexp/prefer-regexp-test](./prefer-regexp-test.md)| enforce that `RegExp#test` is used instead of `String#match` and `RegExp#exec`|:wrench:|
65
65
|[regexp/sort-alternatives](./sort-alternatives.md)| sort alternatives if order doesn't matter |:wrench:|
@@ -71,18 +71,18 @@ The rules with the following star :star: are included in the `plugin:regexp/reco
71
71
|[regexp/hexadecimal-escape](./hexadecimal-escape.md)| enforce consistent usage of hexadecimal escape |:wrench:|
72
72
|[regexp/letter-case](./letter-case.md)| enforce into your favorite case |:wrench:|
73
73
|[regexp/match-any](./match-any.md)| enforce match any character style |:star::wrench:|
74
-
|[regexp/no-useless-escape](./no-useless-escape.md)| disallow unnecessary escape characters in RegExp |:wrench:|
75
-
|[regexp/no-useless-non-capturing-group](./no-useless-non-capturing-group.md)| disallow unnecessary Non-capturing group |:wrench:|
76
-
|[regexp/prefer-character-class](./prefer-character-class.md)| enforce using character class |:wrench:|
74
+
|[regexp/no-useless-escape](./no-useless-escape.md)| disallow unnecessary escape characters in RegExp |:star::wrench:|
75
+
|[regexp/no-useless-non-capturing-group](./no-useless-non-capturing-group.md)| disallow unnecessary Non-capturing group |:star::wrench:|
76
+
|[regexp/prefer-character-class](./prefer-character-class.md)| enforce using character class |:star::wrench:|
77
77
|[regexp/prefer-d](./prefer-d.md)| enforce using `\d`|:star::wrench:|
78
78
|[regexp/prefer-named-backreference](./prefer-named-backreference.md)| enforce using named backreferences |:wrench:|
79
79
|[regexp/prefer-plus-quantifier](./prefer-plus-quantifier.md)| enforce using `+` quantifier |:star::wrench:|
80
80
|[regexp/prefer-question-quantifier](./prefer-question-quantifier.md)| enforce using `?` quantifier |:star::wrench:|
81
81
|[regexp/prefer-star-quantifier](./prefer-star-quantifier.md)| enforce using `*` quantifier |:star::wrench:|
82
-
|[regexp/prefer-unicode-codepoint-escapes](./prefer-unicode-codepoint-escapes.md)| enforce use of unicode codepoint escapes |:wrench:|
82
+
|[regexp/prefer-unicode-codepoint-escapes](./prefer-unicode-codepoint-escapes.md)| enforce use of unicode codepoint escapes |:star::wrench:|
83
83
|[regexp/prefer-w](./prefer-w.md)| enforce using `\w`|:star::wrench:|
84
84
|[regexp/sort-character-class-elements](./sort-character-class-elements.md)| enforces elements order in character class |:wrench:|
85
-
|[regexp/sort-flags](./sort-flags.md)| require regex flags to be sorted |:wrench:|
85
+
|[regexp/sort-flags](./sort-flags.md)| require regex flags to be sorted |:star::wrench:|
86
86
|[regexp/unicode-escape](./unicode-escape.md)| enforce consistent usage of unicode escape or unicode codepoint escape |:wrench:|
Copy file name to clipboardExpand all lines: docs/rules/control-character-escape.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ since: "v0.9.0"
9
9
10
10
> enforce consistent escaping of control characters
11
11
12
+
-:gear: This rule is included in `"plugin:regexp/recommended"`.
12
13
-:wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.
Copy file name to clipboardExpand all lines: docs/rules/negation.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ since: "v0.4.0"
9
9
10
10
> enforce use of escapes on negation
11
11
12
+
-:gear: This rule is included in `"plugin:regexp/recommended"`.
12
13
-:wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.
0 commit comments