neuroanatomy / eslint-config-naat

Style rules for js code at NAAT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sorting imports require a lot of effort and does not auto fix

ntraut opened this issue · comments

Sorting import can require a lot of manual work. For example in

import a from 'baz.js';
import {b} from 'qux.js';

changing to

import a from 'baz.js';
import {b, c} from 'qux.js';

will create an error as multiple imports have to be placed before single imports.

I think we should switch the rules to the ones provided by eslint-plugin-import or eslint-plugin-simple-import-sort which have auto fix, or turn of the rules sort-imports, sort-keys and sort-vars.