Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

sort-keys

- Require object keys to be sorted

This rule checks all property definitions of object expressions and verifies that all variables are sorted alphabetically.

What ESLint should do when it catches the rule break

Show a warning

Options

asc

caseSensitive

Enforces properties to be in case-sensitive order.

natural

Enforces properties to be in natural order.

Rule examples

You can check them out here.