vscode⽤ESlint代码中没有错误提⽰的原因之⼀要安装ESlint 和 Vuter
原因⼀:  把项⽬拉到vscode时, node_modules外只能有⼀层 , 有多层时要改path
原因⼆:
{
// 基础设置
"editor.tabSize": 2,
"Level": 0,
"workbench.iconTheme": "vscode-icons",
"workbench.startupEditor": "welcomePage",
// vue设置
"emmet.syntaxProfiles": {
"vue-html": "html",
"vue": "html"
},
"files.associations": {
"*.vue": "vue"
},
// vetur设置
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatter.js": "vscode-typescript",
//eslint standard设置
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
html代码转链接
"autoFix": true
}
]
,
"standard.options":{
"plugins":["html"]
},
// format设置
"javascript.format.insertSpaceBeforeFunctionParenthesis": true, "typescript.format.insertSpaceBeforeFunctionParenthesis": true, "vsicons.dontShowNewVersionMessage": true
}

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。