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",