meta: specify prefer-destructuring to only apply on variable declaration, not assignment
This commit is contained in:
parent
c0eff54795
commit
8125b8b8a4
|
@ -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 }],
|
||||
|
|
Loading…
Reference in New Issue