VScode编辑器写vue项目检测ESlint,保存代码自动修复

我的settings.json配置如下

{
  "eslint.autoFixOnSave": true,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "html",
    {
      "language": "vue",
      "autoFix": true
    }
  ],
  "eslint.options": {
    "plugins": [
      "html"
    ]
  },
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}```

你可能感兴趣的:(VScode编辑器写vue项目检测ESlint,保存代码自动修复)