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