Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

prefer-arrow-callback

- Require using arrow functions for callbacks

Fixable

This rule locates function expressions used as callbacks or function arguments. An error will be produced for any that could be replaced by an arrow function without changing the result.

What ESLint should do when it catches the rule break

Show a warning

Options

allowNamedFunctions

Allows the use of named functions without restriction.

allowUnboundThis

Allows function expressions containing this to be used as callbacks, as long as the function in question has not been explicitly bound.

Rule examples

You can check them out here.