Skip to content

Commit 702d51b

Browse files
consistent-destructuring: Remove from recommended preset (#2260)
Co-authored-by: Sindre Sorhus <[email protected]>
1 parent 331b306 commit 702d51b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

configs/recommended.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
module.exports = {
33
'unicorn/better-regex': 'error',
44
'unicorn/catch-error-name': 'error',
5-
'unicorn/consistent-destructuring': 'error',
5+
'unicorn/consistent-destructuring': 'off',
66
'unicorn/consistent-function-scoping': 'error',
77
'unicorn/custom-error-definition': 'off',
88
'unicorn/empty-brace-spaces': 'error',

docs/rules/consistent-destructuring.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Use destructured variables over properties
22

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

55
🔧💡 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).
66

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ If you don't use the preset, ensure you use the same `env` and `parserOptions` c
112112
| :----------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :- | :- | :- |
113113
| [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. || 🔧 | |
115-
| [consistent-destructuring](docs/rules/consistent-destructuring.md) | Use destructured variables over properties. | | 🔧 | 💡 |
115+
| [consistent-destructuring](docs/rules/consistent-destructuring.md) | Use destructured variables over properties. | | 🔧 | 💡 |
116116
| [consistent-function-scoping](docs/rules/consistent-function-scoping.md) | Move function definitions to the highest possible scope. || | |
117117
| [custom-error-definition](docs/rules/custom-error-definition.md) | Enforce correct `Error` subclassing. | | 🔧 | |
118118
| [empty-brace-spaces](docs/rules/empty-brace-spaces.md) | Enforce no spaces between braces. || 🔧 | |

0 commit comments

Comments
 (0)