We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fc50aa commit fe3ac1fCopy full SHA for fe3ac1f
lib/util/Components.js
@@ -402,7 +402,7 @@ function componentRule(rule, context) {
402
const propertyNames = ['forwardRef', 'memo'];
403
const calleeObject = node.callee.object;
404
if (calleeObject) {
405
- return arrayIncludes(propertyNames, node.callee.property.name) && node.callee.object.name === pragma;
+ return arrayIncludes(propertyNames, calleeObject.name) && calleeObject.name === pragma;
406
}
407
return arrayIncludes(propertyNames, node.callee.name) && this.isDestructuredFromPragmaImport(node.callee.name);
408
},
0 commit comments