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

Also sort the exports

Open k3nsei opened this issue 2 years ago • 4 comments

Is your feature request related to a problem? Sort also export not just imports.

Describe the solution you'd like When I have code like that:

export { c, a, b, A } from 'foo';
export { x } from 'bar';

To be sorted like that:

export { x } from 'bar';
export { A, a, b, c } from 'foo';

Describe alternatives you've considered None

Additional context Not needed

k3nsei avatar Jul 08 '22 12:07 k3nsei

I would like to use this feature on only barrel file

d-fuji avatar Jun 06 '23 10:06 d-fuji

@d-fuji I switched to https://eslint.org/docs/latest/rules/sort-imports and https://www.npmjs.com/package/eslint-plugin-import

k3nsei avatar Jun 06 '23 10:06 k3nsei

@k3nsei These libraries can sort export? I couldn't find the document...

d-fuji avatar Jun 06 '23 12:06 d-fuji

@d-fuji I switched to https://eslint.org/docs/latest/rules/sort-imports and https://www.npmjs.com/package/eslint-plugin-import

how?

SalahAdDin avatar Aug 11 '23 17:08 SalahAdDin