1.软件市场收索安装Eslint插件
2.File->Preferences->Setting->右上角【Open Settings(JSON)】
{
"stylelint.enable": true,
"eslint.validate": [
"html",
"vue",
"javascript",
"jsx"
],
"emmet.syntaxProfiles": {
"vue-html": "html",
"vue": "html"
},
"editor.wordWrapColumn": 220,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
网友评论