Skip to content

Commit 593328b

Browse files
committed
chore: add jsxElement.spaceBeforeSelfClosingTagSlash to config schema
1 parent 6834c38 commit 593328b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

deployment/schema.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,18 @@
555555
"description": "Ex. `import {SomeExport, OtherExport} from \"my-module\";`"
556556
}]
557557
},
558+
"jsxElement.spaceBeforeSelfClosingTagSlash": {
559+
"description": "Whether to add a space before a JSX element's slash when self closing.",
560+
"type": "boolean",
561+
"default": true,
562+
"oneOf": [{
563+
"const": true,
564+
"description": "Ex. `<Test />`"
565+
}, {
566+
"const": false,
567+
"description": "Ex. `<Test/>`"
568+
}]
569+
},
558570
"jsxExpressionContainer.spaceSurroundingExpression": {
559571
"description": "Whether to add a space surrounding the expression of a JSX container.",
560572
"type": "boolean",
@@ -788,6 +800,9 @@
788800
"importDeclaration.spaceSurroundingNamedImports": {
789801
"$ref": "#/definitions/importDeclaration.spaceSurroundingNamedImports"
790802
},
803+
"jsxElement.spaceBeforeSelfClosingTagSlash": {
804+
"$ref": "#/definitions/jsxElement.spaceBeforeSelfClosingTagSlash"
805+
},
791806
"jsxExpressionContainer.spaceSurroundingExpression": {
792807
"$ref": "#/definitions/jsxExpressionContainer.spaceSurroundingExpression"
793808
},

0 commit comments

Comments
 (0)