Skip to content

Commit

Permalink
refactor: update config JSON schema
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Aug 23, 2024
1 parent fc19380 commit ccd8c04
Showing 1 changed file with 25 additions and 37 deletions.
62 changes: 25 additions & 37 deletions dprint_plugin/deployment/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@
"description": "Force items to be on multiple lines."
}
]
},
"parenSpacing": {
"description": "Control whether whitespace should be inserted between parentheses or not.",
"type": ["boolean", "null"],
"default": null
},
"braceSpacing": {
"description": "Control whether whitespace should be inserted between braces or not.",
"type": ["boolean", "null"],
"default": null
}
},
"properties": {
Expand Down Expand Up @@ -189,69 +199,47 @@
"default": null
},
"parenSpacing": {
"description": "Control whether whitespace should be inserted between parentheses or not.",
"type": "boolean",
"default": false
"$ref": "#/definitions/parenSpacing",
"type": "boolean"
},
"arguments.parenSpacing": {
"description": "Control whether whitespace should be inserted between parentheses or not.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/parenSpacing"
},
"argumentsDefinition.parenSpacing": {
"description": "Control whether whitespace should be inserted between parentheses or not.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/parenSpacing"
},
"variableDefinitions.parenSpacing": {
"description": "Control whether whitespace should be inserted between parentheses or not.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/parenSpacing"
},
"bracketSpacing": {
"description": "Control whether whitespace should be inserted between brackets or not.",
"type": "boolean",
"default": false
},
"braceSpacing": {
"description": "Control whether whitespace should be inserted between braces or not.",
"type": "boolean",
"default": true
"$ref": "#/definitions/braceSpacing",
"type": "boolean"
},
"enumValuesDefinition.braceSpacing": {
"description": "Control whether whitespace should be inserted between braces or not.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/braceSpacing"
},
"fieldsDefinition.braceSpacing": {
"description": "Control whether whitespace should be inserted between braces or not.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/braceSpacing"
},
"inputFieldsDefinition.braceSpacing": {
"description": "Control whether whitespace should be inserted between braces or not.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/braceSpacing"
},
"objectValue.braceSpacing": {
"description": "Control whether whitespace should be inserted between braces or not.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/braceSpacing"
},
"schemaDefinition.braceSpacing": {
"description": "Control whether whitespace should be inserted between braces or not.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/braceSpacing"
},
"schemaExtension.braceSpacing": {
"description": "Control whether whitespace should be inserted between braces or not.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/braceSpacing"
},
"selectionSet.braceSpacing": {
"description": "Control whether whitespace should be inserted between braces or not.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/braceSpacing"
},
"formatComments": {
"description": "Control whether whitespace should be inserted at the beginning of comments or not.",
Expand All @@ -261,7 +249,7 @@
"ignoreCommentDirective": {
"description": "Text directive for ignoring formatting specific content.",
"type": "string",
"default": "pretty-graphql-ignore"
"default": "dprint-ignore"
}
}
}

0 comments on commit ccd8c04

Please sign in to comment.