Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

sort-imports

- Enforce sorted import declarations within modules

Fixable

This rule checks all import declarations and verifies that all imports are first sorted by the used member syntax and then alphabetically by the first member or alias name.

What ESLint should do when it catches the rule break

Show a warning

Options

ignoreCase

Ignores the case-sensitivity of the imports local name.

ignoreMemberSort

Ignores the member sorting within a multiple member import declaration.

Rule examples

You can check them out here.