From 3a7cf568210925b03d526d478f24708404392bfc Mon Sep 17 00:00:00 2001 From: Alberto Moretti Date: Fri, 3 Mar 2023 16:24:28 +0100 Subject: [PATCH] Allow variable reassignment without object destructuring --- eslintrc.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/eslintrc.json b/eslintrc.json index 8d3f019..e143649 100644 --- a/eslintrc.json +++ b/eslintrc.json @@ -244,7 +244,16 @@ "object-shorthand": "error", "prefer-arrow-callback": ["error", { "allowNamedFunctions": true }], "prefer-const": "error", - "prefer-destructuring": "error", + "prefer-destructuring": ["error", { + "VariableDeclarator": { + "array": true, + "object": true + }, + "AssignmentExpression": { + "array": true, + "object": false + } + }], "prefer-rest-params": "error", "prefer-spread": "error", "prefer-template": "error",