美文网首页
18.VSCode 保存时自动修正Eslint错误

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

作者: 笑着字太黑 | 来源:发表于2021-07-03 15:20 被阅读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
  }
}

相关文章

网友评论

      本文标题:18.VSCode 保存时自动修正Eslint错误

      本文链接:https://www.haomeiwen.com/subject/xynuultx.html