Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
fix(typescript-estree): correct AST regression introduced by TS4.0 upgrade#2316
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Thanks for the PR,@bradzacher! 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 onhttps://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitorsper day. |
codecovbot commentedJul 21, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## master #2316 +/- ##==========================================- Coverage 93.10% 93.09% -0.02%========================================== Files 283 284 +1 Lines 9081 9092 +11 Branches 2493 2495 +2 ==========================================+ Hits 8455 8464 +9- Misses 301 302 +1- Partials 325 326 +1
Flags with carried forward coverage won't be shown.Click here to find out more.
|
Uh oh!
There was an error while loading.Please reload this page.
Reference:prettier/prettier#8805
I had a major brainfart when implementing#2305 and didn't think about the fact that changes should be backwards compatible.
When handling the null type change introduced by
4.0
, I deleted the old branches instead of gating them behind a version check. This PR just gates the old logic for< 4.0
.We don't have automated testing against old TS versions yet (#1752) so I tested this by hand by doing the following:
yarn build
to build against4.0.0-beta
.3.9.7
yarn install --ignore-scripts
(the automatic rebuild after the install would fail due to incorrect types)cd packages/typescript-estree && yarn test ast-fixtures
cc@thorn0 /@fisker