The latest (very much simplified) version (8.0) of Widget Tester is at http://tinyurl.com/5unocx . This incorporates JSLint of 2009-03-28. Widget Tester...
Run the following code in JSLint: <html> <head> <style type="text/css"> div { /**/ } </style> </head> </html> Note the (incorrect) errors that come up: ...
Are there any (Windows platform) javascript-aware editors (syntax highlighting) out there that auto-format for jslint (such as proper indenting, automatic...
I was code reviewing some code, which is similar to the structure below: var x = { "y" : "not test"}; var z = x.y = "test"; It gets several errors, and the...
JSLint produces "Unexpected space" errors for the following: var myArray = [ 1 , 2 , 3 ]; Shouldn't having "Tolerate sloppy line breaking" on allow for this?...
I'm happy to announce an update to the JSLint Multi widget. The new widget has been submitted to Yahoo Widget Gallery, but they update very slowly, so for now,...
Hi, I don't know what I have done differently, but last time I checked my document I didn't get this error. I have only made slight modifications since, so...
In this example: var getObjLength = function(obj) { var objLength = 0, key = ''; for (key in obj) { objLength++; } return objLength; }; The key variable is not...
Hi What’s the rationale behind issuing a line breaking error for code like this: var x = somefunc( param1, param2 ); But not for code like this: var x = { ...
It's here: http://code.google.com/p/jslint-dashboard/ I don't expect to update it with every change to JSLint, but it will be updated every few months at...
I have added a new immed option. When it is true, immediate function invocations must be wrapped in parens. So foo = function () {} (); // warning foo =...
I have seen a lot of confusion around use of immediate invocation of functions. I think JSLint can help if we can insist on some specific styling. I am...
If I have such kind of code try { something } catch (e) {} Means I don't care about e, I will not use it. Unfortunately I have to write catch(e) because catch...
It would be cool if it were possible to surpress warnings/errors that originate form a certain line. For example, occasionaly I conciously use an unfiltered...
A robust coding style demands that symbols should be declared before they are used. But how is this possible in the case of mutually recursive functions? If...
I find the requirement for using braces excessively anal in such if compounds as: if (/*expression*/) {/*single statement*/} else {/*single statement*/} Is...
Part of my project uses a statement like the following: var b = new Array(a.length); but jslint complains: Use the array literal notation []. My theory here is...
It seems that using a variable named "constructor" that is not declared (which in itself is wrong off course) always produces a strange error. The rhino...
I suggest to pilot the indentation as jslint option: For instance, /*jslint indent: 2 */ If I lint source files with different code styling, I can write the ...
Here are two javascript mistakes I have recently made which jslint might be able to check for: 1. using the same variable in two nested loops var i; for (i =...
The current version of JSlint (at least on Rhino) exits with code 1 if it cannot read the file and 0 otherwise. If it instead would exit with 0 only if the...
var arr = []; for(var i, b; b=arr[i] ; i++){ } //---------- according to : http://userjs.org/help/tutorials/efficient-code#fastloops its fully legit to make an...
The current version of JSlint (at least on Rhino) only reads the Javascript from an existing file. If it could also optionally read from standard-input, I...
If JSLint produced messages that looked like jsdir/jsfile.js:968: 'v' is already defined. then I could run run JSLint from inside emacs (or, I believe,...