Top "Jshint" questions

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

Explanation of JSHint's Bad line breaking before '+' error

Can someone explain to me why JSHint complains about the following, window.location.href = String1 + '#' + Sting2 + '=' + …

javascript jshint
jshint "use strict" issue

Here's my file: app/scripts/controllers/main.js "use strict"; angular.module('appApp') .controller('MainCtrl', ['$scope', function ($scope) { $scope.…

jshint
Ignore camelcase variable in JSHint

Having a bit of an issue with JShint and the following line of code. $location.path('map-' + map.id + '/…

javascript coding-style jshint code-cleanup
How to set .eslintrc to recognize 'require'?

I am new to ESLint, and I have successfully integrated ESLint with IntelliJ. Out of the box, my integration of …

javascript intellij-idea eslint jshint lint
how could I reduce the cyclomatic complexity?

Whenever I lint a piece of code I'm working on I get the This function's cyclomatic complexity is too high. (7). …

javascript jshint cyclomatic-complexity
JSHint "Possible strict violation." when using `bind`

Consider this simple code: "use strict"; var obj = { f: function() { this.prop = 'value'; g.bind( this )(); } }; function g() { console.log( …

javascript jshint
How can I check JavaScript code for syntax errors ONLY from the command line?

JavaScript programs can be checked for errors in IDEs or using online web apps but I'm looking for a way …

javascript syntax-error jslint jshint
Have jshint ignore certain files when building Twitter Bootstrap

I often have this problem when using Twitter Bootstrap with other 3rd-party JS libraries, such as html5.js from WordPress' "…

twitter-bootstrap build makefile jslint jshint
How to configure Syntastic with JSHint?

How to use the Syntastic Vim plugin with JSHint to validate JavaScript code? Environment: Ubuntu 11.04 VIM - Vi IMproved 7.3 What …

vim jshint syntastic
Does JSHint support async/await?

I'm using JSHint for the JavaScript project (with the Visual Studio Code). And in this project I use async / await, …

javascript node.js visual-studio-code jshint