Fix linting error

This commit is contained in:
Logan Smyth 2017-02-12 18:48:07 -08:00
parent f4e3dfee74
commit 4edcd02965

View File

@ -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;
}