Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combining imports from the same file #138

Open
rene-leanix opened this issue Feb 1, 2021 · 2 comments
Open

Combining imports from the same file #138

rene-leanix opened this issue Feb 1, 2021 · 2 comments

Comments

@rene-leanix
Copy link

Have there been any plans to combine all (side-effect-free) imports from the same file into a single import statement?

We're using import-sort in combination with Prettier and would benefit a lot from this feature.

@karlhorky
Copy link

I would like this as well.

Currently I'm using VS Code's Organize Imports feature, but it has a huge downside as of Feb 2021 - it removes the unused imports as well 😵 microsoft/TypeScript#36085

@karlhorky
Copy link

Looks like import-sorter from @SoominHan does this, among other features (also with a lot of configuration options for this)! 💯

Using it via the JS/TS Import/Export Sorter VS Code Extension by @daidodo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants