-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
chore: Enable useProjectService
#16192
Conversation
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/56061/ |
(fyi @JoshuaKGoldberg :) ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI failure is unrelated
Ah thanks for tagging me, really lovely to see this! A 5% reduction in lint times and one less JSON file to manage is nice to see. 🙂 |
Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>
@JoshuaKGoldberg
|
🤔 I don't reproduce that locally when I open I also don't have a |
Sorry I made the wrong assumption, I mistakenly thought that Steps to reproduce:
If I restart vscode, the newly created files will work fine. |
I also see this error sometimes, and yes restarting vscode seems to make it go away (for some reason restarting the TS server is not enough) |
Yeah, this is a long-standing issue with running ESLint with typescript-eslint in editors such as VS Code. The only way in ESLint's current API to create type info behind-the-scenes for files is in a parser. But parsers don't get notified of file system events. So I've been meaning to file couple issues for a while now:
Thanks for the reminder 🙂 - I need to pull together research for those issues, but will Soon ™️. eslint/rfcs#102 is a rejected ESLint RFC that would have helped with this issue some (or at least opened the door to better stability). eslint/eslint#16557 tracks the longer-term rewrite that's intended to solve this down the road. |
Fixes #1, Fixes #2
typescript-eslint/typescript-eslint#8031
The overall lint time is reduced from 38 seconds to 36 seconds.