遇到过多次eslint不启用,老郁闷了,现在吧vscode 配置全粘过来,留作备份
{ "editor.fontSize": 17, "terminal.integrated.rendererType": "dom", "editor.wordWrap": "on", "git.autorefresh": false, "window.zoomLevel": 0, "view-in-browser.customBrowser": "chrome", "files.associations": { "*.html": "html", "*.wpy":"vue" }, "workbench.sideBar.location": "left", "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, "eslint.packageManager": "yarn", "eslint.codeAction.showDocumentation": { "enable": true }, "eslint.codeAction.disableRuleComment": { "enable": true, "location": "separateLine" }, "files.autoSave": "off", "eslint.validate": [ "javascript", "javascriptreact", "vue-html", { "language": "vue", "autoFix": true } ], "eslint.run": "onSave", }