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

import rules #1

Closed
lublak opened this issue Sep 20, 2022 · 0 comments
Closed

import rules #1

lublak opened this issue Sep 20, 2022 · 0 comments
Assignees

Comments

@lublak
Copy link
Owner

lublak commented Sep 20, 2022

eslint-import-resolver-typescript

To set a thought. There is eslint-import-resolver-typescript. I have tried to use it. Here is wrong error messages in different packages.
The only solution here would be that libraries adapt to it or that you bring your own patches. The first would be an okay solution, but it takes time. Or the developers do not want to adapt their own library especially for this plugin. The second solution would be rather unattractive.
Therefore I decided against eslint-import-resolver-typescript because in all it does not offer enough added value.

eslint-plugin-import

The problems here should actually be fixed by eslint-import-resolver-typescript. This is of course not an option if further errors are caused by it. You end up with an infinite rat tail here.
Currently I make it easy for myself and the solution is to disable eslint for one line::
// eslint-disable-next-line import/no-unresolved

I will observe the whole thing and decide in the future whether I will change something.
Here are a few more links:
import-js/eslint-plugin-import#2132
import-js/eslint-import-resolver-typescript#186
import-js/eslint-import-resolver-typescript#31

@lublak lublak closed this as completed Sep 20, 2022
@lublak lublak pinned this issue Sep 20, 2022
@lublak lublak self-assigned this Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant