It seems JSLint cannot check an HTML document if there is an HTML comment at the beginning of the document. Can this be fixed or is there a way around it? For...
The option.type has been renamed as option.confusion. The option.type will continue to work for a short time. JSLint's type inference is now looking at...
Good morning, Your problem seems to be your insistence on declaring a function inside a function call. This is much better (from a readability perspective): ...
Hi I'm new to javascript, but I have a solid C/C++ background. One of reasons why I prefer C++ over C is because it stricter. I prefer to catch errors during...
Hi There is some indentation strangeness. JSLint does not like properly indented text: /*global g */ /*jslint indent: 2 */ (function () { "use strict"; return...
Given the following example code: function test(x) { ~~~~'use strict'; ~~~~return x === 1 ? 'one' : ~~~~~~~~x === 2 ? 'two' : ~~~~~~~~~~~~x === 3 ? 'three39; : ...
Dear Vendor, Please provide an update on ECCN for the product JSLint. Thanks, Sree OAI-sys, Application Development and Testing Tools Travelers Insurance. HPSM...
Porting this feature request over from Github issues: I don't know what your views are on modifying Object.prototype, but I'm sure you've heard all the...
Gentlemen, after setting JSLint loose on my code I find myself with some bugs corrected. However, as my project is set up in many separate script files, I have...
I have added a complexity measure to the function report. See http://en.wikipedia.org/wiki/Cyclomatic_complexity This is an experimental feature. I am not...
An unused argument in an argument list should not be reported as an 'unused variable' if there are more arguments in the argument list. It is not unused, it...
CouchDB uses an attribute named _rev to identify document revisions. var revision = doc["_rev"]; gets me: ['_rev39;] is better written in dot notation. var...
I am no longer able to upgrade to JSLint to pick up bug fixes and new features because of these two rules: - "this" can't be used in named functions. I...
I am attempting to write a automatic semicolon insertion mechanism into my custom fork of Frank Marcia's JavaScript port jsmin when I encountered some strange...
Maybe I'm missing something. When I enable "Tolerate many var statements per function" I still get errors for failing to have just one var at the top of the...
(I apologize for the multiple posts - I did not know I could send good old plain text) Are JSLint indentation rules documented anywhere? (in particular rules...
I recent debugged some code that followed this pattern: var a, b, c; a === b = c; When executed, this results in a syntax error, due to invalid left-hand side...
Consider the following code. var a = function () { "use strict"; var b = [], c = b.length, d = 0; for (; d < c; d += 1) { return ""; } }; The point of...
var fred; if (!fred) { fred = {}; } var FRED; if (!FRED) { FRED = {}; } var JSON; if (!JSON) { JSON = {}; } Error: Problem at line 13 character 5: Read only. ...
Some here may be interested in this. I've integrated JSLint into CSE HTML Validator v11 (for Windows). There's currently a free BETA available here: ...
Reduced to its simplest, this: <html> <head> <style> p { text-shadow: 0 0 2px rgba(255, 255, 255, 0.6); } </style> </head> </html> Produces: Problem at line 5...
I have the following code: var id = +/\d+/.exec(rId)[0]; and get the following error: Problem at line 240 character 24: Unexpected '\39;. The code is valid so it...
I have 2 questions. 1. Is there a JSLint option to tolerate variable assignments in if statements? If so, which one? 2. Why should we 'Move the invocation into...
I have the following code:var dateStr;dateStr = day + month + this.padStr(date.getDate()) + " " +date.getFullYear() + " " + this.padStr(date.getHours())+ ":" +...
I've been using JSLint for a bit now, and I have noticed that often there are error messages where I wonder why JSLint is complaining about it.. I'm wondering...