Skip to content

Commit

Permalink
Revert "apply prettier (facebook#21165)"
Browse files Browse the repository at this point in the history
This reverts commit 94fd121.
  • Loading branch information
sebmarkbage authored and acdlite committed Apr 13, 2021
1 parent d35c46f commit 34c24ef
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 34c24ef

Please sign in to comment.