Eslint angular and jasmine: is not defined no-undef
<p>I am trying to lint my angular code using angular, eslint:recommended and the jasmine plugin recommended settings. However I get is not defined errors on the jasmine stuff.
My eslint file looks like this:</p>
<pre><code>{
  &quot;plugins&quot;: [&quot;jasmine&quot;],
  &quot;extends&quot;: [&quot;angular&quot;, &quot;eslint:recommended&quot;, 
  &quot;plugin:jasmine/recommended&quot;],
  &quot;rules&quot;: {
   &quot;quotes&quot;: [ 2, &quot;single&quot;],
   &quot;strict&quot;: [2, &quot;global&quot;],
   &quot;semi&quot;: [&quot;error&quot;, &quot;always&quot;],
   &quot;angular/on-watch&quot;: &quot;warn&quot;
  }
}
</code></pre>
<p>I get the following errors:</p>
<blockquote>
<p>3:1 error 'describe' is not defined no-undef</p>
<p>4:5 error 'it' is not defined no-undef</p>
<p>5:9 error 'expect' is not defined no-undef</p>
<p>7:5 error 'it' is not defined no-undef</p>
<p>8:9 error 'expect' is not defined no-undef</p>
</blockquote>
<p>And in my <code>package.json</code> I have version <code>2.3.0</code> for <code>eslint</code> and <code>1.8.1</code> for <code>eslint-plugin-jasmine</code>. I also have version <code>0.5.0 </code>for <code>eslint-config-angular</code> and <code>1.0.0</code> for <code>eslint-plugin-angular</code>.</p>
<p>I have also tried without specifying the <code>&quot;plugins&quot;: [&quot;jasmine&quot;]</code> in my <code>eslint</code> file but then I get an error telling me the jasmine rules are not defined (eg <code>Definition for rule 'jasmine/no-focused-tests' was not found</code>).</p>