我在使用webstorm启用eslint后,可以实时检测单独的js文件了,但是html中的js代码还是不能检测,在引入eslint-plugin-html这款插件后依然没有起作用,我的配置代码如下:
package.json
{
"devDependencies": {
"eslint": "^3.0.1",
"eslint-plugin-html": "^1.5.1"
}
}
.eslintrc.json
{
"plugins": [ "html" ],
"parserOptions": {
"ecmaVersion": 6
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"rules": {
/*const、let,未启用*/
"prefer-const": 0,
...
}
}
求路过的大神指导?