Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

max-statements

- Enforce a maximum number of statements allowed in function blocks

This rule enforces a maximum number of statements allowed in function blocks.

What ESLint should do when it catches the rule break

Show a warning

Options

ignoreTopLevelFunctions

Ignores top-level functions.

Specifies a maximum number of statements allows in function blocks.

Rule examples

You can check them out here.