-
-
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
Fix crash due to export * with no-unused-modules #1496
Conversation
2 similar comments
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.
Thanks!
To test it, please add some files in https://github.com/benmosher/eslint-plugin-import/tree/master/tests/files that can reproduce the issue.
Is this related? #1260 |
@soryy708 Don't seems related to me. From my investigation, it seems that common-js compiled files are not properly managed if you do an |
@ljharb I added a test :) |
@Taranys i rebased this, but tests are failing (altho, these tests might be failing on master) |
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.
as long as tests pass
fix #1382
After investigating, It comes from this line
https://github.com/benmosher/eslint-plugin-import/blob/5e143b23f3b89096e1b6a268af723f60c1ecb22f/src/ExportMap.js#L316
In my case,
export * from 'redux-starter-kit'
is not detected as unambigous and itreturn null
which crash no-unused-modulesI didn't find any good way to test it. I'm looking forward for some advices on how I can test this issue :)