esLint格式化 检查

1、安装插件

 

 2、配置

{
  "workbench.startupEditor": "welcomePage",
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  "editor.quickSuggestions": {
    "strings": true
  },
  "editor.tabSize": 2,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "html",
    "vue",
    {
      "language": "html",
      "autoFix": true
    }
  ],
  "eslint.runtime": "",
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": [
    "source.formatDocument",
    "source.fixAll.eslint"
  ]
}

 #、关闭esLint语法检查

 

posted @ 2022-08-10 12:29  小庄的blog  阅读(40)  评论(0编辑  收藏  举报