When I try true use latest jshint stable ( https://github.com/jshint/jshint/blob/master/src/stable/jshint.js ) using this code:
I get following error
Thanks. I noticed this recently too.
Will see if i can figure it out soon...
Btw. I was wondering if 'm trying to include correct file - your source of jshint ( e.g. jshint-r06.js ) in src/test/integration/jshint has about 160kB and then one in jshint/tree/master/src/stable (the one I was trying to include) has about 106kB. Is your file some kind of concatenated full version of jshint?
Actually, the version bundled is r12 (/src/main/resources/com/philmander/jshint) which is 170k
The r06 is just for testing the alternative version option.
The current stable release of jshint looks like its seen some significant restructuring.
v1+ of JSHint requires Rhino 1.7R4
Updating project to use JSHINT 1.1.0 (#20)
Upgraded Rhino to1.7R4. Also added env.js to js evaluation to better simulate browser globals that jshint may require.
All tests now passing. @chodorowicz could you verify this is good for you?
Hey, thanks for the update. It doesn't work for me, but probably I'm not including correct jshint source file - I'm getting now:
I'm using this file: https://github.com/jshint/jshint/blob/master/src/stable/jshint.js
Maybe I should use another one?
This is a development version, not a final build
You should use the released browser bundle available from http://jshint.com/install
Although the latest ant task is bundled with this version by default, so you shouldn't need a custom jshint source anyway.
I had to finally oppurtunity to test it. It works great with JSHint Browser Bundle. Thanks!