Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

comma-spacing

- Enforce consistent spacing before and after commas

Fixable

This rule enforces consistent spacing before and after commas in variable declarations, array literals, object literals, function parameters, and sequences.

What ESLint should do when it catches the rule break

Show a warning

Options

before

Requires one or more spaces before commas.

after

Requires one or more spaces after commas.

Rule examples

You can check them out here.