fix: only prefer-destructuring for object variables

This commit is contained in:
Chris Waring 2021-02-19 11:50:44 +00:00
parent 8c67e06706
commit 59bbd14e42
No known key found for this signature in database
GPG Key ID: 4D2E767CC8B1C083

View File

@ -39,8 +39,14 @@ module.exports = {
"prefer-destructuring": [ "prefer-destructuring": [
"error", "error",
{ {
array: true, VariableDeclarator: {
object: true, array: false,
object: true,
},
AssignmentExpression: {
array: false,
object: false,
},
}, },
{ {
enforceForRenamedProperties: false, enforceForRenamedProperties: false,