don't prefer destructuring for arrays within es-lint

This commit is contained in:
John Mitchell 2018-04-25 21:12:13 -04:00
parent cb1f25393a
commit 45d037a2cc
No known key found for this signature in database
GPG Key ID: FE6A9B5BD4EB5C94

View File

@ -54,6 +54,18 @@ module.exports = {
'no-multiple-empty-lines': ['error', { max: 1 }],
'object-curly-newline': 'off',
'space-before-function-paren': ['error', 'always'],
'no-trailing-spaces': ['error']
}
'no-trailing-spaces': ['error'],
'prefer-destructuring': ['error', {
'VariableDeclarator': {
'array': false,
'object': true
},
'AssignmentExpression': {
'array': false,
'object': true
}
}, {
'enforceForRenamedProperties': false
}]
}
};