Skip to content

Commit 553f6cc

Browse files
committed
Safe isSameIdentifier
1 parent 8367286 commit 553f6cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,6 +1780,7 @@ function isNodeLike(val) {
17801780
function isSameIdentifier(a, b) {
17811781
return (
17821782
(a.type === 'Identifier' || a.type === 'JSXIdentifier') &&
1783+
a.type === b.type &&
17831784
a.name === b.name &&
17841785
a.range[0] === b.range[0] &&
17851786
a.range[1] === b.range[1]

0 commit comments

Comments
 (0)