-
-
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 src
option
#1338
Comments
cc @rfermann |
Thanks @rfermann! |
I created a demo repo: https://github.com/ehmicky/no-unused-modules-bug-two |
I also got this problem. However I didn't need to specify a src option to crash my process, so the default value is enough to reproduce.
|
@dfleury could you share a minimally reproducible example? Including:
Like this the maintainers can make sure your issue is fixed together with mine (if they have the same cause). |
The problem was, that there was a file to be linted which was outside the specified @dfleury can you verify that you are linting files outside the |
This is fixing my problem, thanks! @dfleury I think this issue should be closed after this PR is merged. If the PR does not solve your issue, then it means it was a separate problem, i.e. should be a separate issue. What do you think? |
@ljharb Would it be possible to release a new version? Thanks! |
As soon as i have the time :-) it is a weekend, after all. |
Absolutely, there is no rush! :) |
Yes, I can confirm that's working with this fix. |
This issue is probably related to #1323. It is slightly different though. It's also using the latest version of
eslint-plugin-import
, including the fix of #1323.ESLint crashes with the following error:
The current directory contains the following files:
src/main.js
:file.js
:.eslintrc.json
:package.json
:The text was updated successfully, but these errors were encountered: