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.

Sort not work with parser: "babel-flow"

See original GitHub issue

Here 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
ayusharmacommented, Nov 12, 2020

@Yammoe I’ll check in this week. Sorry for the delays.

0reactions
byaracommented, Mar 16, 2021

With the release of v2.0.1, this should be fixed. Either prettier will figure out the syntax correctly, or you can use experimentalBabelParserPluginsList in your .prettierrc to pass the correct parser name.

If there was still problems, you can of course re-open this issue.

Read more comments on GitHub >

github_iconTop 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 >

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