Skip to content

Commit

Permalink
Relax rule: Only error in destructuring if all variables should be co…
Browse files Browse the repository at this point in the history
…nst (prefer-const)

standard/standard#1325
  • Loading branch information
feross authored and brettz9 committed Dec 31, 2019
1 parent 837265b commit c7f9cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eslintrc.json
Expand Up @@ -170,7 +170,7 @@
"one-var": ["error", { "initialized": "never" }],
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before", "|>": "before" } }],
"padded-blocks": ["error", { "blocks": "never", "switches": "never", "classes": "never" }],
"prefer-const": "error",
"prefer-const": ["error", {"destructuring": "all"}],
"prefer-promise-reject-errors": "error",
"quote-props": ["error", "as-needed"],
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
Expand Down

0 comments on commit c7f9cc3

Please sign in to comment.