Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-labels

- Disallow labeled statements

This rule aims to eliminate the use of labeled statements in JavaScript. It will warn whenever a labeled statement is encountered and whenever break or continue are used with a label.

What ESLint should do when it catches the rule break

Show a warning

Options

allowLoop

Ignores labels which are sticking to loop statements.

allowSwitch

Ignores labels which are sticking to switch statements.

Rule examples

You can check them out here.