Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
stop requiring destructuring for assignment expressions with objects,…
Browse files Browse the repository at this point in the history
… due to invalid stand-alone syntax
  • Loading branch information
andreineculau committed Oct 7, 2019
1 parent c01e09e commit bd5f690
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions configs/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,14 @@ module.exports = {
'prefer-arrow-callback': 'off',
'prefer-const': 'off',
'prefer-destructuring': ['error', {
array: false,
object: true
VariableDeclarator: {
array: false,
object: true
},
AssignmentExpression: {
array: false,
object: false
}
}, {
enforceForRenamedProperties: false
}],
Expand Down

0 comments on commit bd5f690

Please sign in to comment.