-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[BUG] import/no-unused-modules
does not work with import { name as otherName }
#1339
Comments
cc @rfermann |
Thanks a lot for the quick response! However it seems like this bug is still happening. If you publish a new version of this library, I can create a demo repository. In the meantime, you should be able to re-create this bug by copying the files as described above. |
@ehmicky: a demo repo would be great. |
Sure I can do that tomorrow morning (I'm off my laptop for the night). The repo will use the latest published version though, so won't include your first fix. But if you manually edit the dependency, you should see that this fix does not modify the behavior unfortunately. |
Thanks for the repo. As it turned out, I missed one piece of code 😅 |
It works, thanks @rfermann! 🎉 |
When using
import { ... as ... }
statements,import/no-unused-modules
does not seem to properly work.In the following example,
test
export is used, but it's still reported as not used:src/main.js
:src/file.js
:.eslintrc.json
:package.json
:Note: removing the
ignoreExports: ["src/main.js"]
does not fix this issue.The text was updated successfully, but these errors were encountered: