在windows7中配置jshint好后,遇到'use strict'
报错Use the function form of "use strict". (W097)
网上查了下,可以在js开头标个注释 /*jshint node:true */
这样不报错了。这样注释太麻烦了。于是我又网上查了下,说在home
下放个.jshintrc
文件里面写上
{
"node": true
}
我试了下,没效果。求好的配置方法。
用eslint