2019-11-25 eslint vscode 的vue页面提
2019-11-25 本文已影响0人
始于梦也于梦
vscode 首选项-设置-
搜索eslint validate
设置代码如下
{
"window.zoomLevel": 1,
"files.autoSave": "off",
"[html]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"eslint.validate": [ "javascript", "javascriptreact", "vue" ]
}
这样eslint校验的错误就会在vscode上报红色