记录一下eslint和prettier

安装eslint和prettier
eslint配置
不需要settings里面的formatter on save 选择

{
    "eslint.options": {
  "extensions": [
    ".js",
    ".jsx",
    ".ts",
    ".tsx",
    ".html",
    ".vue"
  ]
},
"eslint.validate": [
  "javascript",
  "javascriptreact",
  "typescript",
  "typescriptreact",
  "html",
  "vue"
],
"editor.codeActionsOnSave": {
  "source.fixAll.eslint": true,
},
    "eslint.alwaysShowStatus": true,
    "eslint.codeAction.showDocumentation": {
        "enable": true
    },
    "editor.quickSuggestions": {
      "strings": true
    }
}
上一篇:Android Studio去掉编辑框中间的一条线


下一篇:c1任务01-进制与信息编码