When confronted with a number literal like .0725 JSLint no longer reports Don't use extra leading zeros '0725'. but it does report A leading decimal point can...
I added a warning to the web page edition at http://www.JSLint.com/: WARNING: JSLint will hurt your feelings. I relaxed the ADsafe restriction on the [ ]...
I have added a glovar option. When glovar: true, then var cannot be used to declare global variables. Fiann O'Hagan convinced me that many programmers have a...
... Do you think it would be a good idea to include a version comment in the JSLint source file? I'm working on something and I think it would be good to say...
Hello, I got this error from jslint: Unsafe character. fn("FAILED—" + message); The '—' is char 226 or 0xe2. It is not ascii, but I was wondering why it ...
... why it ... There are characters that are handled inconsistently in the various implementations, and so must be escaped when placed in strings, and must...
Hi, I have created an MSBuild task that can be used to automate the process of running the JSLint tool on Javascript files. You can read about it on my blog at...
I added arguments to the set of excluded members. The set now contains apply arguments call callee caller constructor eval prototype unwatch valueOf watch...
escape & unescape do not do url encoding correctly and they are not in the official standard. JSLint no longer accepts them. If you want JSLint to pass crappy...
... Hello Douglas, This is the first time I heard that escape and unescape do not do URL encoding correctly, and are not in the official standard. Where can I ...
The ECMAScript standard reserves the following words: abstract boolean byte char double final float implements int interface long native package private...
I corrected an error in JSLint that created a scope around labeled statements. function a() { foo: for (var i = 0; false;) { } return i; } As a result, it used...
I've already asked Douglas this question before, and I know that JsLint has to hurt my feelings, but I don't understand the need for this check. For a...
Hello. In my javascript files I define, as first line, a namespace like var FOO = YAHOO.namespace("foo"); // alias for YAHOO.foo using Yahoo! User Interface...
... Ops... so simple! :) I missed that because I deleted 'var' and I get "'FOO' is undefined.". The tricky part is adding /*global FOO */. Thanks again, ...
JSLint will now providing a warning for code like this: function foo(a) { var i; for (i = 0; i < a.length; i += 1) { a[i].onclick = function (e) { alert(i); };...
When constructing a singleton in JS using an anonymous constructor, JSlint returns a "Weird construction" error. Here's the code: /*globals A*/ A = new...
Hi Although this is really a javascript (not jslint) issue, could you explain why one should make the function valus in a closure. Thanks Alan ... make...
... The common failure case was shown in the example, attaching event handlers in a loop. If the event handlers are bound to variables that are mutated by the...
When immediately invoking a function literal, parens must wrap the expression when it is used in the statement position because of an ambiguity in the grammar...
In jQuery there is the following code when throwing error in an Ajax call: function (XMLHttpRequest, textStatus, errorThrown) { // typically only one of...
Clearly that code is bad. How you fix it depends on what it is supposed to do. If you delete the line containing this; it will behave as it does now....