daidodo / format-imports-vscode

Format imports and exports for JavaScript and TypeScript in VS Code.
https://marketplace.visualstudio.com/items?itemName=dozerg.tsimportsorter
MIT License
62 stars 5 forks source link

Feature request: Add setting `tsImportSorter.configuration.formatImports` to allow sorting exports only #78

Open sbutterworth-beaches opened 2 years ago

sbutterworth-beaches commented 2 years ago

Feature request: Add setting tsImportSorter.configuration.formatImports to facilitate sorting exports only

I like this plugin for it's rare ability to sort exports, but, it conflicts a bit with a set-up my team already uses to sort imports via prettier with plugin trivago/prettier-plugin-sort-imports. We use prettier for a lot more than import sorting - so not using it is simply not an option for us - also prettier is able to mass-update many files at once.

Since I couldn't find anything in the prettier plugin space to sort exports it would be awesome to have this VS code plugin installed, but have the parsing & sorting of IMPORTS be able to be disabled via the setting I suggested adding - so that only the EXPORT sort is active.

Should be simple to add right?

daidodo commented 2 years ago

Thanks for the feedback!

Could you share your config for trivago/prettier-plugin-sort-imports?