vscode用ESlint 代码中没有错误提示的原因之一

要安装ESlint 和 Vuter

 

原因一:  把项目拉到vscode时, node_modules外只能有一层 , 有多层时要改path

 

原因二: 

{

// 基础设置

"editor.tabSize": 2,

"window.zoomLevel": 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",

"autoFix": true

}

],

"standard.options":{

"plugins":["html"]

},

// format设置

"javascript.format.insertSpaceBeforeFunctionParenthesis": true,

"typescript.format.insertSpaceBeforeFunctionParenthesis": true,

"vsicons.dontShowNewVersionMessage": true

}

 

你可能感兴趣的:(vscode)