Support TypeScript 3.8
See original GitHub issueTypeScript 3.8 beta has been released!🎉🎉 We should support some syntax will be add via TS 3.8.
There are some syntaxes that can support by just (waiting and) updating typescript-estree(e.g. Top Level await), but there seems to be some that need to be supported on the Prettier side.(e.g. Type only imports exports)
New syntax:
import type
,export type
- ECMAScript Private Fields
export * as ns
Issue Analytics
- State:
- Created 4 years ago
- Reactions:114
- Comments:15 (9 by maintainers)
Top Results From Across the Web
Documentation - TypeScript 3.8
TypeScript 3.8 adds a new syntax for type-only imports and exports. ... TypeScript 3.8 brings support for ECMAScript's private fields, part of the...
Read more >Announcing TypeScript 3.8 - Microsoft Developer Blogs
TypeScript 3.8 brings support for ECMAScript's private fields, part of the stage-3 class fields proposal. This work was started and driven ...
Read more >Support TypeScript 3.8 · Issue #35204 · angular ... - GitHub
TypeScript 3.8 -rc was released today. It includes plenty of useful new features, like Type-Only Imports and Export, ECMAScript Private ...
Read more >3.8.3 - typescript - npm
TypeScript is a language for application scale JavaScript development. Latest version: 4.9.4, last published: 16 days ago.
Read more >Prettier 2.0 Supports Typescript 3.8, Improves CLI - InfoQ
Prettier 2.0 adds support for TypeScript 3.8. The new Prettier also strives to provide better defaults, a better CLI and better heuristics.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@stnwk looks like we’re getting fairly close to a 2.0 release: https://github.com/prettier/prettier/issues/7778
Update on this: We’re currently blocked waiting for ESTree to merge the AST for both
export * as ns
and private class members. The former is accepted, but not yet merged, and the latter is still under discussion; I probably would expect at least a few weeks for it to progress.However, I did merge https://github.com/typescript-eslint/typescript-eslint/pull/1697 on the weekend, which adds support for import/export type.
Would it be a good idea for prettier to bump the ts-estree version to v2.23.0 to help users in the interim?