Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-fallthrough

- Disallow fallthrough of case statements

Recommended

This rule is aimed at eliminating unintentional fallthrough of one case to the other. As such, it flags any fallthrough scenarios that are not marked by a comment.

What ESLint should do when it catches the rule break

Show a warning

Options

Specifies a regular expression to change the test for intentional fallthrough comment.

Rule examples

You can check them out here.