What about "let" keyword? https://developer.mozilla.org/en/New_in_JavaScript_1.7 For instance, for (let i = 0; i < 10; i = i + 1) { // loop stuff with local...
I made two changes to the way JSLint deals with HTML: 1. <!-- --> comments have been relaxed to allow the commenting out of HTML content. JSLint will complain...
Hi, With 'assume browser' turned on, JSLint rejects the following: if (n instanceof Document) { // 'Document39; is undefined // ... } Shouldn't the DOM classes...
Hi, JSLint forbids the following form: var a = var b = foo(); // Expected an identifier and instead saw 'var'. Is this intentional? It can occasionally be...
When JSLint encounters a serious error, it stops. Is it possible to program in a error handling statement that breaks out of that block, outputs that lines x-y...
Maybe I am a bit out of topic, but the subject is the foundation of JSlint. :) Reading "Top Down Operator Precedence" paper [1] and trying to use his ...
Hi, while checking a script and reducing a lot of flaws in it with the webjslint, the following message came up: Problem at line 130 character 34: 'escape39; is...
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...