Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
loganfsmyth committed Feb 13, 2017
1 parent f4e3dfe commit 4edcd02
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 4edcd02

Please sign in to comment.