Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: no-useless-rename false positive in babel-eslint (fixes #6266) #6290

Merged
merged 1 commit into from Jun 1, 2016

Conversation

alberto
Copy link
Member

@alberto alberto commented May 30, 2016

Sorry, this one should fix it for real. I manually tested it using babel-eslint.

@eslintbot
Copy link

LGTM

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @kaicataldo to be a potential reviewer

@platinumazure
Copy link
Member

How does performance look, out of curiosity?

@@ -109,7 +115,7 @@ module.exports = {
}

if (node.imported.name === node.local.name &&
node.imported !== node.local) {
!lodash.isEqual(node.imported, node.local)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you just check that range[0] isn't the same? We really only care about the location, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that would be better, thanks!

@eslintbot
Copy link

LGTM

@eslintbot
Copy link

LGTM

@nzakas
Copy link
Member

nzakas commented Jun 1, 2016

Lgtm

@nzakas nzakas merged commit 61dfe68 into master Jun 1, 2016
@kaicataldo kaicataldo deleted the issue6266 branch June 1, 2016 18:15
@kaicataldo kaicataldo restored the issue6266 branch June 1, 2016 18:15
@kaicataldo
Copy link
Member

Sorry, thought this was my branch - restored it!

@alberto alberto deleted the issue6266 branch June 1, 2016 18:59
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants