我有一个由yeoman
webapp生成器创建的Web应用程序,它具有以下结构:
myApp app node_modules grunt grunt-contrib-jshint test
我试图改变quotmark: "single"
的选项jshint
,以quotmark: true
关闭错误双引号.我尝试将其设置为:
对myApp/.jshintrc
对myApp/node_modules /咕噜-的contrib-jshint/.jshintrc
但是,当我运行grunt时似乎没有注册我的更改:
grunt jshint
我是否必须在其他地方做出改变?
你的Gruntfile怎么样?你应该有类似的东西
jshint: { options: { jshintrc: '.jshintrc' // relative to Gruntfile } }