Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

key-spacing

- Enforce consistent spacing between keys and values in object literal properties

Fixable

This rule enforces consistent spacing between keys and values in object literal properties. In the case of long lines, it is acceptable to add a new line wherever whitespace is allowed.

What ESLint should do when it catches the rule break

Show a warning

Options

beforeColon

Requires at least one space between the key and the colon in object literals.

afterColon

Requires at least one space between the colon and the value in object literals.

mode

strict

align

value

Rule examples

You can check them out here.