I have found that JSLint complains about the forward slash in this: /=\' / but not in this: / =\'/ It seems if the first example is worthy of complaint then...
Jslint group, After long use of jslint as a web application, I just began using it with Rhino, which is apparently ignoring my /*jslint option1 option2 ...*/ ...
Now, I fully understand the reasons behind this change, and I approve. However, I've noticed something interesting. If you select the "Assume a browser"...
JSLint does not properly ignore HTML comments: <html> <!-- "' --> </html> Note that JSLint parses the data inside the comment, when it should be ignored....
Arrays work really differently in JavaScript than in most other languages. If you do not understand those differences, you can be in for a world of hurt....
I've been using JSLint for several years. As a result, I've developed an habitual JavaScript coding style which conforms to its requirements, and my code...
I think it would be great if the JSLint Yahoo! Widget had the clear, recommended, and good parts selectors found on jslint.com. It would save a bit of time and...
First, could JsLint displays the number of errors and warnings, and can you add a way to configure the number of warnings ? The 50 warnings limit is really too...
I am curious why JSLint dislikes this: var foo = new function () { this.bar = 1; }(); Without the "new", "this" is bound to the global object. It is true that...
I'm trying to check if a variable is already defined and define if is not. If (Testvar === undefined) { var Testvar = {}; } JsLint say that Testvar was used...
var regexp = /\s+(?!.*[\=])/gm; I am a bit confused as to why JSLint doesn't like this. It doesn't seem to cause problems or throw exceptions in the browsers...
I have been working with strict mode in ES5. It requires that there be a var declaration if a program unit creates a new global variable. Implied global...
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...