highlight"><code><span class="cm">/*eslint key-spacing: ["error", { "beforeColon": false }]*/</span><br/><br/><span class="kd">var</span> <span class="nx">obj</span> <span class="o">=</span> <span class="p">{</span> <span class="s2">"foo"</span> <span class="p">:</span> <span class="mi">42</span> <span class="p">};</span><br/></code></pre>
</div>

<p class="correct icon">Examples of <strong>correct</strong> code for this rule with the default <code class="highlighter-rouge"><span class="p">{</span><span cla