I understand and agree with the warning about dot notation in general. My use case for requesting a configuration option to disable it is this: I am parsing an...
Hi, can somebody recommend me some small pieces of javascript code, that I can study to improve my coding style? I already study YUI, but it is to large to...
First, thanks for making updates to JSLint based on this groups comments. It's easiest just to quote another source for this request: "The escape and unescape...
The following code: <pre> function testEnvironment() { for (var i = 0; i < 10; i++) { (function (i) { console.log('Closure with i counting'); } (i)); } } ...
I probably will get flamed for using eval to set global variables, but I needed it at the time. Using eval in IE didn't work as I needed, so I had to use the...
I was looking through the fulljslint.js source and ran across the snippet below. Should the message say "... is evil"? Is this some sort of Freudian slip?...
Hi, thanks for the great tool and book on Javascript! I was just wondering if the rhino version of the script is currently the same as the web version. It...
Hello, JSLint reports errors in switch statements caused by omitting a "break" statement. I recently encountered such an error that JSLint did not catch. It ...
Hi. Has anyone run into this before? try { this.var1 = "test"; }catch (e) {} try { this.var2 = "test"; }catch (e) {} On the second catch, JSLint thinks that e...
I love JSLint! A few ideas... Would be nice if the "Implied global" error message was in a format that I could cut it and paste it right into the top of my .js...
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...