The ECMAScript standard reserves the following words: abstract boolean byte char double final float implements int interface long native package private...
JavascriptLint (or Firefox in maximum JS warning) is able to detect some errors that JsLint doesn't see. The first is the ability to detect return values: ...
Hi, I just ran some code in JSlint and got various messages (as expected): 1. Operators: I got: Use '!==' to compare with 'null' (or false) and Use '===' to...
There should be an option to allow var foo = "Lorem \ ipsum \ dolor"; because IE, Fx, Opera, and Safari support it, and ECMAScript 5 will allow it officially....
IE7 won't execute this: <script type="application/javascript"> alert(); </script> The other browsers don't have a problem with it, but IE chokes. It's okay...
I'm current testing JsLint on our source code, and it displays quite a lot of interesting warnings, even though I don't always agree with them. For example, I...
Internet Explorer has a window.execScript() method that basically does the same thing as eval(), except that it always executes scripts in the global scope: ...
Hello! I think really neat would be something that generates the jslint-options-string (/*jslint ... */). I am writing a small Javascript Library and had the...
var global; (function () { var local; }()); Note that it lists local as Unused, but not global. I'm not sure if this is considered a bug or not, but it seems a...
Douglas, I appreciate your diligence in keeping the list up-to-date with the latest changes as you deploy them. Is there any chance that you could be persuaded...
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...