Skip to content

Commit

Permalink
refactor: refactor config JSON schema
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Aug 25, 2024
1 parent 8dd9fac commit 10c9210
Showing 1 changed file with 18 additions and 33 deletions.
51 changes: 18 additions & 33 deletions dprint_plugin/deployment/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
"title": "Config",
"description": "Configuration for dprint-plugin-malva.",
"type": "object",
"definitions": {
"preferSingleLine": {
"description": "Control whether items should be placed on single line as possible, even they're originally on multiple lines.",
"type": "boolean",
"default": false
}
},
"properties": {
"printWidth": {
"description": "The line width limitation that Malva should *(but not must)* avoid exceeding. Malva will try its best to keep line width less than this value, but it may exceed for some cases, for example, a very very long single word.",
Expand Down Expand Up @@ -212,59 +219,37 @@
"default": "always"
},
"preferSingleLine": {
"description": "Control whether items should be placed on single line as possible, even they're originally on multiple lines.",
"type": "boolean",
"default": false
"$ref": "#/definitions/preferSingleLine"
},
"selectors.preferSingleLine": {
"description": "Control whether items should be placed on single line as possible, even they're originally on multiple lines.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/preferSingleLine"
},
"functionArgs.preferSingleLine": {
"description": "Control whether items should be placed on single line as possible, even they're originally on multiple lines.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/preferSingleLine"
},
"sassContentAtRule.preferSingleLine": {
"description": "Control whether items should be placed on single line as possible, even they're originally on multiple lines.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/preferSingleLine"
},
"sassIncludeAtRule.preferSingleLine": {
"description": "Control whether items should be placed on single line as possible, even they're originally on multiple lines.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/preferSingleLine"
},
"sassMap.preferSingleLine": {
"description": "Control whether items should be placed on single line as possible, even they're originally on multiple lines.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/preferSingleLine"
},
"sassModuleConfig.preferSingleLine": {
"description": "Control whether items should be placed on single line as possible, even they're originally on multiple lines.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/preferSingleLine"
},
"sassParams.preferSingleLine": {
"description": "Control whether items should be placed on single line as possible, even they're originally on multiple lines.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/preferSingleLine"
},
"lessImportOptions.preferSingleLine": {
"description": "Control whether items should be placed on single line as possible, even they're originally on multiple lines.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/preferSingleLine"
},
"lessMixinArgs.preferSingleLine": {
"description": "Control whether items should be placed on single line as possible, even they're originally on multiple lines.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/preferSingleLine"
},
"lessMixinParams.preferSingleLine": {
"description": "Control whether items should be placed on single line as possible, even they're originally on multiple lines.",
"type": ["boolean", "null"],
"default": null
"$ref": "#/definitions/preferSingleLine"
},
"singleLineTopLevelDeclarations": {
"description": "Control whether to force to format all top-level declarations on a single line.",
Expand Down

0 comments on commit 10c9210

Please sign in to comment.