Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

sort-vars

- Require variables within the same declaration block to be sorted

Fixable

This rule checks all variable declaration blocks and verifies that all variables are sorted alphabetically. The default configuration of the rule is case-sensitive.

What ESLint should do when it catches the rule break

Show a warning

Options

ignoreCase

Ignores the case-sensitivity of the variables order.

Rule examples

You can check them out here.