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,9 +39,15 @@ module.exports = {
"prefer-destructuring": [
"error",
{
array: true,
VariableDeclarator: {
array: false,
object: true,
},
AssignmentExpression: {
array: false,
object: false,
},
},
{
enforceForRenamedProperties: false,
},