By popular demand, this rule reports any imports that come after non-import statments.
import foo from './foo'
// some module-level initializer
initWith(foo)
import bar from './bar' // <- reported
Providing absolute-first
as an option will report any absolute imports (i.e.
packages) that come after any relative imports:
import foo from 'foo'
import bar from './bar'
import * as _ from 'lodash' // <- reported
TODO: add explanation of imported name hoisting
If you don't mind imports being sprinkled throughout, you may not want to enable this rule.