Skip to content

Commit

Permalink
Relax prefer-destructuring rules (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
whymarrh authored Aug 20, 2020

Verified

This commit was signed with the committer’s verified signature.
driesvints Dries Vints
1 parent 9b9c8a6 commit b413358
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion config/index.js
Original file line number Diff line number Diff line change
@@ -242,7 +242,22 @@ module.exports = {
],
'prefer-arrow-callback': 'off',
'prefer-const': 'error',
'prefer-destructuring': 'error',
'prefer-destructuring': [
'error',
{
'VariableDeclarator': {
'array': false,
'object': true,
},
'AssignmentExpression': {
'array': false,
'object': false,
},
},
{
'enforceForRenamedProperties': false,
},
],
'prefer-exponentiation-operator': 'off',
'prefer-named-capture-group': 'off',
'prefer-numeric-literals': 'error',

0 comments on commit b413358

Please sign in to comment.