eslint-import-resolver-typescript icon indicating copy to clipboard operation
eslint-import-resolver-typescript copied to clipboard

Allow `import-x` plugin, not only `import`

Open RobinTail opened this issue 1 year ago • 1 comments

There is a line in package.json:

https://github.com/import-js/eslint-import-resolver-typescript/blob/ca11f1c538714252ff058a8e1c680796ee5775d0/package.json#L66

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

warning " > [email protected]" 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 avatar Jun 24 '24 22:06 RobinTail

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.

RobinTail avatar Jun 25 '24 18:06 RobinTail