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.

Suppress "mixed spaces and tabs" warning in JSHint / JSLint or alternative service?

JSHint and JSLint are awesome tools. However, the "mixed spaces and tabs" warning dominates the report. Is there a way …

javascript jslint jshint
Getting Facebook's react.js library JSX syntax to play nicely with jslint?

I am playing around with the Facebook's react.js library. I am trying to use their JSX syntax which describes …

javascript facebook jslint jshint reactjs
How to rectify "Document was used before it was defined" using Jslint

I get the following error in jsLint: 'document' was used before it was defined. Line that causes the error: document.…

jslint
How to fix "foo is not defined" error reported by JSlint?

Possible Duplicate: JSLint: was used before it was defined I run JSlint and saw errors like that: 'foo' is not …

javascript jslint
JSLint reports unexpected use of '&' and '|' -- I'd like to clean this

I'm trying to get my Javascript code 100% JSLint clean. I've got some JS code that I've lifted from elsewhere to …

javascript jslint
How to turn off JSLint indentation warnings?

I find that JSLint produces lots of warnings of the form: Expected 'foo' to have an indentation at X instead …

formatting static-analysis jslint
Why does JSHint argue against bitwise operators? How should I express this code?

I am using this bit of JavaScript to generate a UID: (original:) //If ID has not been defined then generate …

javascript jslint jshint
JsLint 'out of scope' error

function test(){ if(true){ var a = 5; } alert(a); } test(); I keep getting 'out of scope' errors in my JS code …

javascript jslint
jslint --edition=latest Unexpected ES6 feature. const

I'm trying to use node-jslint https://github.com/reid/node-jslint in order to keep my code clean I've got a …

javascript node.js constants ecmascript-6 jslint
JSLint - ignore sections of code

I have a huge script that passes JSLint (including avoidance of all bad parts). Except for one stretch, which is …

jslint