I am using JSHint for my maven project (Executing mvn jshint:lint will display warnings). There are two configuration methods provided on http://www.jshint.com/docs/
Currently i am using the Inline configuration
, but i am interested in using package.json
file which they have mentioned in Configuration
, but i don't know where to put this file.
How to configure the maven project to use package.json
or .jshintrc
config file with jshint?
You could create a grunt task which can be called by Maven client to run your jshint stuff. See:
http://addyosmani.com/blog/making-maven-grunt/