Skip to content

Commit ac3569a

Browse files
committed
Update snaps and schema.
1 parent c19cd50 commit ac3569a

File tree

3 files changed

+47
-46
lines changed

3 files changed

+47
-46
lines changed

crates/oxc_formatter/tests/snapshots/schema_json.snap

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ expression: json
99
"type": "object",
1010
"properties": {
1111
"arrowParens": {
12-
"description": "Include parentheses around a sole arrow function parameter. (Default: \"always\")",
12+
"description": "Include parentheses around a sole arrow function parameter. (Default: `\"always\"`)",
1313
"anyOf": [
1414
{
1515
"$ref": "#/definitions/ArrowParensConfig"
@@ -20,21 +20,21 @@ expression: json
2020
]
2121
},
2222
"bracketSameLine": {
23-
"description": "Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line. (Default: false)",
23+
"description": "Put the `>` of a multi-line JSX element at the end of the last line\ninstead of being alone on the next line. (Default: `false`)",
2424
"type": [
2525
"boolean",
2626
"null"
2727
]
2828
},
2929
"bracketSpacing": {
30-
"description": "Print spaces between brackets in object literals. (Default: true)",
30+
"description": "Print spaces between brackets in object literals. (Default: `true`)",
3131
"type": [
3232
"boolean",
3333
"null"
3434
]
3535
},
3636
"embeddedLanguageFormatting": {
37-
"description": "Control whether formats quoted code embedded in the file. (Default: \"auto\")",
37+
"description": "Control whether formats quoted code embedded in the file. (Default: `\"auto\"`)",
3838
"anyOf": [
3939
{
4040
"$ref": "#/definitions/EmbeddedLanguageFormattingConfig"
@@ -45,7 +45,7 @@ expression: json
4545
]
4646
},
4747
"endOfLine": {
48-
"description": "Which end of line characters to apply. (Default: \"lf\")",
48+
"description": "Which end of line characters to apply. (Default: `\"lf\"`)",
4949
"anyOf": [
5050
{
5151
"$ref": "#/definitions/EndOfLineConfig"
@@ -82,14 +82,14 @@ expression: json
8282
}
8383
},
8484
"jsxSingleQuote": {
85-
"description": "Use single quotes instead of double quotes in JSX. (Default: false)",
85+
"description": "Use single quotes instead of double quotes in JSX. (Default: `false`)",
8686
"type": [
8787
"boolean",
8888
"null"
8989
]
9090
},
9191
"objectWrap": {
92-
"description": "How to wrap object literals when they could fit on one line or span multiple lines. (Default: \"preserve\")\nNOTE: In addition to Prettier's \"preserve\" and \"collapse\", we also support \"always\".",
92+
"description": "How to wrap object literals when they could fit on one line or span multiple lines. (Default: `\"preserve\"`)\nNOTE: In addition to Prettier's `\"preserve\"` and `\"collapse\"`, we also support `\"always\"`.",
9393
"anyOf": [
9494
{
9595
"$ref": "#/definitions/ObjectWrapConfig"
@@ -100,7 +100,7 @@ expression: json
100100
]
101101
},
102102
"printWidth": {
103-
"description": "The line length that the printer will wrap on. (Default: 100)",
103+
"description": "The line length that the printer will wrap on. (Default: `100`)",
104104
"type": [
105105
"integer",
106106
"null"
@@ -109,7 +109,7 @@ expression: json
109109
"minimum": 0.0
110110
},
111111
"quoteProps": {
112-
"description": "Change when properties in objects are quoted. (Default: \"as-needed\")",
112+
"description": "Change when properties in objects are quoted. (Default: `\"as-needed\"`)",
113113
"anyOf": [
114114
{
115115
"$ref": "#/definitions/QuotePropsConfig"
@@ -120,28 +120,28 @@ expression: json
120120
]
121121
},
122122
"semi": {
123-
"description": "Print semicolons at the ends of statements. (Default: true)",
123+
"description": "Print semicolons at the ends of statements. (Default: `true`)",
124124
"type": [
125125
"boolean",
126126
"null"
127127
]
128128
},
129129
"singleAttributePerLine": {
130-
"description": "Put each attribute on a new line in JSX. (Default: false)",
130+
"description": "Put each attribute on a new line in JSX. (Default: `false`)",
131131
"type": [
132132
"boolean",
133133
"null"
134134
]
135135
},
136136
"singleQuote": {
137-
"description": "Use single quotes instead of double quotes. (Default: false)",
137+
"description": "Use single quotes instead of double quotes. (Default: `false`)",
138138
"type": [
139139
"boolean",
140140
"null"
141141
]
142142
},
143143
"tabWidth": {
144-
"description": "Number of spaces per indentation level. (Default: 2)",
144+
"description": "Number of spaces per indentation level. (Default: `2`)",
145145
"type": [
146146
"integer",
147147
"null"
@@ -150,7 +150,7 @@ expression: json
150150
"minimum": 0.0
151151
},
152152
"trailingComma": {
153-
"description": "Print trailing commas wherever possible. (Default: \"all\")",
153+
"description": "Print trailing commas wherever possible. (Default: `\"all\"`)",
154154
"anyOf": [
155155
{
156156
"$ref": "#/definitions/TrailingCommaConfig"
@@ -161,7 +161,7 @@ expression: json
161161
]
162162
},
163163
"useTabs": {
164-
"description": "Use tabs for indentation or spaces. (Default: false)",
164+
"description": "Use tabs for indentation or spaces. (Default: `false`)",
165165
"type": [
166166
"boolean",
167167
"null"

npm/oxfmt/configuration_schema.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "object",
66
"properties": {
77
"arrowParens": {
8-
"description": "Include parentheses around a sole arrow function parameter. (Default: \"always\")",
8+
"description": "Include parentheses around a sole arrow function parameter. (Default: `\"always\"`)",
99
"anyOf": [
1010
{
1111
"$ref": "#/definitions/ArrowParensConfig"
@@ -16,21 +16,21 @@
1616
]
1717
},
1818
"bracketSameLine": {
19-
"description": "Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line. (Default: false)",
19+
"description": "Put the `>` of a multi-line JSX element at the end of the last line\ninstead of being alone on the next line. (Default: `false`)",
2020
"type": [
2121
"boolean",
2222
"null"
2323
]
2424
},
2525
"bracketSpacing": {
26-
"description": "Print spaces between brackets in object literals. (Default: true)",
26+
"description": "Print spaces between brackets in object literals. (Default: `true`)",
2727
"type": [
2828
"boolean",
2929
"null"
3030
]
3131
},
3232
"embeddedLanguageFormatting": {
33-
"description": "Control whether formats quoted code embedded in the file. (Default: \"auto\")",
33+
"description": "Control whether formats quoted code embedded in the file. (Default: `\"auto\"`)",
3434
"anyOf": [
3535
{
3636
"$ref": "#/definitions/EmbeddedLanguageFormattingConfig"
@@ -41,7 +41,7 @@
4141
]
4242
},
4343
"endOfLine": {
44-
"description": "Which end of line characters to apply. (Default: \"lf\")",
44+
"description": "Which end of line characters to apply. (Default: `\"lf\"`)",
4545
"anyOf": [
4646
{
4747
"$ref": "#/definitions/EndOfLineConfig"
@@ -78,14 +78,14 @@
7878
}
7979
},
8080
"jsxSingleQuote": {
81-
"description": "Use single quotes instead of double quotes in JSX. (Default: false)",
81+
"description": "Use single quotes instead of double quotes in JSX. (Default: `false`)",
8282
"type": [
8383
"boolean",
8484
"null"
8585
]
8686
},
8787
"objectWrap": {
88-
"description": "How to wrap object literals when they could fit on one line or span multiple lines. (Default: \"preserve\")\nNOTE: In addition to Prettier's \"preserve\" and \"collapse\", we also support \"always\".",
88+
"description": "How to wrap object literals when they could fit on one line or span multiple lines. (Default: `\"preserve\"`)\nNOTE: In addition to Prettier's `\"preserve\"` and `\"collapse\"`, we also support `\"always\"`.",
8989
"anyOf": [
9090
{
9191
"$ref": "#/definitions/ObjectWrapConfig"
@@ -96,7 +96,7 @@
9696
]
9797
},
9898
"printWidth": {
99-
"description": "The line length that the printer will wrap on. (Default: 100)",
99+
"description": "The line length that the printer will wrap on. (Default: `100`)",
100100
"type": [
101101
"integer",
102102
"null"
@@ -105,7 +105,7 @@
105105
"minimum": 0.0
106106
},
107107
"quoteProps": {
108-
"description": "Change when properties in objects are quoted. (Default: \"as-needed\")",
108+
"description": "Change when properties in objects are quoted. (Default: `\"as-needed\"`)",
109109
"anyOf": [
110110
{
111111
"$ref": "#/definitions/QuotePropsConfig"
@@ -116,28 +116,28 @@
116116
]
117117
},
118118
"semi": {
119-
"description": "Print semicolons at the ends of statements. (Default: true)",
119+
"description": "Print semicolons at the ends of statements. (Default: `true`)",
120120
"type": [
121121
"boolean",
122122
"null"
123123
]
124124
},
125125
"singleAttributePerLine": {
126-
"description": "Put each attribute on a new line in JSX. (Default: false)",
126+
"description": "Put each attribute on a new line in JSX. (Default: `false`)",
127127
"type": [
128128
"boolean",
129129
"null"
130130
]
131131
},
132132
"singleQuote": {
133-
"description": "Use single quotes instead of double quotes. (Default: false)",
133+
"description": "Use single quotes instead of double quotes. (Default: `false`)",
134134
"type": [
135135
"boolean",
136136
"null"
137137
]
138138
},
139139
"tabWidth": {
140-
"description": "Number of spaces per indentation level. (Default: 2)",
140+
"description": "Number of spaces per indentation level. (Default: `2`)",
141141
"type": [
142142
"integer",
143143
"null"
@@ -146,7 +146,7 @@
146146
"minimum": 0.0
147147
},
148148
"trailingComma": {
149-
"description": "Print trailing commas wherever possible. (Default: \"all\")",
149+
"description": "Print trailing commas wherever possible. (Default: `\"all\"`)",
150150
"anyOf": [
151151
{
152152
"$ref": "#/definitions/TrailingCommaConfig"
@@ -157,7 +157,7 @@
157157
]
158158
},
159159
"useTabs": {
160-
"description": "Use tabs for indentation or spaces. (Default: false)",
160+
"description": "Use tabs for indentation or spaces. (Default: `false`)",
161161
"type": [
162162
"boolean",
163163
"null"

tasks/website_formatter/src/snapshots/schema_markdown.snap

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,40 @@ See also <https://prettier.io/docs/options>
1616
type: `string | null`
1717

1818

19-
Include parentheses around a sole arrow function parameter. (Default: "always")
19+
Include parentheses around a sole arrow function parameter. (Default: `"always"`)
2020

2121

2222
## bracketSameLine
2323

2424
type: `boolean | null`
2525

2626

27-
Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line. (Default: false)
27+
Put the `>` of a multi-line JSX element at the end of the last line
28+
instead of being alone on the next line. (Default: `false`)
2829

2930

3031
## bracketSpacing
3132

3233
type: `boolean | null`
3334

3435

35-
Print spaces between brackets in object literals. (Default: true)
36+
Print spaces between brackets in object literals. (Default: `true`)
3637

3738

3839
## embeddedLanguageFormatting
3940

4041
type: `string | null`
4142

4243

43-
Control whether formats quoted code embedded in the file. (Default: "auto")
44+
Control whether formats quoted code embedded in the file. (Default: `"auto"`)
4445

4546

4647
## endOfLine
4748

4849
type: `string | null`
4950

5051

51-
Which end of line characters to apply. (Default: "lf")
52+
Which end of line characters to apply. (Default: `"lf"`)
5253

5354

5455
## experimentalSortImports
@@ -160,77 +161,77 @@ Ignore files matching these glob patterns. Current working directory is used as
160161
type: `boolean | null`
161162

162163

163-
Use single quotes instead of double quotes in JSX. (Default: false)
164+
Use single quotes instead of double quotes in JSX. (Default: `false`)
164165

165166

166167
## objectWrap
167168

168169
type: `string | null`
169170

170171

171-
How to wrap object literals when they could fit on one line or span multiple lines. (Default: "preserve")
172-
NOTE: In addition to Prettier's "preserve" and "collapse", we also support "always".
172+
How to wrap object literals when they could fit on one line or span multiple lines. (Default: `"preserve"`)
173+
NOTE: In addition to Prettier's `"preserve"` and `"collapse"`, we also support `"always"`.
173174

174175

175176
## printWidth
176177

177178
type: `integer | null`
178179

179180

180-
The line length that the printer will wrap on. (Default: 100)
181+
The line length that the printer will wrap on. (Default: `100`)
181182

182183

183184
## quoteProps
184185

185186
type: `string | null`
186187

187188

188-
Change when properties in objects are quoted. (Default: "as-needed")
189+
Change when properties in objects are quoted. (Default: `"as-needed"`)
189190

190191

191192
## semi
192193

193194
type: `boolean | null`
194195

195196

196-
Print semicolons at the ends of statements. (Default: true)
197+
Print semicolons at the ends of statements. (Default: `true`)
197198

198199

199200
## singleAttributePerLine
200201

201202
type: `boolean | null`
202203

203204

204-
Put each attribute on a new line in JSX. (Default: false)
205+
Put each attribute on a new line in JSX. (Default: `false`)
205206

206207

207208
## singleQuote
208209

209210
type: `boolean | null`
210211

211212

212-
Use single quotes instead of double quotes. (Default: false)
213+
Use single quotes instead of double quotes. (Default: `false`)
213214

214215

215216
## tabWidth
216217

217218
type: `integer | null`
218219

219220

220-
Number of spaces per indentation level. (Default: 2)
221+
Number of spaces per indentation level. (Default: `2`)
221222

222223

223224
## trailingComma
224225

225226
type: `string | null`
226227

227228

228-
Print trailing commas wherever possible. (Default: "all")
229+
Print trailing commas wherever possible. (Default: `"all"`)
229230

230231

231232
## useTabs
232233

233234
type: `boolean | null`
234235

235236

236-
Use tabs for indentation or spaces. (Default: false)
237+
Use tabs for indentation or spaces. (Default: `false`)

0 commit comments

Comments
 (0)