</a></h2>

<p>This rule aims to keep all variable declarations in the leading series of statements.
Allowing multiple declarations helps promote maintainability and is thus allowed.</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 vars-on-top: "error"*/</span><br/><br/><span class="c1">// Variable declarations in a block:</span><br/><span class="kd">function</span> <span class=