Hi, function myFunc() { var v1 = { option: true }; var v2 = v1.option = false; }; JSLint throws the following error messages for the above code snippet: Error:...
Tabs are problematic largely due to a lack of standardization. They are unnecessary, but still in significant use. JSLint now treats a tab as equivalent to the...
JSLint does not handle tabs correctly. Mostly, this does not matter, but it does matter when checking indentation. Some text editors allow tab-stops to be...
JSLint now accepts an indent parameter that allows setting the number of spaces of indentation when checking strict whitespace. The default is 4. It can be...
Hello! A few -more or less- philosophical questions regarding strict whitespace option: A) Comment: JSLint doesn't like comments within function arg...
Hi I would like to request for the indent level used/checked by jslint, when the whitespace option is turned on, to be made configurable, as an option. Reason:...
Hi, I started today to explore jslint. My first problem was, to figure out, which jslint I actually need/want. There's jslint from Douglas Crockford which I've...
In jQuery there is the following code when throwing error in an Ajax call: function (XMLHttpRequest, textStatus, errorThrown) { // typically only one of...
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...
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...
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...
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 added arguments to the set of excluded members. The set now contains apply arguments call callee caller constructor eval prototype unwatch valueOf watch...
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...
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 ...
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 [ ]...
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...
Howdy, When "Assume a Browser" is checked, why does the following code cause a problem? var o = new Option(); Is there some browser that does not support the...
In the world of Perl, we have this great book called Perl Best Practices, and there Conway argues that "else" should be written like this: if (ping == pong) { ...
I have been convinced that . in Regular Expression literals is dangerous because it usually does not precisely match what was intended. That can lead to...
Here at the US Courts we use YUI for our electronic case management system, and recently use JLint to clean up our JavaScript code. Although I personally...