当前位置:   article > 正文

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

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

}

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小舞很执着/article/detail/1009899
推荐阅读
相关标签
  

闽ICP备14008679号