VSCODE prettier || vetur config

貓董發表於2019-03-26

vscode/setting.json 配置

{
  "editor.tabSize": 2,
  "prettier.singleQuote": true,
  "prettier.trailingComma": "all",
  "files.insertFinalNewline": true,
  "files.trimTrailingWhitespace": true,
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "end_with_newline": true,
      "indent_size": 2,
      "wrap_line_length": 80,
      "wrap_attributes": "force-aligned"
    },
    "prettier": {
      "arrowParens": false,
      "singleQuote": true,
      "trailingComma": "all",
    }
  }
}
複製程式碼

相關文章