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 committed Jul 11, 2019
1 parent e3e5dca commit 075f6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eslintrc.json
Expand Up @@ -169,7 +169,7 @@
"one-var": ["error", { "initialized": "never" }],
"operator-linebreak": ["error", "after", { "overrides": { "?": "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 075f6ab

Please sign in to comment.