-
-
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
2.9.1 breaks import/extensions #1558
Comments
Can you share your eslint config, and the contents of the file? |
Reproduce step:
|
We are also experiencing this issue |
Same here 😅 |
we are experience this issue too, a workaround is to add this to the config:
|
Started getting
with the following configuration:
|
#1521 / cc @saschanaz |
when ignorePackages is true, i wouldn’t expect any warnings for any package with any configuration. |
When can we expect a release with this fixed? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I tried to upgrade to |
Please file a new issue if you’re still having trouble with 2.20. |
to cope with `import/extension` violation ref. import-js/eslint-plugin-import#1558
* chore(deps): update dependency eslint-plugin-import to v2.20.0 * chore(eslint): Add settings for eslint-plugin-import to cope with `import/extension` violation ref. import-js/eslint-plugin-import#1558 Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com> Co-authored-by: cheezenaan <cheezenaan@gmail.com>
fixes lint error for imported modules and packages seen in import-js/eslint-plugin-import#1558
Same issue with .vue files.
|
@gkatsanos your config is conflating the import/extensions setting with a rule, which it is not. See the readme, and please file a new issue if you’re still having trouble getting a valid configuration. |
Do you mind pointing me to the README anchor in question? This was working perfectly until I cleaned up my node_modules and upgraded this module..
this also produces the linting error. |
I went through https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md and tried literally ALL combinations. If you guys would add an example in this documentation to help us out so we wouldn't have to play detective with the config options, since clearly a breaking change was introduced, it would be tremendously helpful. |
@gkatsanos https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md is the docs for the rule; https://github.com/benmosher/eslint-plugin-import#importextensions is the docs for the global setting. You likely want both defined. again, a new issue would be ideal to discuss this. Please file one so we can adequately discuss your problem, separately from this resolved 3-month-old issue. |
https://github.com/ant-design/ant-design/runs/339595849
2.8.3 works fine.
The text was updated successfully, but these errors were encountered: