-
-
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
"import/extensions": ignorePackages value does not inforce the use of extensions. #1083
Comments
@ljharb I tested the following configurations:
|
@fthebaud It sounds like you're saying that cc @collinsauve @millerized / #827 |
@fthebaud I downloaded that repo. I believe this is just a confusion in how the options for In your repo, these options will enforce that all imports are done with extensions except package imports. I believe this is what you are looking for?
@ljharb your comment on the PR is probably the best explanation out there as to how these options currently work. |
Yes, this is what I'm looking for. I tried the suggested configuration:
|
@fthebaud: That error looks like an old version of I use |
@millerized if the schema allows for an invalid set of options, then we should tighten the schema to error out on that. |
@millerized Thank you all for your help! |
@fthebaud in general you should be looking at the docs for the version you're on - for v2.8, it'd be https://github.com/benmosher/eslint-plugin-import/tree/v2.8.0/docs/rules |
@ljharb Thanks, I'll be more careful in the future! |
I'm using eslint 4.19.1 and eslint-plugin-import 2.11.0 with the following configuration:
The plugin does not raise any warning when I import files without extensions.
To reproduce the issue you can clone the project below and look for the file TestImportWithWarnings.jsx. https://github.com/fthebaud/react-boilerplate
The text was updated successfully, but these errors were encountered: