-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(typescript-estree): add opt-in inference for single runs and create programs for projects up front #3512
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
Conversation
Thanks for the PR, @JamesHenry! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day. |
Nx Cloud ReportCI ran the following commands for commit 8c7d459. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch
Sent with 💌 from NxCloud. |
Codecov Report
@@ Coverage Diff @@
## master #3512 +/- ##
=======================================
Coverage 92.63% 92.63%
=======================================
Files 325 325
Lines 11230 11230
Branches 3165 3165
=======================================
Hits 10403 10403
Misses 367 367
Partials 460 460
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Code LGTM.
One thought though:
I'm surprised that the type-aware lint rule tests don't break on the CI.
process.env.CI === 'true'
, meaning the tests should parse with this new logic.
useProvidedPrograms
doesn't pass the code from ESLint into the program... so the program is using the code it read from disk.. right?
I don't understand why the tests work!
does jest automatically clear the CI flag...?
packages/typescript-estree/src/create-program/useProvidedPrograms.ts
Outdated
Show resolved
Hide resolved
…ams.ts Co-authored-by: Brad Zacher <brad.zacher@gmail.com>
@bradzacher per our slack discussion those existing tests don't have the flag enabled, so there is no change to their behaviour right now |
~10% speed increase when opted into