-
-
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] ESLint crashes with import/no-unused-modules
and ignoreExports
option
#1323
Comments
import/no-unused-modules
and ignoreExports
optionimport/no-unused-modules
and ignoreExports
option
hm, is |
Oops :) no it's not. I fixed the example. I tried it again and the bug is still reproducible. (Bug originally happened in a big repository, I tried to reduce it to a minimally reproducible example) |
Does this happen in eslint 5, or only in eslint 6 alpha? |
It still happens with eslint Would you like me to create a demo repository? |
Yes, that'd be great, thanks. We already have some test cases for this that seem to be passing, so a repro would be great. |
Yes, absolutely. I will do it tomorrow (I am off my laptop for the evening). |
No need to create a repository. Your provided source is sufficient to reproduce the issue. The crash happens when dir/b.js gets linted. As this file is being ignored, no export list has been built up for the file. The problem is, that the rule still tries to read the export list for this file instead of ignoring the file. #1331 should fix this issue. |
I tried it and it works. Thanks! |
ESLint crashes with the following error:
The current directory contains the following files:
dir/a.js
:dir/b.js
:.eslintrc.json
:package.json
(andnode_modules
):Thanks for your help!
The text was updated successfully, but these errors were encountered: