marudor / eslint-plugin-sort-imports-es6-autofix

Other
83 stars 18 forks source link

Is there an option for making absolute imports go first? #20

Open danmandel opened 3 years ago

danmandel commented 3 years ago

I'd like to always have absolute imports first / relative imports last.

Ideally this

import config from '../config';
import fetch from 'isomorphic-fetch';
import url from 'url';

would look like

import fetch from 'isomorphic-fetch';
import url from 'url';
import config from '../config';

Any help would be appreciated.

Thank you.

Arkellys commented 2 years ago

Checkout the rule order from eslint-plugin-import for that.