title: Does jshint understand Angular?
body: <p>jshint is throwing an error when defining an angular module (or directive, or factory) as recommended by the Angular style guides (by <a href="https://github.com/johnpapa/angularjs-styleguide">John Papa</a> or <a href="https://github.com/toddmotto/angularjs-styleguide">Todd Motto</a>). For example, for a controller like this:</p>
  
  <pre><code>(function () {
      'use strict';
  
      angular
          .module('myApp')
          .controller('myAppCtrl', theController);
  
      function theController() {...}
  
  })();
  </code></pre>
  
  <p>... jshint throws this error:</p>
  
  <pre><code>'theController' was used before it was defined.
  </code></pre>
  
  <p>The angular app works perfectly despite these errors. However I don't know why jshint protests...</p>
  
  <p>What am I missing? I wonder if jshint is a good evaluator of the quality of the angular code (despite it is included with popular packages as generator-angular) or it's me that I am doing something wrong (although my app works).</p>
  
  <p>Thanks in advance! </p>