Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

func-style

- Enforce the consistent use of either function declarations or expressions

This rule enforces a particular type of function style throughout a JavaScript file, either declarations or expressions. You can specify which you prefer in the configuration.

What ESLint should do when it catches the rule break

Show a warning

Options

expression

allowArrowFunctions

Allows the use of arrow functions.

Rule examples

You can check them out here.