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

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

Open
sbutterworth-beaches opened this issue Aug 3, 2022 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@sbutterworth-beaches
Copy link

sbutterworth-beaches commented Aug 3, 2022

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
Copy link
Owner

daidodo commented Aug 5, 2022

Thanks for the feedback!

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

@daidodo daidodo added enhancement New feature or request question Further information is requested labels Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants