1 Star 0 Fork 0

小小马蒂尼/ifun-self-media

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.prettierrc 3.11 KB
一键复制 编辑 原始数据 按行查看 历史
小小马蒂尼 提交于 2019-04-18 11:10 . "prettier.semi": true,
{
"$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" }
]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/dean2509086054/ifun-self-media.git
git@gitee.com:dean2509086054/ifun-self-media.git
dean2509086054
ifun-self-media
ifun-self-media
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385