title: Does every class need an entry in JSHint globals?
body: <p>Every time I create a new <code>ES6</code>-class I need to add it to the <code>globals</code> in the <code>.jshintrc</code>. Because otherwise I get the warning <code>W117 '&lt;classname&gt;' is not defined</code>.</p>
  
  <p>The project is not huge, so adding each class to the <code>globals</code> is not a big deal. Anyway I am wondering how bigger projects with thousand of classes and many developers avoid this, because the list gets long and is probably not manageable.</p>
  
  <p>To find a solution I looked at the <code>JSHint</code> options and tried to find hints on the Internet, but I could not find anything useful.</p>
  
  <p><em>Example:</em></p>
  
  <p>Create new class (in own file).</p>
  
  <pre><code>/* exported Foo*/
  class Foo {
    // some code
  }
  </code></pre>
  
  <p>Use new class in another file.</p>
  
  <pre><code>const foo = new Foo(); // W117 'Foo' is not defined
  </code></pre>
  
  <p>After adding <code>Foo</code> to the <code>globals</code> the warning disappears.</p>
  
  <pre><code>// .jshintrc
  {
      // some options
  
      "globals": {
          "Foo": true
      }
  }
  </code></pre>