prettier 自定义 parser

为ejs自定义 parser 的一个示例
更新于: 2023-05-28 13:10:21
{
  "trailingComma": "none",
  "arrowParens": "always",
  "printWidth": 80,
  "bracketSpacing": true,
  "jsxBracketSameLine": true,
  "tabWidth": 2,
  "semi": true,
  "singleQuote": true,
  "quoteProps": "consistent",
  "overrides": [
    {
      "files": "*.ejs",
      "options": {
        "trailingComma": "none",
        "tabWidth": 2,
        "parser": "html"
      }
    }
  ]
}