Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
September 25, 2012


Make 'indent' behaviour consistent.
When 'indent' is used as a comment it implies 'white' option. (see
L1973). This behaviour came to us as JSLint's legacy and is outside
of scope of this commit. This commit simply makes it so the 'indent'
option passed as an argument to JSHINT also implies 'white'.

Fixes GH-655.
September 03, 2012


Fixed a bug where new max* options were not recognized.
So while publishing r11 I noticed that new max* options (maxparams,
etc.) were not recognized when set using JSHint comments. That was
because we forgot to update the code that checks for numeric values.
This patch fixes that and adds a regression test (just in case).

Will have to move r11 pointer to this commit instead of previous one.
August 20, 2012


Add a shim for Array.prototype.indexOf
Apparently, whatever JavaScript engine WSH uses, it doesn't support
Array.prototype.indexOf method so I had to add a shim for it. I took
the original version from MDN and modified it to pass our lint tests.

Closes GH-617.
August 04, 2012


Fix how Rhino wrapper treats predefined args.
This patch fixes how Rhino wrapper treats predefined args. You don't
need to include '=' anymore and default override value is now false.

Here's wrapper's new signature:

jshint-rhino.js [filename,..] [option=true,..] [global=true,global,..]


 * options must follow filenames
 * options must have '=' in them
 * predefs must follow options

Closes GH-569.
July 24, 2012


Error on invalid JSHINT(...) input
This patch makes JSHint to return an error whenever you try to use
the function with an invalid first parameter. First parameter has
to be either a non-empty string or a non-empty array.

Closes GH-567.
May 01, 2012


Don't show unnecessary warnings for new my.Array()
There is no need in showing "Use the _ literal notation." warning
when Array is simply a property of some custom object. Same with

Fixes GH-527.
February 13, 2012


Unused and implied collections now respect variable hoisting as well.…
… Fixes GH-431.
January 19, 2012


Fixes code style to undef_func fixture
January 08, 2012


Strip spaces for JSHint options when used with JSC wrapper.
Fixes GH-398.
December 30, 2011


Merge branch 'es5-duplicate-accessors' of…
…Kluge/jshint into WolfgangKluge-es5-duplicate-accessors
December 23, 2011
April 16, 2011


Stable edition: 2011-04-16
Something went wrong with that request. Please try again.