grunt-contrib-jshint task helps to validate JavaScript files with JSHint.
grunt-contrib-jshint
validate JavaScript files
JSHint is a tool that helps to detect errors and potential problems in your JavaScript code. Grunt brings this functionality using this plug-in.
Install the jshint plug-in through below syntax:
jshint
$ npm install grunt-contrib-jshint --save-dev