18.VSCode 保存时自动修正Eslint错误

2021-07-03  本文已影响0人  笑着字太黑

1.软件市场收索安装Eslint插件
2.File->Preferences->Setting->右上角【Open Settings(JSON)】

{
  "stylelint.enable": true,
  "eslint.validate": [
    "html",
    "vue",
    "javascript",
    "jsx"
  ],
  "emmet.syntaxProfiles": {
    "vue-html": "html",
    "vue": "html"
  },
  "editor.wordWrapColumn": 220,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}
上一篇 下一篇

猜你喜欢

热点阅读