DEV Community

Discussion on: Sorting your imports correctly in React

Collapse
 
gustaffweldon profile image
Good stuff and well done!

import/order works great until it hits code like:

import { b, c, a } from 'sth';

It will simply ignore { b, c, a } sorting. I have tried coupling it with sort-import but they are conflicting.

So, in the end, I will probably resort to simple-import-sort which does both, grouping and sorting in groups as well as import members.

Collapse
 
aamirafridi profile image
Aamir Afridi

Thanks for pointing to eslint-plugin-simple-import-sort simple to configure and worked great for me.