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
no-useless-rename triggered when there's no rename #6266
Comments
Thanks for the issue. Not sure what's going on, but I'll look into this when I'm back at my computer. |
Confirmed. |
Figured this out. Oversight on my part when I wrote his rule - fix incoming. |
Oh, just saw @alberto's got this covered. Am on mobile and missed it. Thanks - somehow completely missed this in my tests (sorry!). |
Thanks for the fast replies! :) |
I've just upgraded to 2.11.1 and the problem was fixed for default parser. But it is still there when using babel-eslint. |
babel-eslint parses the code differently than the default parser and can cause some rules to not work. Consider creating an issue directly with babel-eslint to see if this can be resolved either in the parser itself or in a plugin like https://github.com/babel/eslint-plugin-babel. |
Mmmm, while what @kaicataldo says is generally true, I think in this case I was relying on a parser internal (reference equality), so we should probably fix that. Sorry, my fault. PR is coming. |
What version of ESLint are you using?
v2.11.0
What parser (default, Babel-ESLint, etc.) are you using?
Default (babel-eslint shows the same issue)
Please show your full configuration:
What did you do? Please include the actual source code causing the issue.
What did you expect to happen?
Just one warning in line 4.
What actually happened? Please include the actual, raw output from ESLint.
The text was updated successfully, but these errors were encountered: