warn whenever a labeled statement is encountered and whenever <code class="highlighter-rouge">break</code> or <code class="highlighter-rouge">continue</code> are used with a label.</p>

<p class="incorrect icon">Examples of <strong>incorrect</strong> code for this rule:</p>

<div class="highlighter-rouge"><pre class="highlight"><code><span class="cm">/*eslint no-labels: "error"*/</span><br/><br/><span class="nl">label</span><span class="p">:</span><br/>    <span class="k">while</span><span class="p">(</span