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...
Use this wsh wrapper to pass in arguments from the command line. The argument needs to be a single json object with no spaces. See the example below the code: ...
... This is how I integrate JSLint into VIM using spidermonkey on Debian: function! RunJslint() let l:input=join(getbufline(bufnr('%'),1,'$'),"\n") cd...
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...
... Hi Will, I've another issue with already defined, which even appears in yui: if (typeof YAHOO == "undefined" || !YAHOO) { /** * The YAHOO global namespace...
... defined, the ... I had the same problem. I ended up replacing those namespace declarations in each individual file with /*global YAHOO*/ I agree that if...
... There are scope definition problems with respect to catch in some browsers. I recommend that you give each catch its own name (e1, e2) to be safe....
... That really makes sense. Up to now I have been putting the private fns at the end like this var test = function(){ this.pub_function = function(){ ...
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, 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...
... the same as the web ... noticed (missing the ... The Rhino version at http://jslint.com/rhino/jslint.js uses the same core js file. You may want to fiddle...
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?...
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...
The following code: <pre> function testEnvironment() { for (var i = 0; i < 10; i++) { (function (i) { console.log('Closure with i counting'); } (i)); } } ...
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...