feat: add new parser babel-ts to parse TypeScript syntaxes via Babel#6400
feat: add new parser babel-ts to parse TypeScript syntaxes via Babel#6400thorn0 merged 21 commits intoprettier:nextfrom JounQin:feat/babel_ts
babel-ts to parse TypeScript syntaxes via Babel#6400Conversation
j-f1
left a comment
There was a problem hiding this comment.
Can you add some more thorough tests (i.e. by adding the babel-ts parser to a few existing TypeScript test cases) to make sure that the printer can handle the Babel-TypeScript AST just as well as the ESTree-Typescript AST?
Done. |
alexander-akait
left a comment
There was a problem hiding this comment.
Not sure we need 2 parsers for typescript
@evilebottnawi With And we do have two parsers for |
|
@JounQin 👍 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@duailibe Can you approve this PR? So that we merge it... |
|
@JounQin I'm aware. I still disagree with the I'm trying to fix it myself, and I'll update the PR today |
|
Tested |
|
@thorn0 I think we if we find some problems we can send a PR with fix, it is not easy to find all edge cases |
alexander-akait
left a comment
There was a problem hiding this comment.
I think we can merge ⭐
docs/directory)CHANGELOG.unreleased.mdfile following the template.✨Try the playground for this PR✨
Motivation:
Babelitself is able to parseTypeScript, but we haven't enabled it, which makes something like babel-preset-proposal-typescript can not integrate withPrettierperfectly, but it should be easy to support it.