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
Don’t remove generics in object methods in TS #5824
Conversation
@@ -84,3 +84,29 @@ Examples: | |||
// Output (Prettier master) | |||
<my-element data-for={value}></my-element> | |||
``` | |||
|
|||
- TypeScript: Don’t remove generics in object methods in TS ([#5824] by [@j-f1]) |
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.
@armano2 pointed out other issues and we have an AST update
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.
We should try with the latest canary release, we have fixed the AST regressions, and add missing coverage pointed out by @armano2
The release is 1.2.1-alpha.11
@j-f1 I tried to save you some time and make the changes, but I don't have permission to push to your fork Here are the changes: https://github.com/prettier/prettier/compare/pr/j-f1/5824-patches?expand=1 As you can see, it is basically just bump typescript-estree, revert all your other changes, add extra coverage. The tests all pass locally for me with |
1.3.0 of @typescript-eslint/typescript-estree got released |
taken from the following PR: prettier#5824 Note that this test is not expected to succeed with outdated @typescript-eslint/typescript-estree dependendcy. Co-authored-by: Jed Fox <git@twopointzero.us> Co-authored-by: Christopher J. Brody <chris@brody.consulting>
as proposed in the following PR: prettier#5824 Note that this test is not expected to succeed without code changes when using an outdated version of the following dependency: @typescript-eslint/typescript-estree Co-authored-by: Jed Fox <git@twopointzero.us> Co-authored-by: Christopher J. Brody <chris@brody.consulting>
resolves the issue with generics in object methods in TypeScript and passes the test proposed in the following PR: prettier#5824 resolves prettier#5817
as proposed in the following PR: prettier#5824 Note that this test is not expected to succeed without code changes when using an outdated version of the following dependency: @typescript-eslint/typescript-estree Co-authored-by: Jed Fox <git@twopointzero.us> Co-authored-by: Christopher J. Brody <chris@brody.consulting>
as proposed by @j-f1 in the following PR: prettier#5824 should validate that prettier#5817 does not reappear Co-authored-by: Jed Fox <git@twopointzero.us> Co-authored-by: Christopher J. Brody <chris@brody.consulting>
as proposed by @j-f1 in the following PR: prettier#5824 should validate that issue prettier#5817 does not reappear closes prettier#5817 as resolved and tested Co-authored-by: Jed Fox <git@twopointzero.us> Co-authored-by: Christopher J. Brody <chris@brody.consulting>
as proposed by @j-f1 in the following PR: prettier#5824 should validate that issue prettier#5817 does not reappear this change closes prettier#5817 as resolved and tested this change closes prettier#5824 (PR prettier#5824) as superseded Co-authored-by: Jed Fox <git@twopointzero.us> Co-authored-by: Christopher J. Brody <chris@brody.consulting>
I think this proposal should be closed as superseded by the following changes:
The change proposed in PR #5989 should close this one if it is merged. |
I'm going to delete the branch for this PR, |
Fixes #5817.
CHANGELOG.unreleased.md
file following the template.✨Try the playground for this PR✨