Skip to content

Commit

Permalink
Revert "apply prettier (#21165)"
Browse files Browse the repository at this point in the history
This reverts commit 94fd121.
  • Loading branch information
sebmarkbage committed Apr 1, 2021
1 parent 94fd121 commit c031970
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@ export default {
}
}
} else if (name === 'useTransition') {
if (id.type === 'ArrayPattern' && isArray(resolved.identifiers)) {
if (
id.type === 'ArrayPattern' &&
isArray(resolved.identifiers)
) {
// Is first tuple value the same reference we're checking?
if (id.elements[0] === resolved.identifiers[0]) {
// Setter is stable.
Expand Down

0 comments on commit c031970

Please sign in to comment.