Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-case-declarations

- Disallow lexical declarations in case clauses

Recommended

This rule aims to prevent access to uninitialized lexical bindings as well as accessing hoisted functions across case clauses.

What ESLint should do when it catches the rule break

Show a warning

Rule examples

You can check them out here.