eslint-plugin-sort-imports-es6-autofix icon indicating copy to clipboard operation
eslint-plugin-sort-imports-es6-autofix copied to clipboard

Is there an option for making absolute imports go first?

Open danmandel opened this issue 3 years ago • 1 comments

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.

danmandel avatar Mar 13 '21 03:03 danmandel

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

Arkellys avatar Feb 10 '22 11:02 Arkellys