Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

arrow-spacing

- Enforce consistent spacing before and after the arrow in arrow functions

Fixable

This rule takes an object argument with before and after properties, each with a Boolean value.

What ESLint should do when it catches the rule break

Show a warning

Options

before

Requires one or more spaces before arrow.

after

Requires one or more spaces after arrow.

Rule examples

You can check them out here.