-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Support declaring internal module regex or respect import/internal-regex setting #227
Comments
I don't quite follow you meanings, why |
This is a simplified implementation that won't work for every usecase perhaps, sorry for confusion, but what I mean: Imagine you have a large repo like this
And
For this import we are using |
This seems not always true? For a common mono repo, the structure would be:
How can we resolve it faster for |
if we base |
I still can't fully get your point, but a PR for showing case would be appreciated. 👍 |
Perhaps it's also hard to implement in a generic way, that's why my explanation doesn't make a lot of sense but I'll give it a try when I have time. |
Resolver performs way too slow on a medium to large TS project where every local/internal import is absolute from the project root, since
eslint-import-resolver-typescript/src/index.ts
Line 276 in 71b23a2
It would be useful to allow users to specify
internalRegex
similar to https://github.com/import-js/eslint-plugin-import/tree/a89eadf3247af844da6b0f9e7bca7690777bf665#importinternal-regex.Worth mentioning that using above
import/internal-regex
did speed up the linting times, but unexpectedly I have seen more improvements when implemented a custom resolver like below using the same regexp, so perhaps there is a bug (or misunderstanding) there and no new option is needed, just addressing that one.The text was updated successfully, but these errors were encountered: