-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Incremental checks #275
Comments
hi @gajus when running
But then that might make some false positives 🤔 If there was a way to pass:
Then that should work ... |
I think I can do that. Let me give that a try. |
The idea to parse the output of eslint seems like a major restructuring- probably need to add an abstraction over the TypeScript model…
Optimisation: if a list of files is also provided, then no need to check for timestamps, just scan those files only. The cache file needs an internal serialisationVersion so can be changed in future… The serialization needs to be isolated so that future changes to the export map don’t break the deserialisation … This would need a spike to make sure it really works… —- |
@gajus I could do a spike on this, |
hm I've not got around to this ... Will mark as 'help wanted' in case someone else is available ... |
As you already know, I wrote an ESLint rule that uses
ts-unused-exports
. However, the problem is that currently anytime that any file is changed this rule will triggerts-unused-exports
check of the entire project – that's slow and blocks the ability to use this rule in ESLint/IDE context.Is there a way to build some sort of a cache or another optimization that would make
ts-unused-exports
faster on re-runs?Another user suggested that it might be possible to optimize
ts-unused-exports
integration with ESlint if it utilized parsed source produced byeslint-plugin-import
. That could be another option.Surfacing to start a conversaiton.
The text was updated successfully, but these errors were encountered: