-
Notifications
You must be signed in to change notification settings - Fork 285
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
feat: add rule for redundant import alias #854
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thanks for the rule idea and its PR!
I've left some comments, please let me know what do you think about them.
I agree with your suggestions, "redundant" seems like more appropriate. I already did the changes. What's your view on making this rule as default? It seems like a pretty unquestionable linting rule, but on the other hand I got fear of retrocompatibility on upgrading versions and not sure on what's the project policies on upgrades. |
Thanks for the modifications. |
Thanks @damif94 ! |
PR for issue #853
A new rule
redundant-import-alias
that would warn upon redundant import aliases, i.e., when the imported package name matches the alias names.