Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

max-lines-per-function

- Enforce a maximum number of line of code in a function

This rule enforces a maximum number of lines per function, in order to aid in maintainability and reduce complexity.

What ESLint should do when it catches the rule break

Show a warning

Options

skipBlankLines

Ignores lines made up purely of whitespace.

skipComments

Ignores lines containing just comments.

IIFEs

Includes any code included in IIFEs.

Specifies a maximum number of lines in a function.

Rule examples

You can check them out here.