vscode eslint不能用怎么办

vscode eslint不能用怎么办

vscode eslint不能用怎么办?

vscode的eslint插件不起作用

最近在用vue进行开发,但是vsCode中的eslint插件装上之后不起作用

1.vsCode打开“设置”,选择”settings.json”

vscode eslint不能用怎么办

2.输入一段脚本

"eslint.validate": [     "javascript",     "javascriptreact",     {       "language": "vue",       "autoFix": true     },     "vue"   ],   "eslint.autoFixOnSave": true

 

vscode eslint不能用怎么办

3.之后重启一下vsCode,vue的检查就生效了。

© 版权声明
THE END
喜欢就支持一下吧
点赞6 分享