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.

bug: TypeScript imports are scrambled together

See original GitHub issue

Hey 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: 2018-10-24t08-35-16_90c0fdb2

Now, my linting rules imply, that you order the imports in the same group. And prettier does the following job 😃

2018-10-24t08-39-03_bd87279d

Does somebody else have this exact problem? Cheers

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
josephktcheungcommented, Jan 11, 2019

This bug should be fixed once we update prettier-tslint to 0.4.2 https://github.com/azz/prettier-tslint/issues/26

0reactions
github-actions[bot]commented, Apr 12, 2020

This 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.

Read more comments on GitHub >

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

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