Skip to content

Commit

Permalink
Fix: no-useless-rename false positive in babel-eslint (fixes #6266)
Browse files Browse the repository at this point in the history
  • Loading branch information
alberto committed May 31, 2016
1 parent c22cb29 commit aeee2df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rules/no-useless-rename.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ module.exports = {
}

if (node.imported.name === node.local.name &&
node.imported !== node.local) {
node.imported.range[0] !== node.local.range[0]) {
reportError(node, node.imported, node.local, "Import");
}
}
Expand All @@ -125,7 +125,7 @@ module.exports = {
}

if (node.local.name === node.exported.name &&
node.local !== node.exported) {
node.local.range[0] !== node.exported.range[0]) {
reportError(node, node.local, node.exported, "Export");
}

Expand Down

0 comments on commit aeee2df

Please sign in to comment.