Fix linting error
This commit is contained in:
parent
f4e3dfee74
commit
4edcd02965
@ -6,7 +6,11 @@ const referenceVisitor = {
|
||||
ReferencedIdentifier(path, state) {
|
||||
// Don't hoist regular JSX identifiers ('div', 'span', etc).
|
||||
// We do have to consider member expressions for hoisting (e.g. `this.component`)
|
||||
if (path.isJSXIdentifier() && react.isCompatTag(path.node.name) && !path.parentPath.isJSXMemberExpression()) {
|
||||
if (
|
||||
path.isJSXIdentifier() &&
|
||||
react.isCompatTag(path.node.name) &&
|
||||
!path.parentPath.isJSXMemberExpression()
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user