</code>. As such it will flag comparisons to null when using <code class="highlighter-rouge">==</code> and <code class="highlighter-rouge">!=</code>.</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-eq-null: "error"*/</span><br/><br/><span class="k">if</span> <span class="p">(</span><span class="nx">foo</span> <span class="o">==</span> <span class="kc">null</span><span class