I have the following (useless) snippet: foo = 1; function bar() {} Ok... foo is implied global: I can resolve it with /*global foo */. Why is bar not an...
This line works: var y = (arr[2] || "").toLowerCase(); This one doesn't (see output below): (arr[2] || "").toLowerCase(); By itself, that expression isn't very...
Hello, Here again your most devoted fan come with an improvement request :D There some HTML issues on the page http://www.jslint.com/ Very easy to fix, so...
The following example causes the JSLint parser to fail: var cache; function foo () { // ... return cache = calculate(); } Using extra parentheses works: return...
Hi everyone, I would like to suggest that the JSLINT group moves to somewhere that's more accessible. Recently colleagues of mine have been unable to sign in...
Any chance of an option for Apple Dashboard widget code? AFAIK the only extra addition to the global namespace is the 'widget39; object, but these objects and...
I'm trying to edit an existing codebase to make it pass JSLint verification so that it can be packed or minified safely. Mostly, my code requires small,...
Hi List, I was surprised to run JSLint on some of my code today only to see the following message: 'hasOwnProperty' is a really bad name. Stopping, unable to...
I added a onevar option. It allows only one var statement per function. Unused variables are easier to see in the function report. I removed support for .kon...
Why does JSLint complain that "type is unnecessary" when it sees a script element with a type attribute in an html file? Is there any way to turn this...
My usual report on JSLint itself: 1467: Unexpected space after '('. 1494: Unexpected space after '('. 2443: Expected 'warning39; to have an indentation of 16...
JSLint can now check CSS files. CSS files are required to have this as the first line: @charset "UTF-8"; JSLint's CSS checking is not yet complete, but it will...
Do you use http://developer.yahoo.com/yui/yuitest/ on JSLint, some other test methodology, or none? I have very little automated testing with JavaScript, and...
After tracking down a bug in 0.8.5.3 of the HTML Validator Firefox extension, I decided to try out JSLint on some of the code in it. It doesn't work because of...
The following CSS errors are reported, and I'm not sure why they are errors or what to do differently for them: Problem at line 420 character 5: Unexpected...
To avoid overload of my scripts and objects, I always put this kind of code in my libraries: if(!window.isLoaded_Overload) { var isLoaded_Overload = true; ...
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...
In my external JS file, I use the following code: document.getElementById('element39;).innerHTML = object.property; I receive both of the follower errors from JS...
Hi, I just discovered jslint and it is *great*. Thank you, thank you, thank you! Yes, it did hurt my feelings... but in a good way, except for one case. I...
Using Jaxer (http://www.aptana.com), a Ajax server, it is possible insert in the html page tags as <jaxer:include ... Linting the page, JSLint displays ...
I have a code snippet containing: ... if (!(contents instanceof HTMLElement)) { ... Of course JSLint says 'HTMLElement39; is undefined. Same message with browser...
I've been exprimenting with mixing jslint and the dojo editor to make syntax checking script editor. I've noticed that something in jslint seems to conflict...
Hello, I'm for sure too strict, too maniac but ... JSLint is used to validate JavaScript so what about providing perfect JavaScripts in JSLint? If you turn on...
Hey guys, At RWE, I got the idea after hearing Douglas' talk on the Good Parts to use AdSafe and JSLint for a new (poorly considered in my opinion but I don't...
I am trying to use the command-line version of JSLint on an HTML file and it is failing with this error. Lint at line 28 character 1: Unexpected '@'. @import...