meta: specify prefer-destructuring to only apply on variable declaration, not assignment

This commit is contained in:
Xymorot 2021-01-05 23:13:16 +01:00
parent c0eff54795
commit 8125b8b8a4
1 changed files with 8 additions and 2 deletions

View File

@ -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 }],