-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Very slow with typescript-eslint parser and project
#65
Comments
Yep, I also noticed a significant slowdown after adding tsconfig (although perhaps not as drastic) |
If anyone interested, we're now using Eslint nested overrides so
|
It doesn't slow down in my development environment. Is it possible to find out the problems of the program in your environment? |
I don't know much what to test in order to help.
Currently, it runs in almost 5 minutes, on a 2019 MacBook Pro, on 539 .vue files. |
If you can't find the cause, your problem may not be resolved. |
It's the private repository of our company's product so I can't share it :( |
The reason is in #104. |
I'm fairly certain this is due to the issue #62 aims to fix. I run a fork with that PR applied and it completely fixed my performance issues. |
If i am not mistaken, |
Not as far as I have seen. I looked it up and didn't find any mention of that, either. I think you would need to use TSX for that. |
Try this #104 (comment) |
Working great ! Down from 4-5' to 15" |
Is anyone else experiencing this issue even after trying out the overrides, in my case am using nuxt with typescript and airbnb eslint extension, one vue file takes more than 2 minutes but if i just lint typescript files, it takes about 5 seconds, here is my config:
Help would be appreciated here, a whole project lint takes more than 20 minutes, which is absurd, and surprising thing, its the first am encountering even though I sometimes copy paste the config between different projects ENV: |
@yusuf-khamis have you found something? I have a similar issue but cannot resolve it by using the overwrite. Here's some of the research I've done. Would be nice if you could check this out if it yields to your problem as well: nuxt/nuxt#25257 |
Hi!
Since we've added the
project: './tsconfig.json'
option toparserOptions
(to allow @typescript-eslint/prefer-nullish-coalescing rule for instance) the parsing is really really slow. On our project it went from 30s to 11min.If we exclude
.vue
files or remove theproject
option then it's fast again.Anyone else went into this issue?
Indeed I ran into typescript-eslint/typescript-eslint#389 but the performance on our project when excluding
.vue
files is ok, so it's really the parsing of <script> SFCs imho.Our eslint parsing options:
The text was updated successfully, but these errors were encountered: