Hello, I have a function that I've written that's not behaving as expecting. I ran JSLint on it, it didn't really fix my problem, but I had a few questions...
Do please consider the security aspects. When modifying jslint to run as a Node module, you are also giving it complete access to the computer on which it...
if (a !== a) { } if (a === a) { } I've just debugged a piece of code where someone a long time ago thought they were adding a check to see if the argument they...
Here's yet another[1] JSLint wrapper for command-line enthusiasts. Since my Python wrapper[2] for JSLint always seemed overly complex, I've created a...
I have noticed recently that jslint is now giving a problem warning when creating functions in a loop. Below is an example use case, I am creating a rows in a...
And of course, if the intention was to include the first element of the linked list, the jslint safe version could be: // initialize a while (a) { // use a a =...
My new employer has a non-JSLint-compliant white-space code convention. No options will make this validate. To use JSLint nontheless I wrote a bookmarklet that...
This line of code: var href = window.location.href; causes this error Problem at line 1 character 12: 'window39; is not defined. With 'window39; in the predefined...
Can anyone tell me why the code in this paste: http://pastie.textmate.org/private/gd8xrctmenh3qu2jrxintq generates these errors: Problem at line 7 character 1:...
Maybe I’m just being dumb, but what’s the value of linting a beautified version of some script? Assuming (as you state) that turning off strict whitespace...
Can anyone please tell me why the code in this pastie: http://pastie.textmate.org/private/h0awaucqk6b25kjqfxuw9g generates this error: Problem at line 4...
I really would have "use strict"; at the top of my files instead of in every function. Off course, concatinating files on the fly, and merging third party...
Classification: UNCLASSIFIED ... In Mr. Crockford's defense his advise has always served me well in the past. I presume this alteration prevents some bug...
Before the recent changes, JSLint accepted `typeof(variable)` and `delete(object.property)` in lieu of `typeof variable` and `delete object.property`. To me,...
I sometimes do assignments in a var statement. I'm not certain whether this is frowned upon. Given that I do, my var statement might contain a mix of mere...
With the new indentation rules, it appears that I can once again have one-liners like: function min(a, b) { if (b < a) { return b; } return a; } . Is this now...
Feelings have been hurt! I'm a fan of the leading comma style of coding. Until recently jslint partially supported it via the laxbreak option to prevent errors...
JSLint is once again looking at indentation when option.indent contains a number that is greater than zero. It uses an enhanced K&R style, in which {} pairs,...
Using Firefox 3.6.13, I get: Error: Problem at line 162 character 5: Redefinition of 'JSON'. var JSON; Problem at line 164 character 5: Read only. JSON = {};...
Is there some guidance or best practice for writing JavaScript applications with regard to efficient use of memory. For instance, are constructors better than...
All of my code, which used to run 100% clean with JSLint, now reports errors with every var statement, and I can't figure out how to fix. Consider this...
I started working on JSLint 10 years ago. It started as a demonstration of a parsing technique [http://javascript.crockford.com/tdop/tdop.html]. I intended to...
Hello, I'm getting *Error:* Problem at line 4 character 3: Empty case default: with switch cases with the following code... (this is a hugely simplified ...
Classification: UNCLASSIFIED Luke, JSLint does not like fall through on case statements. The examples where JSLint is not throwing an error is because you...
Is it purposeful or a bug that when the onevar option is off it is complaining about vars needing to be moved to the top of the function if they appear in a...
We want to not add "use strict" to every our js-file for now, but still take advantage of the strictest JSLint code quality setting. I see 'strict_mode'...
What tools / do you use to quickly fix JS code up to satisfy JSLint's warnings and errors? First I test the code's parsability, if I can get to the end of the...