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
import/no-unused-modules breaks --no-eslintrc
and eslint fails
#2907
Labels
Comments
Running into this issue as well |
The problem makes sense to me; unfortunately I'm not aware of any way eslint lets us know that those flags were used. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using
import/no-unused-modules
withunusedExports: true,
it will overwrite CLI--no-eslintrc
and start looking for eslint config files - and if it finds none (because they are in a different path and provided with --config) eslint will fail.(originally though it's an eslint bug, see eslint/eslint#17682)
Additionally (not tested) this might also mean that in this case eslint will start to use eslintrc files or data from package.json it shouldn't use, since the flag is set.
The text was updated successfully, but these errors were encountered: