代码拉取完成,页面将自动刷新
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Schema for .prettierrc",
"definitions": {
"optionsDefinition": {
"properties": {
"bracketSpacing": {
"default": true,
"description": "Print spaces between brackets in object literals.",
"type": "boolean"
},
"parser": {
"enum": [
"babylon",
"flow",
"typescript",
"postcss",
"json",
"graphql"
],
"description": "Specify which parser to use.",
"default": "babylon",
"type": "string"
},
"printWidth": {
"default": 80,
"description": "Specify the line length that the printer will wrap on.",
"type": "integer"
},
"semi": {
"default": true,
"description": "Print semicolons at the ends of statements.",
"type": "boolean"
},
"singleQuote": {
"default": true,
"description": "Use single quotes instead of double quotes.",
"type": "boolean"
},
"tabWidth": {
"default": 2,
"description": "Specify the number of spaces per indentation-level.",
"type": "integer"
},
"trailingComma": {
"default": "none",
"description": "Print trailing commas wherever possible.",
"enum": ["none", "all", "es5"],
"type": "string"
},
"useTabs": {
"default": false,
"description": "Indent lines with tabs instead of spaces.",
"type": "boolean"
}
}
},
"overridesDefinition": {
"properties": {
"overrides": {
"description": "Provide a list of patterns to override prettier configuration.",
"items": {
"required": ["files"],
"properties": {
"files": {
"description": "Include these files in this override.",
"oneOf": [
{ "type": "string" },
{
"items": {
"type": "string"
},
"type": "array"
}
]
},
"excludeFiles": {
"description": "Exclude these files from this override.",
"oneOf": [
{ "type": "string" },
{
"items": {
"type": "string"
},
"type": "array"
}
]
},
"options": {
"type": "object",
"description": "The options to apply for this override.",
"$ref": "#/definitions/optionsDefinition"
}
},
"additionalProperties": false,
"type": "object"
},
"type": "array"
}
}
}
},
"type": "object",
"allOf": [
{ "$ref": "#/definitions/optionsDefinition" },
{ "$ref": "#/definitions/overridesDefinition" }
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。