neuroanatomy / eslint-config-naat

Style rules for js code at NAAT
0 stars 2 forks source link

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

Closed ntraut closed 8 months ago

ntraut commented 1 year ago

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.