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 authored and nzakas committed Jun 1, 2016
1 parent c78c8cb commit 61dfe68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rules/no-useless-rename.js
Expand Up @@ -115,7 +115,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 @@ -131,7 +131,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 61dfe68

Please sign in to comment.