From 8125b8b8a4d19f8ecdb0da7c76e1e25a2e97b1a7 Mon Sep 17 00:00:00 2001 From: Xymorot Date: Tue, 5 Jan 2021 23:13:16 +0100 Subject: [PATCH] meta: specify prefer-destructuring to only apply on variable declaration, not assignment --- .eslintrc.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 1c4648f..f320a61 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -30,8 +30,14 @@ "prefer-destructuring": [ "error", { - "array": false, - "object": true + "VariableDeclarator": { + "array": false, + "object": true + }, + "AssignmentExpression": { + "array": false, + "object": false + } } ], "no-constant-condition": ["error", { "checkLoops": false }],