1.下载插件
2.找到setting.json,粘贴下面数据
"eslint.enable": true, "eslint.autoFixOnSave": true, "eslint.run": "onType", "eslint.options": { "extensions": [".js",".vue"] }, "eslint.validate": [ "javascript",{ "language": "vue", "autoFix": true },"html", "vue" ],