eslint-plugin-import-order-alphabetical icon indicating copy to clipboard operation
eslint-plugin-import-order-alphabetical copied to clipboard

Sorting unclear in group

Open cdreve opened this issue 6 years ago • 0 comments

I have this:

import A from './A';
import C from '../C';
import B from '../../B';

When sorting with:

"import-order-alphabetical/order": [2, {
  "groups": [["builtin", "external"], ["index", "parent", "sibling"]]
}],

I get:

import B from '../../B';
import C from '../C';
import A from './A';

What I expect, it would be to be sorted:

import A from './A';
import B from '../../B';
import C from '../C';

Is there a way to make this plugin do this?

cdreve avatar Nov 14 '18 12:11 cdreve