Common Grunt plugins and their purposes
At this point, you should be asking yourself, what plugins can benefit me the most and why? Once you ask this question, you may find that a natural response is to ask further, what plugins are available? That is exactly the intended purpose of this section: to introduce useful grunt plugins and describe their intended purpose.
Linting JavaScript – contrib-jshint
To know more about contrib-jshint, you can refer https://www.npmjs.com/package/grunt-contrib-jshint:
grunt jshint
: This lints JavaScript files manually
The contrib-jshint plugin is to run automated JavaScript error detection and will help with identifying potential problems with your code that may surface during runtime. When the plugin is run, it will scan your JavaScript code and issue warnings on preconfigured options. There are a large number of error messages that jshint might provide, and it can be difficult at times to understand exactly what a particular message might be referring...