How to configure JSHint with maven

2019-09-18 09:20发布

问题:

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?

回答1:

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/



标签: maven jshint