-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Upgrade to TypeScript 4.0 #8982
Conversation
|
||
// Invalid label 1 | ||
type T = [x.y: A]; | ||
|
||
// Invalid label 2 | ||
type T = [x<y>: A]; |
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.
Let's keep these two in typescript-babel-only
Sorry, should be this one https://github.com/typescript-eslint/typescript-eslint/blob/6f397df42cbcf05c10f304c9bbfdae4803aa0ce2/packages/typescript-estree/src/parser-options.ts#L19 |
According to microsoft/TypeScript#38510, 4.0 will be released on 8/20, so let's wait. |
Current version of prettier can't parse the new "Short-Circuiting Assignment Operators" syntax. e.g. foo ??= "default value" |
@sosukesuzuki Can you check it's tested on |
There will be
I really hope we don't have to revert anything major in master. P.S. I did try typecheck with |
I thought you applied this suggestion #8759 (comment), how to fix it? |
You can just remove the workaround hack lines when you merge from master: prettier/src/language-js/types/estree.d.ts Lines 6 to 12 in cdc250c
You will also have to solve the type issues between |
@brodybits How to fix? |
I proposed a quick workaround here: sosukesuzuki#2 This is using |
seems to be tested with Babel & TypeScript in |
Thank you. I agree with you. For now, let's merge it and consider a fix after the 2.1 release. |
workaround for TypeScript 4.0 in src/language-js/utils.js
Let's merge! |
Should we add changelog for Short-Circuiting Assignment Operators? |
Closes #8646
docs/
directory)changelog_unreleased/*/pr-XXXX.md
file followingchangelog_unreleased/TEMPLATE.md
.✨Try the playground for this PR✨