title: How configure jshint in a meanjs project with socket.io?
body: <p>I followed exactly <a href="https://vexxhost.com/blog/mean-socket-io-integration-tutorial/" rel="nofollow">that tutorial</a> (I obviously replaced the vexxhost domain name by localhost:3000 for my tests).</p>
  
  <p>And while calling grunt there is an error ('io' is not defined) but the server start without any other complain.</p>
  
  <p>If I correctly understood the problem, jshint scan the whole project to validate the code and he finds on reference to an undefined variable ! But 'io' is defined when the whole application starts (because the script are loaded). In fact, that error is more a warning than an error</p>
  
  <p>If I am right (and I hope some people here will correct me if I am not), that bring us to my question : How refactor the code or configure jshint to avoid that warning ?</p>
  
  <p>If possible I would prefer to have an explicit reference to 'io'.</p>
  
  <p>By advance thank you to everyone.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>My results from that tutorial are available <a href="https://github.com/asirko/socket_meanjs" rel="nofollow">here</a> on github. The problematic file is <code>public/modules/core/services/socket.js</code>.</p>