Skip to content

Commit

Permalink
Refactor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed May 19, 2020
1 parent 7d939c6 commit 9ae82eb
Show file tree
Hide file tree
Showing 2 changed files with 215 additions and 110 deletions.
1 change: 1 addition & 0 deletions rules/prefer-array-find.js
Expand Up @@ -97,6 +97,7 @@ const create = context => {
messageId: MESSAGE_ID_DESTRUCTURING_ASSIGNMENT,
fix: fixer => {
const assignTarget = node.left.elements[0];

// `AssignmentExpression` always starts with `[` or `(`, so we don't need check ASI

// Need add `()` to the `AssignmentExpression`
Expand Down

0 comments on commit 9ae82eb

Please sign in to comment.