bug: TypeScript imports are scrambled together
See original GitHub issueHey there, I’m using VSCode v1.28.2
and prettier-vscode v1.6.1
.
Since a period of time, I’m encountering the following bug when prettier is reformating imports:
First, the imports are like this:
Now, my linting rules imply, that you order the imports in the same group. And prettier does the following job 😃
Does somebody else have this exact problem? Cheers
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:10 (3 by maintainers)
Top Results From Across the Web
How to Correctly Use TypeScript Module Import Syntax and ...
Importing modules into TypeScript code then compiling and running the code with Node.js is not always as simple as it sounds.
Read more >TypeScript import merging should distinguish between value ...
What steps will reproduce the problem? Make sure Editor > Code Style > TypeScript > Imports > "Merge imports for members from the...
Read more >Imports from the same modules should be merged
Multiple imports from the same module should be merged together to improve readability. Noncompliant Code Example. import { B1 } from 'b'; import...
Read more >10 Strategies for migrating to TypeScript - Exploring JS
This chapter gives an overview of strategies for migrating code bases from JavaScript to TypeScript. It also mentions material for further reading.
Read more >Documentation - TypeScript 4.5
Error : 'BaseType' is a type and must be imported using a type-only import ... When these options are combined, we need a...
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 FreeTop 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
Top GitHub Comments
This bug should be fixed once we update
prettier-tslint
to0.4.2
https://github.com/azz/prettier-tslint/issues/26This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.