Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

array-bracket-spacing

- Enforce consistent spacing inside array brackets

Fixable

This rule enforces consistent spacing inside array brackets.

What ESLint should do when it catches the rule break

Show a warning

Options

always

singleValue

Requires one or more spaces or newlines inside brackets of array literals that contain a single element.

objectsInArrays

Requires one or more spaces or newlines between brackets of array literals and braces of their object literal elements [ { or } ].

arraysInArrays

Requires one or more spaces or newlines between brackets of array literals and brackets of their array literal elements [ [ or ] ].

Rule examples

You can check them out here.