We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0c0414 commit 6398ed5Copy full SHA for 6398ed5
packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js
@@ -1429,7 +1429,8 @@ function scanForDeclaredBareFunctions({
1429
*/
1430
function getDependency(node) {
1431
if (
1432
- (node.parent.type === 'MemberExpression' || node.parent.type === 'OptionalMemberExpression') &&
+ (node.parent.type === 'MemberExpression' ||
1433
+ node.parent.type === 'OptionalMemberExpression') &&
1434
node.parent.object === node &&
1435
node.parent.property.name !== 'current' &&
1436
!node.parent.computed &&
0 commit comments