Skip to content

Commit 22eaa69

Browse files
npm run update
1 parent 1de0e69 commit 22eaa69

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ The `plugin:regexp/all` config enables all rules. It's meant for testing, not fo
155155
| [no-useless-lazy](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-lazy.html) | disallow unnecessarily non-greedy quantifiers || | 🔧 | |
156156
| [no-useless-quantifier](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-quantifier.html) | disallow quantifiers that can be removed || | 🔧 | 💡 |
157157
| [no-useless-range](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-range.html) | disallow unnecessary character ranges || | 🔧 | |
158-
| [no-useless-set-operand](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-set-operand.html) | disallow unnecessary elements in expression character classes | | | 🔧 | |
158+
| [no-useless-set-operand](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-set-operand.html) | disallow unnecessary elements in expression character classes | | | 🔧 | |
159159
| [no-useless-two-nums-quantifier](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-two-nums-quantifier.html) | disallow unnecessary `{n,m}` quantifier || | 🔧 | |
160160
| [no-zero-quantifier](https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-zero-quantifier.html) | disallow quantifiers with a maximum of zero || | | 💡 |
161161
| [optimal-lookaround-quantifier](https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-lookaround-quantifier.html) | disallow the alternatives of lookarounds that end with a non-constant quantifier | || | |

docs/rules/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ sidebarDepth: 0
6262
| [no-useless-lazy](no-useless-lazy.md) | disallow unnecessarily non-greedy quantifiers || | 🔧 | |
6363
| [no-useless-quantifier](no-useless-quantifier.md) | disallow quantifiers that can be removed || | 🔧 | 💡 |
6464
| [no-useless-range](no-useless-range.md) | disallow unnecessary character ranges || | 🔧 | |
65-
| [no-useless-set-operand](no-useless-set-operand.md) | disallow unnecessary elements in expression character classes | | | 🔧 | |
65+
| [no-useless-set-operand](no-useless-set-operand.md) | disallow unnecessary elements in expression character classes | | | 🔧 | |
6666
| [no-useless-two-nums-quantifier](no-useless-two-nums-quantifier.md) | disallow unnecessary `{n,m}` quantifier || | 🔧 | |
6767
| [no-zero-quantifier](no-zero-quantifier.md) | disallow quantifiers with a maximum of zero || | | 💡 |
6868
| [optimal-lookaround-quantifier](optimal-lookaround-quantifier.md) | disallow the alternatives of lookarounds that end with a non-constant quantifier | || | |

docs/rules/no-useless-set-operand.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ description: "disallow unnecessary elements in expression character classes"
66
---
77
# regexp/no-useless-set-operand
88

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

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

lib/configs/recommended.ts

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export const rules = {
5050
"regexp/no-useless-non-capturing-group": "error",
5151
"regexp/no-useless-quantifier": "error",
5252
"regexp/no-useless-range": "error",
53+
"regexp/no-useless-set-operand": "error",
5354
"regexp/no-useless-two-nums-quantifier": "error",
5455
"regexp/no-zero-quantifier": "error",
5556
"regexp/optimal-lookaround-quantifier": "warn",

0 commit comments

Comments
 (0)