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.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
If you don’t want to be notified about usage of labels, then it’s safe to disable this rule.
This rule was introduced in ESLint v0.0.9.
© OpenJS Foundation and other contributors
Licensed under the MIT License.
https://eslint.org/docs/latest/rules/no-label-var