no-extra-label
Configuration
rslint.config.ts
Rule Details
This rule disallows labels that are only used on loops or switch statements
that have no nested breakable statement — in those cases a bare break /
continue already refers to the directly-enclosing loop or switch, so the
label adds no information and can confuse readers who expect labels to
control deeper nesting.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Options
This rule has no options.