Top "Jslint" questions

JSLint is a "code quality" tool for JavaScript developed by Douglas Crockford, a well-known developer also responsible for JSON, JSMin, ADSafe and parts of YUI.

Is it bad practice to use the same variable name in multiple for-loops?

I was just linting some JavaScript code using JSHint. In the code I have two for-loops both used like this: …

javascript for-loop jslint jshint
Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function

I have the following code: if (typeof console === "object" && typeof console.error === "function") { function e(msg) {"use strict"; …

javascript jslint jshint
Maven plugins to analyze javascript code quality

Javascript code can be tough to maintain. I am looking for tools that will help me ensure a reasonable quality …

javascript maven-2 static-analysis jslint
Why should you not use Number as a constructor?

I entered this statement in JSLint: var number = new Number(3); And received the following message: Do not use Number as …

javascript oop constructor jslint
Unexpected 'continue'

I have: while (i < l) { if (one === two) { continue; } i++; } But JSLint says: Problem at line 1 character 20: Unexpected 'continue'. …

javascript jslint
JSLint 'Unexpected '(space)' error?

I am playing with Adobe's Edge Code which has its own JSLint checking option. I am getting this error (view …

jslint adobe-edge
Solution for JSLint errors

I have started using JSLint. I checked my code and I am getting this errors: Problem at line 92 character 7: Move …

javascript jslint
How do I change Eclipse to use spaces instead of tabs in Javascript editor?

I use the Eclipse JavaScript plugin, I have my text editor settings to "insert spaces as tabs" this works fine …

javascript eclipse eclipse-plugin jslint
How to set the jslint ES6 directive in Brackets?

I get this error: "expected an identifier and instead saw 'const'", I'm using brackets text editor. I found this answer: "…

javascript jslint adobe-brackets
Is there an offline version of JSLint for Windows?

I would like to check my JavaScript files without going to JSLint web site. Is there a desktop version of …

javascript jslint