yarn add eslint-plugins-esayemm --dev
In .eslintrc
{
"plugins": ["esayemm"],
"rules": {
"esayemm/align-imports": 2,
"esayemm/sort-imports": 2
}
}
Fixable
Invalid
import a from 'a'
import foo from 'foo'
Valid
import a from 'a'
import foo from 'foo'
Fixable
Invalid
import b from 'b'
import a from 'a'
Valid
import a from 'a'
import b from 'b'
Run make
to see the development API.