One、文件-首选项-设置-选择项目
Two、打开右上角JSON设置
Three、 插入以下代码
{ "eslint.options": { "configFile": "D:/myWork/gw-meteorological-platform/.eslintrc.js" //eslint配置文件路径 }, "eslint.validate": [ "javascript", { "language": "vue", "autoFix": true }, "html", "vue" ], "eslint.autoFixOnSave": true }
@如有转发请备注 @https://www.cnblogs.com/zhonglinke/