prettier-config-common
Version:
适合中国人使用习惯的 prettier 配置
54 lines (53 loc) • 966 B
JSON
{
"$schema": "http://json.schemastore.org/prettierrc",
"printWidth": 100,
"tabWidth": 4,
"useTabs": true,
"semi": false,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "avoid",
"rangeStart": 0,
"filepath": "",
"requirePragma": false,
"insertPragma": false,
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"endOfLine": "auto",
"cursorOffset": -1,
"overrides": [
{
"files": ["*.json5"],
"options": {
"singleQuote": false,
"quoteProps": "preserve"
}
},
{
"files": ["*.yml", "*.yaml", "*.toml", "*.md"],
"options": {
"useTabs": false,
"singleQuote": false,
"tabWidth": 2
}
},
{
"files": ["*.md"],
"options": {
"useTabs": false,
"singleQuote": true,
"tabWidth": 2
}
},
{
"files": ".prettierrc",
"options": {
"parser": "json"
}
}
]
}