question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Always use Babylon for TypeScript and Flow

See original GitHub issue

Remove the TypeScript and Flow parsers, and add a --language typescript option that enables Babylon’s TypeScript option and disables its Flow option.

From https://github.com/prettier/prettier/issues/3503#issuecomment-359863688

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:4
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

7reactions
j-f1commented, Mar 5, 2018

We could also create @prettier/plugin-typescript-eslint-parser and @prettier/plugin-flow-parser packages to give people an alternative if they encounter bugs in Babylon’s implementation.

4reactions
suchipicommented, May 5, 2018

I don’t think that is a valuable trade-off compared to TypeScript features getting to users sooner

Read more comments on GitHub >

github_iconTop Results From Across the Web

Babylon js typescript to flow - Questions
I've used babylon.d.ts to generate another library using ts-morph ( dsherret/ts-morph: TypeScript Compiler API wrapper for static analysis and ...
Read more >
babel/parser
The Babel parser (previously Babylon) is a JavaScript parser used in Babel. ... Support for JSX, Flow, Typescript. ... When in doubt, use...
Read more >
Options - Prettier
In other words, don't try to use printWidth as if it was ESLint's max-len ... TypeScript, and Flow because the distinction between string...
Read more >
@babel/preset-typescript | Yarn - Package Manager
(@danez); #9132 Ensure we always use repository versions of babel dependencies in tests. (@danez); #9131 Update issue templates [skip ci]. (@hzoo).
Read more >
Why We Chose Typescript - Hacker News
If you want runtime assertions with flow you can use flow-runtime [0]. Babylon merged TypeScript support yesterday [1].
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found