vscode-eslint格式化问题 发表于 2018-01-23 eslint的vertu插件更新后的坑。 vscode配置eslinteslint的作用是什么我就不再多说了 太长不看版在setting.json 文件中加一下代码,前提是你安装使用的vertu 12345678910111213"eslint.autoFixOnSave": true,"files.autoSave":"off","eslint.validate": [ "javascript", "javascriptreact", "html", { "language": "vue", "autoFix": true } ], "eslint.options": { "plugins": ["html"]},//为了符合eslint的两个空格间隔原则"editor.tabSize": 2 情况复杂不想打字版参考: vscode配置eslint 使用VSCode写Vue项目,ESLint如何自动格式化不符合规范的代码 vue eslint 代码自动格式化