turbo/no-undeclared-env-vars is slow in 2.5.4 #10748
JavaScriptBach
started this conversation in
Ideas
Replies: 1 comment
-
|
Hey, @JavaScriptBach, thank you for finding this. This is definitely not good enough. I've released |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Make turbo/no-undeclared-env-vars fast enough to scale to large codebases.
Non-goals
No response
Background
turbo/no-undeclared-env-vars is slow. I tested 2.5.4 but I'm guessing it's slow in other versions too. Here is some data in terms of total time spent when I run lint on a reasonably large package in my codebase:
Turbo is twice as slow as any other lint rule, including typescript-eslint ones that require type information. That seems bad for a rule that shouldn't require type information.
Proposal
I haven't had time to look into where this rule is slow, but if you know where the issue is and can point me to it, I might be able to help write a patch. We use Turbo a good bit so we do have an interest in improving the tooling here.
Beta Was this translation helpful? Give feedback.
All reactions