amatiasq / vsc-sort-imports

Sort ES6 imports automatically.
ISC License
58 stars 24 forks source link

Any option to also sort exports? #53

Open kiewic opened 4 years ago

kiewic commented 4 years ago

I cannot find an option to also sort exports clauses, for example:

export { IMessage } from './message-types';
export { default as MessageBase } from './message-base';

I am assuming it is not supported, but I want to double check.

Thanks!

amatiasq commented 4 years ago

We're using a library to do the AST parsing so I don't know yet if this is supported by default. If it isn't I'd recommend you to open this issue on https://github.com/renke/import-sort. Once it's implemented there we only need to update the dependency.