title: Sublime Linter/ ReferenceError: window is not defined?
body: <p>I know this is very basic question, but it's very strange that I cannot make it work, after spending hours, I really need help.</p>
  
  <ul>
  <li>OSX 10.8.4</li>
  <li>sublime Text 2  Version 2.0.2 Build 2221</li>
  <li>node v0.10.15</li>
  <li>jshint v2.1.7</li>
  </ul>
  
  <p>Actually, I clean-installed sublime Text 2 just for this; just <strong>Sublime Package Control</strong> has been installed.</p>
  
  <p>Firstly, I prepared a <strong>foo.js</strong> code:</p>
  
  <pre><code>function x(a, b)
  {
      return a + b
  
  res = x(10, 20)
  console.log("res = " + res);
  </code></pre>
  
  <p>which result:</p>
  
  <pre><code>$ jshint foo.js                                       
  foo.js: line 3, col 17, Missing semicolon.
  foo.js: line 6, col 16, Missing semicolon.
  foo.js: line 2, col 1, Unmatched '{'.
  
  3 errors
  </code></pre>
  
  <p>So, <strong>jshint</strong> works as expected so far for the simple test.</p>
  
  <p>I tried many things to get it work with Sublime Linter, but with no success, I clean-installed  the sublime app, then followed a tutorial video:</p>
  
  <p><a href="https://tutsplus.com/lesson/sublime-linter/" rel="nofollow">https://tutsplus.com/lesson/sublime-linter/</a></p>
  
  <p>Looks easy, and Sublime Linter appearrently successfully installed and readme appears as the video show at 00:30, but in my case, after that, saving or whatever never triggers anything.</p>
  
  <p>Well, I'm totally lost. Please advise. Thanks.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I noticed sublimeText console shown a error!</p>
  
  <pre><code>Traceback (most recent call last):
    File "./SublimeLinter.py", line 431, in _update_view
    File "./SublimeLinter.py", line 143, in run_once
    File "./sublimelinter/modules/base_linter.py", line 291, in run
    File "./sublimelinter/modules/javascript.py", line 72, in parse_errors
  ValueError: Error from jshint: /Users/ken/Library/Application Support/Sublime Text 2/Packages/SublimeLinter/sublimelinter/modules/libs/jshint/jshint.js:7881
  })(window)
     ^
  ReferenceError: window is not defined
      at Object.require.util (/Users/ken/Library/Application Support/Sublime Text 2/Packages/SublimeLinter/sublimelinter/modules/libs/jshint/jshint.js:7881:4)
  </code></pre>
  
  <p>EDIT:
  ok, this seems bug, I should have checked there first..</p>
  
  <p><a href="https://github.com/SublimeLinter/SublimeLinter/issues" rel="nofollow">https://github.com/SublimeLinter/SublimeLinter/issues</a></p>