Sort not work with parser: "babel-flow"
See original GitHub issueHere is my .prettierrc.json
{ "singleQuote": true, "importOrder": ["^src/(.*)$", "^[./]"], "importOrderSeparation": true, "printWidth": 120, "parser": "babel-flow" }
I try removing parser line then it works normally, but it won’t sort with the parser: "babel-flow. Is this a bug or I was wrong somewhere?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
Compatibility with Prettier 3.0 · Issue #37 - GitHub
We're going to need to explore what it takes to be compatible with the 3.0 ... does not work: trivago/prettier-plugin-sort-imports#171.
Read more >Basic parsing Flow with Babel not working - Stack Overflow
The following works :- const fs = require('fs'); const babel = require('@babel/core'); if (process.argv.length == 3) { const filename ...
Read more >babel/parser
The Babel parser (previously Babylon) is a JavaScript parser used in Babel. ... Heavily based on acorn and acorn-jsx, thanks to the awesome...
Read more >Options - Prettier
Prettier's printWidth option does not work the same way. ... and flow parsers support the same set of JavaScript features (including Flow type...
Read more >Sort search results | Elasticsearch Guide [8.5] | Elastic
Allows you to add one or more sorts on specific fields. Each sort can be reversed as well. The sort is defined on...
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

@Yammoe I’ll check in this week. Sorry for the delays.
With the release of v2.0.1, this should be fixed. Either prettier will figure out the syntax correctly, or you can use
experimentalBabelParserPluginsListin your.prettierrcto pass the correct parser name.If there was still problems, you can of course re-open this issue.