From 34c24ef3c71d319cd0fb77f8ee0bc5d7b3d4f139 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Thu, 1 Apr 2021 15:18:56 -0400 Subject: [PATCH] Revert "apply prettier (#21165)" This reverts commit 94fd1214d2054799485cdcca87a37d956a4240eb. --- packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js b/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js index f4c36fcf2202d..268b6873bd589 100644 --- a/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js +++ b/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js @@ -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.