Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
loganfsmyth authored and existentialism committed May 19, 2017
1 parent 0048e6b commit d7b7955
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/babel-traverse/src/path/lib/hoister.js
Expand Up @@ -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;
}

Expand Down

0 comments on commit d7b7955

Please sign in to comment.