Skip to content
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

Allow import-x plugin, not only import #293

Closed
RobinTail opened this issue Jun 24, 2024 · 1 comment · Fixed by #294
Closed

Allow import-x plugin, not only import #293

RobinTail opened this issue Jun 24, 2024 · 1 comment · Fixed by #294

Comments

@RobinTail
Copy link
Contributor

There is a line in package.json:

"eslint-plugin-import": "*"

That causes warning during the installation of this package when using eslint-plugin-import-x:

warning " > eslint-import-resolver-typescript@3.6.1" has unmet peer dependency "eslint-plugin-import@*".

Though, even the Readme file suggest to try it (under its former name):

This plugin adds TypeScript support to eslint-plugin-import (Or maybe you want to try eslint-plugin-i for faster speed)

I'd like to request either marking that dependency as optional peer (using peerDepedenciesMeta entry) or ask for another solution on how these two packages can be installed together without warning.

@RobinTail
Copy link
Contributor Author

I also found another workaround while this issue is not resolved. Overriding the import plugin with import-x in package.json:

"eslint-plugin-import": "https://registry.npmjs.org/eslint-plugin-import-x/-/eslint-plugin-import-x-0.5.2.tgz",

Though, I admit, it's hacky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant