- 22
- 0
已全局安装eslint和eslint-plugin-html;
也设置了
"plugins": [
"react",
"html"],
和
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
}
],
问题就是
1.html里写的JS里的function 会被认为是no-unused-vars报错,而我在HTML里绑了onclick事件.这是正常的吗?
2.上文中那个 "language": "html","autoFix": true 的autoFix好像没什么用啊.我不明白很多人说要这么写.
3.airbnb,我下载了airbnb,看到说是需要eslint a peer of 4.9.0 ,eslint现在都是4.19了,我小试了下能用,这不会出什么问题吧?
还请各位不吝指教.
update:
Consider running eslint --debug C:Userszhaohe.eslintrc.js from a terminal to obtain a trace about the configuration files used.
[Error - 22:23:47]
Failed to load plugin html: Cannot find module 'eslint-plugin-html'
Happened while validating C:Userszhaohe.eslintrc.js
This can happen for a couple of reasons:
- The plugin name is spelled incorrectly in an ESLint configuration file (e.g. .eslintrc).
- If ESLint is installed globally, then make sure 'eslint-plugin-html' is installed globally as well.
- If ESLint is installed locally, then 'eslint-plugin-html' isn't installed correctly.
啊,我在输出中看到这么一大串.
我安装都是在CMD中运行
npm install -g eslint
npm install -g eslint-plugin-html
我在VScode的设置里改了"eslint.nodePath",好像不出这个一大串了,但报变量的问题还是有的.
0
打赏
收藏
点击回答
网站公告
- 扫一扫访问手机版
回答动态

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器更新之后。服务器里面有部分玩家要重新创建角色是怎么回事啊?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题函数计算不同地域的是不能用内网吧?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题ARMS可以创建多个应用嘛?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题在ARMS如何申请加入公测呀?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题前端小程序接入这个arms具体是如何接入监控的,这个init方法在哪里进行添加?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器刚到期,是不是就不能再导出存档了呢?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器的游戏版本不兼容 尝试更新怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器服务器升级以后 就链接不上了,怎么办?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器转移以后服务器进不去了,怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器修改参数后游戏进入不了,是什么情况?预计能赚取 0积分收益
- 回到顶部
- 回到顶部

