import/namespace
in combination with @vercel/node
is increasing the linting time by a factor of x80
#2527
Labels
import/namespace
in combination with @vercel/node
is increasing the linting time by a factor of x80
#2527
Repo for reproduction is here: https://github.com/ChristianIvicevic/import-namespace-issue-repro
I noticed that eslint takes ages linting the single file in this repo and profiling timings yields the following:
After trial-and-error I noticed that the offending line is this:
https://github.com/ChristianIvicevic/import-namespace-issue-repro/blob/9ec4d56d22280ad3d94671fb282262107dd47304/.eslintrc.js#L38-L40
Removing all JS extensions fixes the abysmal speed of
import/namespace
:For the time being I have disabled
import/namespace
for my lambdas that import@vercel/node
. In the rest of my project this is a non-issue, it's just in combination with that package that eslint is stuck doing... something.The text was updated successfully, but these errors were encountered: