Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

default-case

- Require default cases in switch statements

This rule aims to require default case in switch statements. You may optionally include a // no default after the last case if there is no default case. The comment may be in any desired case, such as // No Default.

What ESLint should do when it catches the rule break

Show a warning

Options

Specifies a regular expression to change the default /^no default$/i comment test pattern.

Rule examples

You can check them out here.