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

谁都会走 提交于 2020-01-25 02:59:33

我的settings.json配置如下

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!