Skip to content

Commit 461b01c

Browse files
fregantefisker
andauthoredSep 8, 2024··
Remove better-regex from recommended rules (#2443)
Co-authored-by: fisker <lionkay@gmail.com>
1 parent 891842d commit 461b01c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎docs/rules/better-regex.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Improve regexes by making them shorter, consistent, and safer
22

3-
💼 This rule is enabled in the ✅ `recommended` [config](https://github.com/sindresorhus/eslint-plugin-unicorn#preset-configs-eslintconfigjs).
3+
🚫 This rule is _disabled_ in the ✅ `recommended` [config](https://github.com/sindresorhus/eslint-plugin-unicorn#preset-configs-eslintconfigjs).
44

55
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
66

‎readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ If you don't use the preset, ensure you use the same `env` and `parserOptions` c
110110

111111
| Name                                    | Description | 💼 | 🔧 | 💡 |
112112
| :----------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :- | :- | :- |
113-
| [better-regex](docs/rules/better-regex.md) | Improve regexes by making them shorter, consistent, and safer. | | 🔧 | |
113+
| [better-regex](docs/rules/better-regex.md) | Improve regexes by making them shorter, consistent, and safer. | | 🔧 | |
114114
| [catch-error-name](docs/rules/catch-error-name.md) | Enforce a specific parameter name in catch clauses. || 🔧 | |
115115
| [consistent-destructuring](docs/rules/consistent-destructuring.md) | Use destructured variables over properties. | | 🔧 | 💡 |
116116
| [consistent-empty-array-spread](docs/rules/consistent-empty-array-spread.md) | Prefer consistent types when spreading a ternary in an array literal. || 🔧 | |

‎rules/better-regex.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ module.exports = {
136136
type: 'suggestion',
137137
docs: {
138138
description: 'Improve regexes by making them shorter, consistent, and safer.',
139-
recommended: true,
139+
recommended: false,
140140
},
141141
fixable: 'code',
142142
schema,

0 commit comments

Comments
 (0)
Please sign in to comment.