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.

How do you use vim's quickfix feature?

I'm a pretty new Vim user and I've found that its learning curve is quite steep (at least for me). …

vim jslint
Don't make functions within a loop

What would be the correct way to solve the jslint error in this case? I'm adding a getter function to …

javascript jslint
JSLint: was used before it was defined

Hi I have the 3 javascript files. jquery.js utility.js file1.js In file1.js I have jQuery.noConflict() jQuery(…

javascript undefined jslint
What is array literal notation in javascript and when should you use it?

JSLint is giving me this error: Problem at line 11 character 33: Use the array literal notation []. var myArray = new Array(); What …

javascript arrays jslint literals
JSLint Expected '===' and instead saw '=='

Recently I was running some of my code through JSLint when I came up with this error. The thing I …

javascript jslint
Expected an assignment or function call and instead saw an expression

I'm totally cool with this JSLint error. How can I tolerate it? Is there a flag or checkbox for it? …

javascript jslint jshint
JavaScript function order: why does it matter?

Original Question: JSHint complains when my JavaScript calls a function that is defined further down the page than the call …

javascript function jslint jshint
How to split a long regular expression into multiple lines in JavaScript?

I have a very long regular expression, which I wish to split into multiple lines in my JavaScript code to …

javascript regex jslint expression readability
The "unexpected ++" error in jslint

What is the best practice for that then? Jslint explains that it "adds confusion". I don't see it really... EDIT: …

javascript jslint
Why is JSHINT complaining that this is a strict violation?

I think this may be a duplicate of Strict Violation using this keyword and revealing module pattern I have this …

javascript jslint strict jshint