From 075f6aba9397d574d6175c3e4a3de2c6b89bc8bf Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 11 Jul 2019 14:11:10 -0700 Subject: [PATCH] Relax rule: Only error in destructuring if all variables should be const (prefer-const) https://github.com/standard/standard/issues/1325 --- eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslintrc.json b/eslintrc.json index f9d824af..2b4792d6 100644 --- a/eslintrc.json +++ b/eslintrc.json @@ -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 }],