Top "Jshint" questions

A community-driven tool to detect errors and potential problems in JavaScript code and to enforce coding conventions.

How do you configure JSHint options globally in Sublime Text 2?

I'd like to turn off particular warnings globally when using Sublime Text 2's JSHint plugin. For instance, "laxcomma". I tried …

sublimetext2 jshint
Turn off cyclmatic complexity in JSHint

I am using JSHint and I want to turn off cyclomatic complexity. How can I do this?

javascript node.js jshint cyclomatic-complexity
Grunt Warning: Path must be a string. Received a null

I'm getting this error when I try to compile with Grunt. I haven't used it much before but I seem …

gruntjs jshint grunt-contrib-jshint
What is the matter with script-targeted URLs?

I'm using JSHint, and it got the following error: Script URL. Which I noticed that happened because on this particular …

javascript validation jshint
Complete list of default values for JSHint options?

Where can I get the complete list of JSHint default options. I tried searching online but couldn't find anything. EDIT: …

javascript coding-style jshint
How to show all of the errors with JSHint

Say I run JSHint on a file. It reports back 83% of the errors. I want 100% of the errors, but by …

jshint
ES6 Module export default syntax

I'm using the es6-module-transpiler, esprima and JSHint with esnext: true options. JSHint complains when I put: export default = { some: …

javascript jshint ecmascript-harmony esprima
difference between globals and predef in .jshintrc?

What the difference and purpose of having both of them in the .jshintrc? When I want to add a variable …

node.js jshint grunt-contrib-jshint
Why does jshint not recognize an assignment as an expression?

How do I need to modify these lines to make jshint happy? An assignment is an expression. Why doesn't jshint …

javascript jshint
Expressions in JavaScript Ternary Operator and JSLint

I recently received a comment on one of my blog posts about JSLint asking why JSLint threw an error with …

javascript ternary-operator jslint jshint