Skip to content

Commit a1d78ed

Browse files
committed
do not recommend consistent destructuring
See #1230 (comment) !1230
1 parent eb5af8b commit a1d78ed

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

β€Žconfigs/recommended.js

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

β€Žpackage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-unicorn",
3-
"version": "50.0.1",
3+
"version": "51.0.0",
44
"description": "More than 100 powerful ESLint rules",
55
"license": "MIT",
66
"repository": "sindresorhus/eslint-plugin-unicorn",

β€Žreadme.md

Lines changed: 1 addition & 1 deletion
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)