vscode无法检查到vue文件里的语法错误
1.配置vscode的setting。"eslint.autoFixOnSave":true,"eslint.validate": ["javascript",{"language": "vue","autoFix": true},"html","vue"],效果:在vue文件里会红线提示错误,并可以自动修复。2.修
·
1.配置vscode的setting。
"eslint.autoFixOnSave":
true,
"eslint.validate": [
"javascript",
{
"language":
"vue",
"autoFix":
true
},
"html",
"vue"
],
2.修改.eslintrc.js文件的配置
// required to lint *.vue files
plugins: [
'vue',
'html'
],
更多推荐
已为社区贡献1条内容
所有评论(0)