prettier-plugin-organize-imports icon indicating copy to clipboard operation
prettier-plugin-organize-imports copied to clipboard

Make Prettier organize your imports using the TypeScript language service API.

Results 10 prettier-plugin-organize-imports issues
Sort by recently updated
recently updated
newest added

The [`source.sortImports`](https://code.visualstudio.com/updates/v1_57#_sort-imports-source-action) code action is similar to the what organize imports does, except it doesn't doesn't remove "unused" imports. Automatic removal of "unused" imports by a Prettier plugin is unacceptable,...

On a typescript react project when you have (2+) named imports commented out, this prettier plugin will insert new lines and duplicate them unnecessarily. Steps to reproduce: 1. Have a...

bug

I have used this plugin in Angular, React and Vue projects. Recently we started migrating a codebase to Svelte and I was eager to keep using this plugin for .svelte...

feature
help wanted

Hi guys, I really like this plugin, however what I have noticed that it slows down prettier by quite a lot. For example, here is with this plugin: ![image](https://github.com/simonhaenisch/prettier-plugin-organize-imports/assets/24560296/46cc15a7-6ad0-4b60-bfa8-62cf33f6c60a) and...

The volar packages have been renamed in https://github.com/vuejs/language-tools/pull/3134. It would be nice if the new vue/typescript package could be supported as well.

help wanted
good first issue

Hello there, I've been using this module for a long time, but now when I upgraded to prettier 3.1.0 and to 3.2.4 of this package, everything works fine but on...

# Description I'm running into issues getting the imports automatically sort in Vue SFCs. As the docs suggestion, I've installed `@volar/vue-typescript` (and have also tried `@vue/typescript`)—but that didn't resolve the...

Still work-in-progress, doesn't actually work yet (see failing test). Would close #39.

Right now, it removes all imports and messes with the JSX, removing or adding random characters.

feature
help wanted