安装eslint和prettier
eslint配置
不需要settings里面的formatter on save 选择
{
"eslint.options": {
"extensions": [
".js",
".jsx",
".ts",
".tsx",
".html",
".vue"
]
},
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"html",
"vue"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
},
"eslint.alwaysShowStatus": true,
"eslint.codeAction.showDocumentation": {
"enable": true
},
"editor.quickSuggestions": {
"strings": true
}
}