Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

complexity

- Enforce a maximum cyclomatic complexity allowed in a program

This rule is aimed at reducing code complexity by capping the amount of cyclomatic complexity allowed in a program. As such, it will warn when the cyclomatic complexity crosses the configured threshold (default is 20).

What ESLint should do when it catches the rule break

Show a warning

Options

Specifies a cyclomatic complexity threshold.

Rule examples

You can check them out here.