-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
feat(typescript-estree): add support for class static blocks #3730
feat(typescript-estree): add support for class static blocks #3730
Conversation
Thanks for the PR, @sosukesuzuki! 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. |
Codecov Report
@@ Coverage Diff @@
## master #3730 +/- ##
=======================================
Coverage 92.68% 92.68%
=======================================
Files 327 327
Lines 11351 11352 +1
Branches 3201 3201
=======================================
+ Hits 10521 10522 +1
Misses 369 369
Partials 461 461
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -45,7 +45,7 @@ export interface PunctuatorTokenToText { | |||
[SyntaxKind.AtToken]: '@'; | |||
[SyntaxKind.QuestionQuestionToken]: '??'; | |||
[SyntaxKind.BacktickToken]: '`'; | |||
// [SyntaxKind.HashToken]: '#'; // new in PunctuationSyntaxKind in TS 4.4 | |||
[SyntaxKind.HashToken]: '#'; // new in PunctuationSyntaxKind in TS 4.4 |
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.
[SyntaxKind.HashToken]: '#'; // new in PunctuationSyntaxKind in TS 4.4 | |
[SyntaxKind.HashToken]: '#'; |
Don't forget to remove all other TS 4.4 related comments in this file
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.
Thanks! I'll fix it later.
cbe8fb3
to
8c4c8d3
Compare
@bradzacher TypeScript 4.4 has been released. I know you are busy, but it would be great if you could review it for us. |
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.
I was going to merge this as part of the v5 but I guess that this is non-breaking and it's actually the only AST change we explicitly need for 4.4 support there's no need to wait
A very quick eyeball it looks fine - I'll give it a full review tomorrow.
Co-authored-by: Brad Zacher <brad.zacher@gmail.com>
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.
LGTM - thanks for this!
TypeScript 4.4 RC has been announced.
And it supports Stage-3 class static blocks ( https://devblogs.microsoft.com/typescript/announcing-typescript-4-4-rc/#static-blocks ).
This PR adds support for class static blocks.