How to configure JSHint with maven

2019-09-18 09:43发布

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?

标签: maven jshint
1条回答
够拽才男人
2楼-- · 2019-09-18 10:06

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/

查看更多
登录 后发表回答