-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
add eslint-import-resolver-typescript
as a dependency
#150
Comments
There are still a few serious issues with Also I am putting my bet on https://github.com/9romise/eslint-import-resolver-oxc as well. |
eslint-import-resolver-typescript
as a dependencyeslint-import-resolver-typescript
as a dependency
Thougts about absorbing typescript |
I don't know how the package managers would handle this. It seems that Also, since most package managers don't hoist the transitive dependencies. |
Not sure I follow. All three package managers support |
What happens if someone is publishing his eslint presets to npm (e.g. This used to cause me shit loads of issues when I am building |
I tried this over the weekend, and with the npm package manager specifically, it won't work properly if the dependency chain is like: my-project --> my-linting-metapackage --> eslint-config-foo --> eslint-plugin-import-x & eslint-import-resolver-typescript However, the dependency chain DOES work just fine if the dependency chain is like: my-project --> my-linting-metapackage --> eslint-config-foo & eslint-import-resolver-typescript I didn't test any other package managers than npm. Thus, I think there is still value in putting |
Hey there, I was wondering if it would make sense to add support for (conditional) exports fields in package json files to the (default) node resolver instead of introducing another dependency? imho the only purpose of eslint-import-resolver-typescript should be to resolve .ts, .d.ts files, aliased and project paths |
It would, but the counter-argument is that maintaining two resolvers will not go well in the long run and it's better to focus efforts on making one resolver good for everything, even at the cost of additional dependencies, which are often not much of a cost to bear. |
Please let me know if this is unrelated or not the right place (as there also is #40) or if I'm wrong. |
Something should be done with the default resolver, which is not aware of To say at least, I'd absolutely love seeing a huge warning notice about this limitation and discouragement of using default resolver, would save so much time and head scratching |
That's right. The default built-in resolver is an outdated resolver In the next major version, we will remove |
From @silverwind:
(Originally in this pull request.)
Doing this would simplify the config for the end-user, which would be a big win!
cc @SukkaW @michaelfaith
The text was updated successfully, but these errors were encountered: