Skip to content

Commit ec45829

Browse files
committed
Change recommended config
1 parent 0204145 commit ec45829

18 files changed

+44
-41
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,20 @@ The `plugin:regexp/all` config enables all rules. It's meant for testing, not fo
109109

110110
| Name                                 | Description | 💼 | ⚠️ | 🔧 | 💡 |
111111
| :--------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------- | :- | :- | :- | :- |
112-
| [no-contradiction-with-assertion](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-contradiction-with-assertion.html) | disallow elements that contradict assertions | | | | 💡 |
112+
| [no-contradiction-with-assertion](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-contradiction-with-assertion.html) | disallow elements that contradict assertions | | | | 💡 |
113113
| [no-control-character](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-control-character.html) | disallow control characters | | | | 💡 |
114114
| [no-dupe-disjunctions](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-disjunctions.html) | disallow duplicate disjunctions || | | 💡 |
115115
| [no-empty-alternative](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-alternative.html) | disallow alternatives without elements | || | |
116116
| [no-empty-capturing-group](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-capturing-group.html) | disallow capturing group that captures empty. || | | |
117-
| [no-empty-character-class](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-character-class.html) | disallow character classes that match no characters | | | | |
117+
| [no-empty-character-class](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-character-class.html) | disallow character classes that match no characters | | | | |
118118
| [no-empty-group](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-group.html) | disallow empty group || | | |
119119
| [no-empty-lookarounds-assertion](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-lookarounds-assertion.html) | disallow empty lookahead assertion or empty lookbehind assertion || | | |
120120
| [no-escape-backspace](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-escape-backspace.html) | disallow escape backspace (`[\b]`) || | | |
121121
| [no-invalid-regexp](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invalid-regexp.html) | disallow invalid regular expression strings in `RegExp` constructors || | | |
122122
| [no-lazy-ends](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-lazy-ends.html) | disallow lazy quantifiers at the end of an expression | || | |
123-
| [no-misleading-capturing-group](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-capturing-group.html) | disallow capturing groups that do not behave as one would expect | | | | 💡 |
124-
| [no-misleading-unicode-character](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-unicode-character.html) | disallow multi-code-point characters in character classes and quantifiers | | | 🔧 | 💡 |
125-
| [no-missing-g-flag](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-missing-g-flag.html) | disallow missing `g` flag in patterns used in `String#matchAll` and `String#replaceAll` | | | 🔧 | |
123+
| [no-misleading-capturing-group](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-capturing-group.html) | disallow capturing groups that do not behave as one would expect | | | | 💡 |
124+
| [no-misleading-unicode-character](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-unicode-character.html) | disallow multi-code-point characters in character classes and quantifiers | | | 🔧 | 💡 |
125+
| [no-missing-g-flag](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-missing-g-flag.html) | disallow missing `g` flag in patterns used in `String#matchAll` and `String#replaceAll` | | | 🔧 | |
126126
| [no-optional-assertion](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-optional-assertion.html) | disallow optional assertions || | | |
127127
| [no-potentially-useless-backreference](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-potentially-useless-backreference.html) | disallow backreferences that reference a group that might not be matched | || | |
128128
| [no-super-linear-backtracking](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-backtracking.html) | disallow exponential and polynomial backtracking || | 🔧 | |
@@ -140,7 +140,7 @@ The `plugin:regexp/all` config enables all rules. It's meant for testing, not fo
140140
| [control-character-escape](https://ota-meshi.github.io/eslint-plugin-regexp/rules/control-character-escape.html) | enforce consistent escaping of control characters || | 🔧 | |
141141
| [negation](https://ota-meshi.github.io/eslint-plugin-regexp/rules/negation.html) | enforce use of escapes on negation || | 🔧 | |
142142
| [no-dupe-characters-character-class](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-characters-character-class.html) | disallow duplicate characters in the RegExp character class || | 🔧 | |
143-
| [no-extra-lookaround-assertions](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-extra-lookaround-assertions.html) | disallow unnecessary nested lookaround assertions | | | 🔧 | |
143+
| [no-extra-lookaround-assertions](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-extra-lookaround-assertions.html) | disallow unnecessary nested lookaround assertions | | | 🔧 | |
144144
| [no-invisible-character](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invisible-character.html) | disallow invisible raw character || | 🔧 | |
145145
| [no-legacy-features](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-legacy-features.html) | disallow legacy RegExp features || | | |
146146
| [no-non-standard-flag](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-non-standard-flag.html) | disallow non-standard flags || | | |
@@ -167,7 +167,7 @@ The `plugin:regexp/all` config enables all rules. It's meant for testing, not fo
167167
| [prefer-regexp-test](https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-test.html) | enforce that `RegExp#test` is used instead of `String#match` and `RegExp#exec` | | | 🔧 | |
168168
| [require-unicode-regexp](https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-regexp.html) | enforce the use of the `u` flag | | | 🔧 | |
169169
| [sort-alternatives](https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-alternatives.html) | sort alternatives if order doesn't matter | | | 🔧 | |
170-
| [use-ignore-case](https://ota-meshi.github.io/eslint-plugin-regexp/rules/use-ignore-case.html) | use the `i` flag if it simplifies the pattern | | | 🔧 | |
170+
| [use-ignore-case](https://ota-meshi.github.io/eslint-plugin-regexp/rules/use-ignore-case.html) | use the `i` flag if it simplifies the pattern | | | 🔧 | |
171171

172172
### Stylistic Issues
173173

docs/rules/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ sidebarDepth: 0
1616

1717
| Name                                 | Description | 💼 | ⚠️ | 🔧 | 💡 |
1818
| :------------------------------------------------------------------------------ | :-------------------------------------------------------------------------------------- | :- | :- | :- | :- |
19-
| [no-contradiction-with-assertion](no-contradiction-with-assertion.md) | disallow elements that contradict assertions | | | | 💡 |
19+
| [no-contradiction-with-assertion](no-contradiction-with-assertion.md) | disallow elements that contradict assertions | | | | 💡 |
2020
| [no-control-character](no-control-character.md) | disallow control characters | | | | 💡 |
2121
| [no-dupe-disjunctions](no-dupe-disjunctions.md) | disallow duplicate disjunctions || | | 💡 |
2222
| [no-empty-alternative](no-empty-alternative.md) | disallow alternatives without elements | || | |
2323
| [no-empty-capturing-group](no-empty-capturing-group.md) | disallow capturing group that captures empty. || | | |
24-
| [no-empty-character-class](no-empty-character-class.md) | disallow character classes that match no characters | | | | |
24+
| [no-empty-character-class](no-empty-character-class.md) | disallow character classes that match no characters | | | | |
2525
| [no-empty-group](no-empty-group.md) | disallow empty group || | | |
2626
| [no-empty-lookarounds-assertion](no-empty-lookarounds-assertion.md) | disallow empty lookahead assertion or empty lookbehind assertion || | | |
2727
| [no-escape-backspace](no-escape-backspace.md) | disallow escape backspace (`[\b]`) || | | |
2828
| [no-invalid-regexp](no-invalid-regexp.md) | disallow invalid regular expression strings in `RegExp` constructors || | | |
2929
| [no-lazy-ends](no-lazy-ends.md) | disallow lazy quantifiers at the end of an expression | || | |
30-
| [no-misleading-capturing-group](no-misleading-capturing-group.md) | disallow capturing groups that do not behave as one would expect | | | | 💡 |
31-
| [no-misleading-unicode-character](no-misleading-unicode-character.md) | disallow multi-code-point characters in character classes and quantifiers | | | 🔧 | 💡 |
32-
| [no-missing-g-flag](no-missing-g-flag.md) | disallow missing `g` flag in patterns used in `String#matchAll` and `String#replaceAll` | | | 🔧 | |
30+
| [no-misleading-capturing-group](no-misleading-capturing-group.md) | disallow capturing groups that do not behave as one would expect | | | | 💡 |
31+
| [no-misleading-unicode-character](no-misleading-unicode-character.md) | disallow multi-code-point characters in character classes and quantifiers | | | 🔧 | 💡 |
32+
| [no-missing-g-flag](no-missing-g-flag.md) | disallow missing `g` flag in patterns used in `String#matchAll` and `String#replaceAll` | | | 🔧 | |
3333
| [no-optional-assertion](no-optional-assertion.md) | disallow optional assertions || | | |
3434
| [no-potentially-useless-backreference](no-potentially-useless-backreference.md) | disallow backreferences that reference a group that might not be matched | || | |
3535
| [no-super-linear-backtracking](no-super-linear-backtracking.md) | disallow exponential and polynomial backtracking || | 🔧 | |
@@ -47,7 +47,7 @@ sidebarDepth: 0
4747
| [control-character-escape](control-character-escape.md) | enforce consistent escaping of control characters || | 🔧 | |
4848
| [negation](negation.md) | enforce use of escapes on negation || | 🔧 | |
4949
| [no-dupe-characters-character-class](no-dupe-characters-character-class.md) | disallow duplicate characters in the RegExp character class || | 🔧 | |
50-
| [no-extra-lookaround-assertions](no-extra-lookaround-assertions.md) | disallow unnecessary nested lookaround assertions | | | 🔧 | |
50+
| [no-extra-lookaround-assertions](no-extra-lookaround-assertions.md) | disallow unnecessary nested lookaround assertions | | | 🔧 | |
5151
| [no-invisible-character](no-invisible-character.md) | disallow invisible raw character || | 🔧 | |
5252
| [no-legacy-features](no-legacy-features.md) | disallow legacy RegExp features || | | |
5353
| [no-non-standard-flag](no-non-standard-flag.md) | disallow non-standard flags || | | |
@@ -74,7 +74,7 @@ sidebarDepth: 0
7474
| [prefer-regexp-test](prefer-regexp-test.md) | enforce that `RegExp#test` is used instead of `String#match` and `RegExp#exec` | | | 🔧 | |
7575
| [require-unicode-regexp](require-unicode-regexp.md) | enforce the use of the `u` flag | | | 🔧 | |
7676
| [sort-alternatives](sort-alternatives.md) | sort alternatives if order doesn't matter | | | 🔧 | |
77-
| [use-ignore-case](use-ignore-case.md) | use the `i` flag if it simplifies the pattern | | | 🔧 | |
77+
| [use-ignore-case](use-ignore-case.md) | use the `i` flag if it simplifies the pattern | | | 🔧 | |
7878

7979
## Stylistic Issues
8080

docs/rules/no-contradiction-with-assertion.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ since: "v1.2.0"
77
---
88
# regexp/no-contradiction-with-assertion
99

10+
💼 This rule is enabled in the ✅ `plugin:regexp/recommended` config.
11+
1012
💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
1113

1214
<!-- end auto-generated rule header -->

docs/rules/no-empty-character-class.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ since: "v1.2.0"
77
---
88
# regexp/no-empty-character-class
99

10+
💼 This rule is enabled in the ✅ `plugin:regexp/recommended` config.
11+
1012
<!-- end auto-generated rule header -->
1113

1214
> disallow character classes that match no characters

docs/rules/no-extra-lookaround-assertions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ since: "v1.11.0"
77
---
88
# regexp/no-extra-lookaround-assertions
99

10+
💼 This rule is enabled in the ✅ `plugin:regexp/recommended` config.
11+
1012
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
1113

1214
<!-- end auto-generated rule header -->

docs/rules/no-misleading-capturing-group.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ since: "v1.12.0"
77
---
88
# regexp/no-misleading-capturing-group
99

10+
💼 This rule is enabled in the ✅ `plugin:regexp/recommended` config.
11+
1012
💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
1113

1214
<!-- end auto-generated rule header -->

docs/rules/no-misleading-unicode-character.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ since: "v1.2.0"
77
---
88
# regexp/no-misleading-unicode-character
99

10+
💼 This rule is enabled in the ✅ `plugin:regexp/recommended` config.
11+
1012
🔧💡 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) and manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
1113

1214
<!-- end auto-generated rule header -->

docs/rules/no-missing-g-flag.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ since: "v1.10.0"
77
---
88
# regexp/no-missing-g-flag
99

10+
💼 This rule is enabled in the ✅ `plugin:regexp/recommended` config.
11+
1012
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
1113

1214
<!-- end auto-generated rule header -->

docs/rules/use-ignore-case.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ since: "v1.4.0"
77
---
88
# regexp/use-ignore-case
99

10+
💼 This rule is enabled in the ✅ `plugin:regexp/recommended` config.
11+
1012
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
1113

1214
<!-- end auto-generated rule header -->

0 commit comments

Comments
 (0)