-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Does not cache ambiguous modules #2529
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The linter runs for a very long time if the "import/no-cycle" rule is enabled on a large project with typescript. I think the problem is that eslint does not cache all modules. For example, these files will always be parsed again:
Minimal repository for reproduce: https://github.com/stenin-nikita/eslint-plugin-import-bug
Possible solution
This line
eslint-plugin-import/src/ExportMap.js
Line 349 in 68cea3e
replace with:
Locally, this change reduced the check time from 20 to 4 minutes for me
The text was updated successfully, but these errors were encountered: