"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
关闭vscode,重启项目,打开有eslint的问题,比如换行,缺少分号等,ctrl+s可以自动修复啦