阅读 10

vscode格式化设置

1、安装eslint插件,

2、file-> preference->setting->

3、

{
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
}
]
}