no-label-var

- Disallow labels that share a name with a variable

This rule aims to create clearer code by disallowing the bad practice of creating a label that shares a name with a variable that is in scope.

What ESLint should do when it catches the rule break

Show a warning

Rule examples

You can check them out here.