+1 vote
in JavaScript by
Validating JS files in Grunt.JS

1 Answer

0 votes
by
Validating JS files
Validating JS files

grunt-contrib-jshint task helps to validate JavaScript files with JSHint.

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:

$ npm install grunt-contrib-jshint --save-dev
...