Typescript: Keep question mark for optional computed class property#6601
Closed
fisker wants to merge 2 commits intoprettier:masterfrom
Closed
Typescript: Keep question mark for optional computed class property#6601fisker wants to merge 2 commits intoprettier:masterfrom
fisker wants to merge 2 commits intoprettier:masterfrom
Conversation
Member
|
@fisker it is better to avoid PRs for |
ad9d93d to
2d16647
Compare
Member
Author
|
@evilebottnawi How about the idea of using a fork version of |
Contributor
|
Personally, considering the maintenance cost of the fork, it is better to hurry for major updates for us. |
Member
|
@fisker it is problem not only for |
Member
|
Prettier pr-6601 --parser typescriptInput: class Foo {
[Symbol.bar]?();
}Output: class Foo {
[Symbol.bar]();
} |
4 tasks
07f9e9e to
2d16647
Compare
Contributor
Member
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docs/directory)CHANGELOG.unreleased.mdfile following the template.✨Try the playground for this PR✨
fix #6569
this is a bug from
@typescript-eslint/typescript-estreetypescript-eslint/typescript-eslint#1019 , add a test to confirm this worksNotice:
@typescript-eslint/typescript-estree@2.3.2requires node >=8 , so this PR might can't merge until prettier@2