prettier 自定义 parser
为ejs自定义 parser 的一个示例
{
"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"
}
}
]
}