tidyrs 0.0.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +104 -0
- package/index.js +779 -0
- package/package.json +62 -1
- package/tidy.schema.json +1270 -0
package/tidy.schema.json
ADDED
|
@@ -0,0 +1,1270 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://tidy.lukeed.com/tidy.schema.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"description": "Options for tidy, a code formatter with Prettier's style. https://tidy.lukeed.com/docs/options/",
|
|
6
|
+
"properties": {
|
|
7
|
+
"bracketSameLine": {
|
|
8
|
+
"default": false,
|
|
9
|
+
"description": "Keep the `>` of a multi-line tag on the last line.",
|
|
10
|
+
"type": "boolean"
|
|
11
|
+
},
|
|
12
|
+
"bracketSpacing": {
|
|
13
|
+
"default": true,
|
|
14
|
+
"description": "Spaces inside the braces of JSON and JS objects, and YAML flow mappings.",
|
|
15
|
+
"type": "boolean"
|
|
16
|
+
},
|
|
17
|
+
"css": {
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"description": "Options for css only.",
|
|
20
|
+
"properties": {
|
|
21
|
+
"bracketSameLine": {
|
|
22
|
+
"default": false,
|
|
23
|
+
"description": "Keep the `>` of a multi-line tag on the last line.",
|
|
24
|
+
"type": "boolean"
|
|
25
|
+
},
|
|
26
|
+
"bracketSpacing": {
|
|
27
|
+
"default": true,
|
|
28
|
+
"description": "Spaces inside the braces of JSON and JS objects, and YAML flow mappings.",
|
|
29
|
+
"type": "boolean"
|
|
30
|
+
},
|
|
31
|
+
"embedded": {
|
|
32
|
+
"default": true,
|
|
33
|
+
"description": "Format the code of other languages inside a file.",
|
|
34
|
+
"type": "boolean"
|
|
35
|
+
},
|
|
36
|
+
"eol": {
|
|
37
|
+
"default": "lf",
|
|
38
|
+
"description": "The line ending to write.",
|
|
39
|
+
"enum": ["lf", "crlf", "cr"],
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"ignore": {
|
|
43
|
+
"default": "prettier-ignore",
|
|
44
|
+
"description": "The name of the ignore directive.",
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"indent": {
|
|
48
|
+
"default": 2,
|
|
49
|
+
"description": "The width of one indent.",
|
|
50
|
+
"minimum": 0,
|
|
51
|
+
"type": "integer"
|
|
52
|
+
},
|
|
53
|
+
"quote": {
|
|
54
|
+
"default": "double",
|
|
55
|
+
"description": "Quotes in Handlebars, style sheets, JSON5, YAML and JS.",
|
|
56
|
+
"enum": ["double", "single"],
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"singleAttributePerLine": {
|
|
60
|
+
"default": false,
|
|
61
|
+
"description": "Put each attribute on its own line.",
|
|
62
|
+
"type": "boolean"
|
|
63
|
+
},
|
|
64
|
+
"tabs": {
|
|
65
|
+
"default": false,
|
|
66
|
+
"description": "Indent with tabs.",
|
|
67
|
+
"type": "boolean"
|
|
68
|
+
},
|
|
69
|
+
"trailingComma": {
|
|
70
|
+
"default": true,
|
|
71
|
+
"description": "Trailing commas in SCSS, JSONC, JSON5, YAML flow collections, TOML arrays and JS.",
|
|
72
|
+
"type": "boolean"
|
|
73
|
+
},
|
|
74
|
+
"whitespace": {
|
|
75
|
+
"default": "auto",
|
|
76
|
+
"description": "Whitespace sensitivity in HTML, Vue, Handlebars and XML. `strict` for XML.",
|
|
77
|
+
"enum": ["strict", "auto", "ignore"],
|
|
78
|
+
"type": "string"
|
|
79
|
+
},
|
|
80
|
+
"width": {
|
|
81
|
+
"default": 80,
|
|
82
|
+
"description": "The line width the printer fits to. 120 for Dockerfiles.",
|
|
83
|
+
"minimum": 0,
|
|
84
|
+
"type": "integer"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"type": "object"
|
|
88
|
+
},
|
|
89
|
+
"dockerfile": {
|
|
90
|
+
"additionalProperties": false,
|
|
91
|
+
"description": "Options for dockerfile only.",
|
|
92
|
+
"properties": {
|
|
93
|
+
"bracketSameLine": {
|
|
94
|
+
"default": false,
|
|
95
|
+
"description": "Keep the `>` of a multi-line tag on the last line.",
|
|
96
|
+
"type": "boolean"
|
|
97
|
+
},
|
|
98
|
+
"bracketSpacing": {
|
|
99
|
+
"default": true,
|
|
100
|
+
"description": "Spaces inside the braces of JSON and JS objects, and YAML flow mappings.",
|
|
101
|
+
"type": "boolean"
|
|
102
|
+
},
|
|
103
|
+
"embedded": {
|
|
104
|
+
"default": true,
|
|
105
|
+
"description": "Format the code of other languages inside a file.",
|
|
106
|
+
"type": "boolean"
|
|
107
|
+
},
|
|
108
|
+
"eol": {
|
|
109
|
+
"default": "lf",
|
|
110
|
+
"description": "The line ending to write.",
|
|
111
|
+
"enum": ["lf", "crlf", "cr"],
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
"healthcheckCmdNewLine": {
|
|
115
|
+
"default": false,
|
|
116
|
+
"description": "Put a HEALTHCHECK's CMD on its own line.",
|
|
117
|
+
"type": "boolean"
|
|
118
|
+
},
|
|
119
|
+
"ignore": {
|
|
120
|
+
"default": "prettier-ignore",
|
|
121
|
+
"description": "The name of the ignore directive.",
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
124
|
+
"indent": {
|
|
125
|
+
"default": 2,
|
|
126
|
+
"description": "The width of one indent.",
|
|
127
|
+
"minimum": 0,
|
|
128
|
+
"type": "integer"
|
|
129
|
+
},
|
|
130
|
+
"indentStages": {
|
|
131
|
+
"default": false,
|
|
132
|
+
"description": "Indent the instructions of each stage.",
|
|
133
|
+
"type": "boolean"
|
|
134
|
+
},
|
|
135
|
+
"quote": {
|
|
136
|
+
"default": "double",
|
|
137
|
+
"description": "Quotes in Handlebars, style sheets, JSON5, YAML and JS.",
|
|
138
|
+
"enum": ["double", "single"],
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
"singleAttributePerLine": {
|
|
142
|
+
"default": false,
|
|
143
|
+
"description": "Put each attribute on its own line.",
|
|
144
|
+
"type": "boolean"
|
|
145
|
+
},
|
|
146
|
+
"tabs": {
|
|
147
|
+
"default": false,
|
|
148
|
+
"description": "Indent with tabs.",
|
|
149
|
+
"type": "boolean"
|
|
150
|
+
},
|
|
151
|
+
"trailingComma": {
|
|
152
|
+
"default": true,
|
|
153
|
+
"description": "Trailing commas in SCSS, JSONC, JSON5, YAML flow collections, TOML arrays and JS.",
|
|
154
|
+
"type": "boolean"
|
|
155
|
+
},
|
|
156
|
+
"whitespace": {
|
|
157
|
+
"default": "auto",
|
|
158
|
+
"description": "Whitespace sensitivity in HTML, Vue, Handlebars and XML. `strict` for XML.",
|
|
159
|
+
"enum": ["strict", "auto", "ignore"],
|
|
160
|
+
"type": "string"
|
|
161
|
+
},
|
|
162
|
+
"width": {
|
|
163
|
+
"default": 80,
|
|
164
|
+
"description": "The line width the printer fits to. 120 for Dockerfiles.",
|
|
165
|
+
"minimum": 0,
|
|
166
|
+
"type": "integer"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"type": "object"
|
|
170
|
+
},
|
|
171
|
+
"embedded": {
|
|
172
|
+
"default": true,
|
|
173
|
+
"description": "Format the code of other languages inside a file.",
|
|
174
|
+
"type": "boolean"
|
|
175
|
+
},
|
|
176
|
+
"eol": {
|
|
177
|
+
"default": "lf",
|
|
178
|
+
"description": "The line ending to write.",
|
|
179
|
+
"enum": ["lf", "crlf", "cr"],
|
|
180
|
+
"type": "string"
|
|
181
|
+
},
|
|
182
|
+
"graphql": {
|
|
183
|
+
"additionalProperties": false,
|
|
184
|
+
"description": "Options for graphql only.",
|
|
185
|
+
"properties": {
|
|
186
|
+
"bracketSameLine": {
|
|
187
|
+
"default": false,
|
|
188
|
+
"description": "Keep the `>` of a multi-line tag on the last line.",
|
|
189
|
+
"type": "boolean"
|
|
190
|
+
},
|
|
191
|
+
"bracketSpacing": {
|
|
192
|
+
"default": true,
|
|
193
|
+
"description": "Spaces inside the braces of JSON and JS objects, and YAML flow mappings.",
|
|
194
|
+
"type": "boolean"
|
|
195
|
+
},
|
|
196
|
+
"embedded": {
|
|
197
|
+
"default": true,
|
|
198
|
+
"description": "Format the code of other languages inside a file.",
|
|
199
|
+
"type": "boolean"
|
|
200
|
+
},
|
|
201
|
+
"eol": {
|
|
202
|
+
"default": "lf",
|
|
203
|
+
"description": "The line ending to write.",
|
|
204
|
+
"enum": ["lf", "crlf", "cr"],
|
|
205
|
+
"type": "string"
|
|
206
|
+
},
|
|
207
|
+
"ignore": {
|
|
208
|
+
"default": "prettier-ignore",
|
|
209
|
+
"description": "The name of the ignore directive.",
|
|
210
|
+
"type": "string"
|
|
211
|
+
},
|
|
212
|
+
"indent": {
|
|
213
|
+
"default": 2,
|
|
214
|
+
"description": "The width of one indent.",
|
|
215
|
+
"minimum": 0,
|
|
216
|
+
"type": "integer"
|
|
217
|
+
},
|
|
218
|
+
"quote": {
|
|
219
|
+
"default": "double",
|
|
220
|
+
"description": "Quotes in Handlebars, style sheets, JSON5, YAML and JS.",
|
|
221
|
+
"enum": ["double", "single"],
|
|
222
|
+
"type": "string"
|
|
223
|
+
},
|
|
224
|
+
"singleAttributePerLine": {
|
|
225
|
+
"default": false,
|
|
226
|
+
"description": "Put each attribute on its own line.",
|
|
227
|
+
"type": "boolean"
|
|
228
|
+
},
|
|
229
|
+
"tabs": {
|
|
230
|
+
"default": false,
|
|
231
|
+
"description": "Indent with tabs.",
|
|
232
|
+
"type": "boolean"
|
|
233
|
+
},
|
|
234
|
+
"trailingComma": {
|
|
235
|
+
"default": true,
|
|
236
|
+
"description": "Trailing commas in SCSS, JSONC, JSON5, YAML flow collections, TOML arrays and JS.",
|
|
237
|
+
"type": "boolean"
|
|
238
|
+
},
|
|
239
|
+
"whitespace": {
|
|
240
|
+
"default": "auto",
|
|
241
|
+
"description": "Whitespace sensitivity in HTML, Vue, Handlebars and XML. `strict` for XML.",
|
|
242
|
+
"enum": ["strict", "auto", "ignore"],
|
|
243
|
+
"type": "string"
|
|
244
|
+
},
|
|
245
|
+
"width": {
|
|
246
|
+
"default": 80,
|
|
247
|
+
"description": "The line width the printer fits to. 120 for Dockerfiles.",
|
|
248
|
+
"minimum": 0,
|
|
249
|
+
"type": "integer"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"type": "object"
|
|
253
|
+
},
|
|
254
|
+
"handlebars": {
|
|
255
|
+
"additionalProperties": false,
|
|
256
|
+
"description": "Options for handlebars only.",
|
|
257
|
+
"properties": {
|
|
258
|
+
"bracketSameLine": {
|
|
259
|
+
"default": false,
|
|
260
|
+
"description": "Keep the `>` of a multi-line tag on the last line.",
|
|
261
|
+
"type": "boolean"
|
|
262
|
+
},
|
|
263
|
+
"bracketSpacing": {
|
|
264
|
+
"default": true,
|
|
265
|
+
"description": "Spaces inside the braces of JSON and JS objects, and YAML flow mappings.",
|
|
266
|
+
"type": "boolean"
|
|
267
|
+
},
|
|
268
|
+
"dialect": {
|
|
269
|
+
"default": "auto",
|
|
270
|
+
"description": "Which mustache grammar to parse.",
|
|
271
|
+
"enum": ["auto", "handlebars", "tempura"],
|
|
272
|
+
"type": "string"
|
|
273
|
+
},
|
|
274
|
+
"embedded": {
|
|
275
|
+
"default": true,
|
|
276
|
+
"description": "Format the code of other languages inside a file.",
|
|
277
|
+
"type": "boolean"
|
|
278
|
+
},
|
|
279
|
+
"eol": {
|
|
280
|
+
"default": "lf",
|
|
281
|
+
"description": "The line ending to write.",
|
|
282
|
+
"enum": ["lf", "crlf", "cr"],
|
|
283
|
+
"type": "string"
|
|
284
|
+
},
|
|
285
|
+
"ignore": {
|
|
286
|
+
"default": "prettier-ignore",
|
|
287
|
+
"description": "The name of the ignore directive.",
|
|
288
|
+
"type": "string"
|
|
289
|
+
},
|
|
290
|
+
"indent": {
|
|
291
|
+
"default": 2,
|
|
292
|
+
"description": "The width of one indent.",
|
|
293
|
+
"minimum": 0,
|
|
294
|
+
"type": "integer"
|
|
295
|
+
},
|
|
296
|
+
"quote": {
|
|
297
|
+
"default": "double",
|
|
298
|
+
"description": "Quotes in Handlebars, style sheets, JSON5, YAML and JS.",
|
|
299
|
+
"enum": ["double", "single"],
|
|
300
|
+
"type": "string"
|
|
301
|
+
},
|
|
302
|
+
"singleAttributePerLine": {
|
|
303
|
+
"default": false,
|
|
304
|
+
"description": "Put each attribute on its own line.",
|
|
305
|
+
"type": "boolean"
|
|
306
|
+
},
|
|
307
|
+
"tabs": {
|
|
308
|
+
"default": false,
|
|
309
|
+
"description": "Indent with tabs.",
|
|
310
|
+
"type": "boolean"
|
|
311
|
+
},
|
|
312
|
+
"trailingComma": {
|
|
313
|
+
"default": true,
|
|
314
|
+
"description": "Trailing commas in SCSS, JSONC, JSON5, YAML flow collections, TOML arrays and JS.",
|
|
315
|
+
"type": "boolean"
|
|
316
|
+
},
|
|
317
|
+
"whitespace": {
|
|
318
|
+
"default": "auto",
|
|
319
|
+
"description": "Whitespace sensitivity in HTML, Vue, Handlebars and XML. `strict` for XML.",
|
|
320
|
+
"enum": ["strict", "auto", "ignore"],
|
|
321
|
+
"type": "string"
|
|
322
|
+
},
|
|
323
|
+
"width": {
|
|
324
|
+
"default": 80,
|
|
325
|
+
"description": "The line width the printer fits to. 120 for Dockerfiles.",
|
|
326
|
+
"minimum": 0,
|
|
327
|
+
"type": "integer"
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"type": "object"
|
|
331
|
+
},
|
|
332
|
+
"html": {
|
|
333
|
+
"additionalProperties": false,
|
|
334
|
+
"description": "Options for html only.",
|
|
335
|
+
"properties": {
|
|
336
|
+
"bracketSameLine": {
|
|
337
|
+
"default": false,
|
|
338
|
+
"description": "Keep the `>` of a multi-line tag on the last line.",
|
|
339
|
+
"type": "boolean"
|
|
340
|
+
},
|
|
341
|
+
"bracketSpacing": {
|
|
342
|
+
"default": true,
|
|
343
|
+
"description": "Spaces inside the braces of JSON and JS objects, and YAML flow mappings.",
|
|
344
|
+
"type": "boolean"
|
|
345
|
+
},
|
|
346
|
+
"embedded": {
|
|
347
|
+
"default": true,
|
|
348
|
+
"description": "Format the code of other languages inside a file.",
|
|
349
|
+
"type": "boolean"
|
|
350
|
+
},
|
|
351
|
+
"eol": {
|
|
352
|
+
"default": "lf",
|
|
353
|
+
"description": "The line ending to write.",
|
|
354
|
+
"enum": ["lf", "crlf", "cr"],
|
|
355
|
+
"type": "string"
|
|
356
|
+
},
|
|
357
|
+
"ignore": {
|
|
358
|
+
"default": "prettier-ignore",
|
|
359
|
+
"description": "The name of the ignore directive.",
|
|
360
|
+
"type": "string"
|
|
361
|
+
},
|
|
362
|
+
"indent": {
|
|
363
|
+
"default": 2,
|
|
364
|
+
"description": "The width of one indent.",
|
|
365
|
+
"minimum": 0,
|
|
366
|
+
"type": "integer"
|
|
367
|
+
},
|
|
368
|
+
"quote": {
|
|
369
|
+
"default": "double",
|
|
370
|
+
"description": "Quotes in Handlebars, style sheets, JSON5, YAML and JS.",
|
|
371
|
+
"enum": ["double", "single"],
|
|
372
|
+
"type": "string"
|
|
373
|
+
},
|
|
374
|
+
"singleAttributePerLine": {
|
|
375
|
+
"default": false,
|
|
376
|
+
"description": "Put each attribute on its own line.",
|
|
377
|
+
"type": "boolean"
|
|
378
|
+
},
|
|
379
|
+
"tabs": {
|
|
380
|
+
"default": false,
|
|
381
|
+
"description": "Indent with tabs.",
|
|
382
|
+
"type": "boolean"
|
|
383
|
+
},
|
|
384
|
+
"trailingComma": {
|
|
385
|
+
"default": true,
|
|
386
|
+
"description": "Trailing commas in SCSS, JSONC, JSON5, YAML flow collections, TOML arrays and JS.",
|
|
387
|
+
"type": "boolean"
|
|
388
|
+
},
|
|
389
|
+
"whitespace": {
|
|
390
|
+
"default": "auto",
|
|
391
|
+
"description": "Whitespace sensitivity in HTML, Vue, Handlebars and XML. `strict` for XML.",
|
|
392
|
+
"enum": ["strict", "auto", "ignore"],
|
|
393
|
+
"type": "string"
|
|
394
|
+
},
|
|
395
|
+
"width": {
|
|
396
|
+
"default": 80,
|
|
397
|
+
"description": "The line width the printer fits to. 120 for Dockerfiles.",
|
|
398
|
+
"minimum": 0,
|
|
399
|
+
"type": "integer"
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"type": "object"
|
|
403
|
+
},
|
|
404
|
+
"ignore": {
|
|
405
|
+
"default": "prettier-ignore",
|
|
406
|
+
"description": "The name of the ignore directive.",
|
|
407
|
+
"type": "string"
|
|
408
|
+
},
|
|
409
|
+
"indent": {
|
|
410
|
+
"default": 2,
|
|
411
|
+
"description": "The width of one indent.",
|
|
412
|
+
"minimum": 0,
|
|
413
|
+
"type": "integer"
|
|
414
|
+
},
|
|
415
|
+
"ini": {
|
|
416
|
+
"additionalProperties": false,
|
|
417
|
+
"description": "Options for ini only.",
|
|
418
|
+
"properties": {
|
|
419
|
+
"bracketSameLine": {
|
|
420
|
+
"default": false,
|
|
421
|
+
"description": "Keep the `>` of a multi-line tag on the last line.",
|
|
422
|
+
"type": "boolean"
|
|
423
|
+
},
|
|
424
|
+
"bracketSpacing": {
|
|
425
|
+
"default": true,
|
|
426
|
+
"description": "Spaces inside the braces of JSON and JS objects, and YAML flow mappings.",
|
|
427
|
+
"type": "boolean"
|
|
428
|
+
},
|
|
429
|
+
"embedded": {
|
|
430
|
+
"default": true,
|
|
431
|
+
"description": "Format the code of other languages inside a file.",
|
|
432
|
+
"type": "boolean"
|
|
433
|
+
},
|
|
434
|
+
"eol": {
|
|
435
|
+
"default": "lf",
|
|
436
|
+
"description": "The line ending to write.",
|
|
437
|
+
"enum": ["lf", "crlf", "cr"],
|
|
438
|
+
"type": "string"
|
|
439
|
+
},
|
|
440
|
+
"ignore": {
|
|
441
|
+
"default": "prettier-ignore",
|
|
442
|
+
"description": "The name of the ignore directive.",
|
|
443
|
+
"type": "string"
|
|
444
|
+
},
|
|
445
|
+
"indent": {
|
|
446
|
+
"default": 2,
|
|
447
|
+
"description": "The width of one indent.",
|
|
448
|
+
"minimum": 0,
|
|
449
|
+
"type": "integer"
|
|
450
|
+
},
|
|
451
|
+
"quote": {
|
|
452
|
+
"default": "double",
|
|
453
|
+
"description": "Quotes in Handlebars, style sheets, JSON5, YAML and JS.",
|
|
454
|
+
"enum": ["double", "single"],
|
|
455
|
+
"type": "string"
|
|
456
|
+
},
|
|
457
|
+
"singleAttributePerLine": {
|
|
458
|
+
"default": false,
|
|
459
|
+
"description": "Put each attribute on its own line.",
|
|
460
|
+
"type": "boolean"
|
|
461
|
+
},
|
|
462
|
+
"spaceAroundEquals": {
|
|
463
|
+
"default": true,
|
|
464
|
+
"description": "Spaces around the `=` of an entry.",
|
|
465
|
+
"type": "boolean"
|
|
466
|
+
},
|
|
467
|
+
"tabs": {
|
|
468
|
+
"default": false,
|
|
469
|
+
"description": "Indent with tabs.",
|
|
470
|
+
"type": "boolean"
|
|
471
|
+
},
|
|
472
|
+
"trailingComma": {
|
|
473
|
+
"default": true,
|
|
474
|
+
"description": "Trailing commas in SCSS, JSONC, JSON5, YAML flow collections, TOML arrays and JS.",
|
|
475
|
+
"type": "boolean"
|
|
476
|
+
},
|
|
477
|
+
"whitespace": {
|
|
478
|
+
"default": "auto",
|
|
479
|
+
"description": "Whitespace sensitivity in HTML, Vue, Handlebars and XML. `strict` for XML.",
|
|
480
|
+
"enum": ["strict", "auto", "ignore"],
|
|
481
|
+
"type": "string"
|
|
482
|
+
},
|
|
483
|
+
"width": {
|
|
484
|
+
"default": 80,
|
|
485
|
+
"description": "The line width the printer fits to. 120 for Dockerfiles.",
|
|
486
|
+
"minimum": 0,
|
|
487
|
+
"type": "integer"
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"type": "object"
|
|
491
|
+
},
|
|
492
|
+
"js": {
|
|
493
|
+
"additionalProperties": false,
|
|
494
|
+
"description": "Options for js only.",
|
|
495
|
+
"properties": {
|
|
496
|
+
"arrowParens": {
|
|
497
|
+
"default": "always",
|
|
498
|
+
"description": "Parentheses around a lone arrow function parameter.",
|
|
499
|
+
"enum": ["always", "avoid"],
|
|
500
|
+
"type": "string"
|
|
501
|
+
},
|
|
502
|
+
"bracketSameLine": {
|
|
503
|
+
"default": false,
|
|
504
|
+
"description": "Keep the `>` of a multi-line tag on the last line.",
|
|
505
|
+
"type": "boolean"
|
|
506
|
+
},
|
|
507
|
+
"bracketSpacing": {
|
|
508
|
+
"default": true,
|
|
509
|
+
"description": "Spaces inside the braces of JSON and JS objects, and YAML flow mappings.",
|
|
510
|
+
"type": "boolean"
|
|
511
|
+
},
|
|
512
|
+
"embedded": {
|
|
513
|
+
"default": true,
|
|
514
|
+
"description": "Format the code of other languages inside a file.",
|
|
515
|
+
"type": "boolean"
|
|
516
|
+
},
|
|
517
|
+
"eol": {
|
|
518
|
+
"default": "lf",
|
|
519
|
+
"description": "The line ending to write.",
|
|
520
|
+
"enum": ["lf", "crlf", "cr"],
|
|
521
|
+
"type": "string"
|
|
522
|
+
},
|
|
523
|
+
"experimentalOperatorPosition": {
|
|
524
|
+
"default": "end",
|
|
525
|
+
"description": "Which side of a line break a binary operator sits on.",
|
|
526
|
+
"enum": ["start", "end"],
|
|
527
|
+
"type": "string"
|
|
528
|
+
},
|
|
529
|
+
"experimentalTernaries": {
|
|
530
|
+
"default": false,
|
|
531
|
+
"description": "Prettier's experimental ternary layout.",
|
|
532
|
+
"type": "boolean"
|
|
533
|
+
},
|
|
534
|
+
"ignore": {
|
|
535
|
+
"default": "prettier-ignore",
|
|
536
|
+
"description": "The name of the ignore directive.",
|
|
537
|
+
"type": "string"
|
|
538
|
+
},
|
|
539
|
+
"indent": {
|
|
540
|
+
"default": 2,
|
|
541
|
+
"description": "The width of one indent.",
|
|
542
|
+
"minimum": 0,
|
|
543
|
+
"type": "integer"
|
|
544
|
+
},
|
|
545
|
+
"jsdoc": {
|
|
546
|
+
"default": true,
|
|
547
|
+
"description": "Format JSDoc comments, as prettier-plugin-jsdoc does.",
|
|
548
|
+
"type": "boolean"
|
|
549
|
+
},
|
|
550
|
+
"jsxSingleQuote": {
|
|
551
|
+
"default": false,
|
|
552
|
+
"description": "Single quotes in JSX attributes.",
|
|
553
|
+
"type": "boolean"
|
|
554
|
+
},
|
|
555
|
+
"objectWrap": {
|
|
556
|
+
"default": "preserve",
|
|
557
|
+
"description": "Keep an object expanded when the source had a line break after `{`.",
|
|
558
|
+
"enum": ["preserve", "collapse"],
|
|
559
|
+
"type": "string"
|
|
560
|
+
},
|
|
561
|
+
"plugins": {
|
|
562
|
+
"default": [],
|
|
563
|
+
"description": "Import sorters to follow: @trivago/prettier-plugin-sort-imports, @ianvs/prettier-plugin-sort-imports or prettier-plugin-organize-imports.",
|
|
564
|
+
"items": {
|
|
565
|
+
"type": "string"
|
|
566
|
+
},
|
|
567
|
+
"type": "array"
|
|
568
|
+
},
|
|
569
|
+
"quote": {
|
|
570
|
+
"default": "double",
|
|
571
|
+
"description": "Quotes in Handlebars, style sheets, JSON5, YAML and JS.",
|
|
572
|
+
"enum": ["double", "single"],
|
|
573
|
+
"type": "string"
|
|
574
|
+
},
|
|
575
|
+
"quoteProps": {
|
|
576
|
+
"default": "as-needed",
|
|
577
|
+
"description": "When to quote the keys of an object.",
|
|
578
|
+
"enum": ["as-needed", "consistent", "preserve"],
|
|
579
|
+
"type": "string"
|
|
580
|
+
},
|
|
581
|
+
"semi": {
|
|
582
|
+
"default": true,
|
|
583
|
+
"description": "End statements with a semicolon.",
|
|
584
|
+
"type": "boolean"
|
|
585
|
+
},
|
|
586
|
+
"singleAttributePerLine": {
|
|
587
|
+
"default": false,
|
|
588
|
+
"description": "Put each attribute on its own line.",
|
|
589
|
+
"type": "boolean"
|
|
590
|
+
},
|
|
591
|
+
"sortImports": {
|
|
592
|
+
"default": false,
|
|
593
|
+
"description": "Sort imports, with oxfmt's sorter.",
|
|
594
|
+
"type": "boolean"
|
|
595
|
+
},
|
|
596
|
+
"tabs": {
|
|
597
|
+
"default": false,
|
|
598
|
+
"description": "Indent with tabs.",
|
|
599
|
+
"type": "boolean"
|
|
600
|
+
},
|
|
601
|
+
"trailingComma": {
|
|
602
|
+
"anyOf": [
|
|
603
|
+
{
|
|
604
|
+
"enum": ["all", "es5", "none"]
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"type": "boolean"
|
|
608
|
+
}
|
|
609
|
+
],
|
|
610
|
+
"default": "all",
|
|
611
|
+
"description": "Where to leave a trailing comma."
|
|
612
|
+
},
|
|
613
|
+
"whitespace": {
|
|
614
|
+
"default": "auto",
|
|
615
|
+
"description": "Whitespace sensitivity in HTML, Vue, Handlebars and XML. `strict` for XML.",
|
|
616
|
+
"enum": ["strict", "auto", "ignore"],
|
|
617
|
+
"type": "string"
|
|
618
|
+
},
|
|
619
|
+
"width": {
|
|
620
|
+
"default": 80,
|
|
621
|
+
"description": "The line width the printer fits to. 120 for Dockerfiles.",
|
|
622
|
+
"minimum": 0,
|
|
623
|
+
"type": "integer"
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
"type": "object"
|
|
627
|
+
},
|
|
628
|
+
"json": {
|
|
629
|
+
"additionalProperties": false,
|
|
630
|
+
"description": "Options for json only.",
|
|
631
|
+
"properties": {
|
|
632
|
+
"bracketSameLine": {
|
|
633
|
+
"default": false,
|
|
634
|
+
"description": "Keep the `>` of a multi-line tag on the last line.",
|
|
635
|
+
"type": "boolean"
|
|
636
|
+
},
|
|
637
|
+
"bracketSpacing": {
|
|
638
|
+
"default": true,
|
|
639
|
+
"description": "Spaces inside the braces of JSON and JS objects, and YAML flow mappings.",
|
|
640
|
+
"type": "boolean"
|
|
641
|
+
},
|
|
642
|
+
"embedded": {
|
|
643
|
+
"default": true,
|
|
644
|
+
"description": "Format the code of other languages inside a file.",
|
|
645
|
+
"type": "boolean"
|
|
646
|
+
},
|
|
647
|
+
"eol": {
|
|
648
|
+
"default": "lf",
|
|
649
|
+
"description": "The line ending to write.",
|
|
650
|
+
"enum": ["lf", "crlf", "cr"],
|
|
651
|
+
"type": "string"
|
|
652
|
+
},
|
|
653
|
+
"ignore": {
|
|
654
|
+
"default": "prettier-ignore",
|
|
655
|
+
"description": "The name of the ignore directive.",
|
|
656
|
+
"type": "string"
|
|
657
|
+
},
|
|
658
|
+
"indent": {
|
|
659
|
+
"default": 2,
|
|
660
|
+
"description": "The width of one indent.",
|
|
661
|
+
"minimum": 0,
|
|
662
|
+
"type": "integer"
|
|
663
|
+
},
|
|
664
|
+
"objectWrap": {
|
|
665
|
+
"default": "preserve",
|
|
666
|
+
"description": "Keep an object expanded when the source had a line break after `{`.",
|
|
667
|
+
"enum": ["preserve", "collapse"],
|
|
668
|
+
"type": "string"
|
|
669
|
+
},
|
|
670
|
+
"quote": {
|
|
671
|
+
"default": "double",
|
|
672
|
+
"description": "Quotes in Handlebars, style sheets, JSON5, YAML and JS.",
|
|
673
|
+
"enum": ["double", "single"],
|
|
674
|
+
"type": "string"
|
|
675
|
+
},
|
|
676
|
+
"quoteProps": {
|
|
677
|
+
"default": "as-needed",
|
|
678
|
+
"description": "When to quote the keys of an object.",
|
|
679
|
+
"enum": ["as-needed", "consistent", "preserve"],
|
|
680
|
+
"type": "string"
|
|
681
|
+
},
|
|
682
|
+
"singleAttributePerLine": {
|
|
683
|
+
"default": false,
|
|
684
|
+
"description": "Put each attribute on its own line.",
|
|
685
|
+
"type": "boolean"
|
|
686
|
+
},
|
|
687
|
+
"tabs": {
|
|
688
|
+
"default": false,
|
|
689
|
+
"description": "Indent with tabs.",
|
|
690
|
+
"type": "boolean"
|
|
691
|
+
},
|
|
692
|
+
"trailingComma": {
|
|
693
|
+
"default": true,
|
|
694
|
+
"description": "Trailing commas in SCSS, JSONC, JSON5, YAML flow collections, TOML arrays and JS.",
|
|
695
|
+
"type": "boolean"
|
|
696
|
+
},
|
|
697
|
+
"whitespace": {
|
|
698
|
+
"default": "auto",
|
|
699
|
+
"description": "Whitespace sensitivity in HTML, Vue, Handlebars and XML. `strict` for XML.",
|
|
700
|
+
"enum": ["strict", "auto", "ignore"],
|
|
701
|
+
"type": "string"
|
|
702
|
+
},
|
|
703
|
+
"width": {
|
|
704
|
+
"default": 80,
|
|
705
|
+
"description": "The line width the printer fits to. 120 for Dockerfiles.",
|
|
706
|
+
"minimum": 0,
|
|
707
|
+
"type": "integer"
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
"type": "object"
|
|
711
|
+
},
|
|
712
|
+
"markdown": {
|
|
713
|
+
"additionalProperties": false,
|
|
714
|
+
"description": "Options for markdown only.",
|
|
715
|
+
"properties": {
|
|
716
|
+
"bracketSameLine": {
|
|
717
|
+
"default": false,
|
|
718
|
+
"description": "Keep the `>` of a multi-line tag on the last line.",
|
|
719
|
+
"type": "boolean"
|
|
720
|
+
},
|
|
721
|
+
"bracketSpacing": {
|
|
722
|
+
"default": true,
|
|
723
|
+
"description": "Spaces inside the braces of JSON and JS objects, and YAML flow mappings.",
|
|
724
|
+
"type": "boolean"
|
|
725
|
+
},
|
|
726
|
+
"bullet": {
|
|
727
|
+
"default": "dash",
|
|
728
|
+
"description": "The marker of a bullet list item.",
|
|
729
|
+
"enum": ["keep", "dash", "asterisk", "plus"],
|
|
730
|
+
"type": "string"
|
|
731
|
+
},
|
|
732
|
+
"embedded": {
|
|
733
|
+
"default": true,
|
|
734
|
+
"description": "Format the code of other languages inside a file.",
|
|
735
|
+
"type": "boolean"
|
|
736
|
+
},
|
|
737
|
+
"emphasis": {
|
|
738
|
+
"default": "underscore",
|
|
739
|
+
"description": "The delimiter of emphasis.",
|
|
740
|
+
"enum": ["keep", "underscore", "asterisk"],
|
|
741
|
+
"type": "string"
|
|
742
|
+
},
|
|
743
|
+
"eol": {
|
|
744
|
+
"default": "lf",
|
|
745
|
+
"description": "The line ending to write.",
|
|
746
|
+
"enum": ["lf", "crlf", "cr"],
|
|
747
|
+
"type": "string"
|
|
748
|
+
},
|
|
749
|
+
"fence": {
|
|
750
|
+
"default": "backtick",
|
|
751
|
+
"description": "The fence of a code block.",
|
|
752
|
+
"enum": ["keep", "backtick", "tilde"],
|
|
753
|
+
"type": "string"
|
|
754
|
+
},
|
|
755
|
+
"heading": {
|
|
756
|
+
"default": "keep",
|
|
757
|
+
"description": "Turn setext headings into `#` prefixes.",
|
|
758
|
+
"enum": ["keep", "atx"],
|
|
759
|
+
"type": "string"
|
|
760
|
+
},
|
|
761
|
+
"ignore": {
|
|
762
|
+
"default": "prettier-ignore",
|
|
763
|
+
"description": "The name of the ignore directive.",
|
|
764
|
+
"type": "string"
|
|
765
|
+
},
|
|
766
|
+
"indent": {
|
|
767
|
+
"default": 2,
|
|
768
|
+
"description": "The width of one indent.",
|
|
769
|
+
"minimum": 0,
|
|
770
|
+
"type": "integer"
|
|
771
|
+
},
|
|
772
|
+
"numbering": {
|
|
773
|
+
"default": "auto",
|
|
774
|
+
"description": "The numbers of ordered list items.",
|
|
775
|
+
"enum": ["keep", "auto"],
|
|
776
|
+
"type": "string"
|
|
777
|
+
},
|
|
778
|
+
"preset": {
|
|
779
|
+
"default": "prettier",
|
|
780
|
+
"description": "A starting set of the marker options below.",
|
|
781
|
+
"enum": ["prettier", "preserve"],
|
|
782
|
+
"type": "string"
|
|
783
|
+
},
|
|
784
|
+
"quote": {
|
|
785
|
+
"default": "double",
|
|
786
|
+
"description": "Quotes in Handlebars, style sheets, JSON5, YAML and JS.",
|
|
787
|
+
"enum": ["double", "single"],
|
|
788
|
+
"type": "string"
|
|
789
|
+
},
|
|
790
|
+
"rule": {
|
|
791
|
+
"default": "dash",
|
|
792
|
+
"description": "The characters of a thematic break.",
|
|
793
|
+
"enum": ["keep", "dash", "asterisk", "underscore"],
|
|
794
|
+
"type": "string"
|
|
795
|
+
},
|
|
796
|
+
"singleAttributePerLine": {
|
|
797
|
+
"default": false,
|
|
798
|
+
"description": "Put each attribute on its own line.",
|
|
799
|
+
"type": "boolean"
|
|
800
|
+
},
|
|
801
|
+
"strong": {
|
|
802
|
+
"default": "asterisk",
|
|
803
|
+
"description": "The delimiter of strong emphasis.",
|
|
804
|
+
"enum": ["keep", "asterisk", "underscore"],
|
|
805
|
+
"type": "string"
|
|
806
|
+
},
|
|
807
|
+
"tabs": {
|
|
808
|
+
"default": false,
|
|
809
|
+
"description": "Indent with tabs.",
|
|
810
|
+
"type": "boolean"
|
|
811
|
+
},
|
|
812
|
+
"trailingComma": {
|
|
813
|
+
"default": true,
|
|
814
|
+
"description": "Trailing commas in SCSS, JSONC, JSON5, YAML flow collections, TOML arrays and JS.",
|
|
815
|
+
"type": "boolean"
|
|
816
|
+
},
|
|
817
|
+
"whitespace": {
|
|
818
|
+
"default": "auto",
|
|
819
|
+
"description": "Whitespace sensitivity in HTML, Vue, Handlebars and XML. `strict` for XML.",
|
|
820
|
+
"enum": ["strict", "auto", "ignore"],
|
|
821
|
+
"type": "string"
|
|
822
|
+
},
|
|
823
|
+
"width": {
|
|
824
|
+
"default": 80,
|
|
825
|
+
"description": "The line width the printer fits to. 120 for Dockerfiles.",
|
|
826
|
+
"minimum": 0,
|
|
827
|
+
"type": "integer"
|
|
828
|
+
},
|
|
829
|
+
"wrap": {
|
|
830
|
+
"default": "preserve",
|
|
831
|
+
"description": "How to wrap prose.",
|
|
832
|
+
"enum": ["preserve", "always", "never"],
|
|
833
|
+
"type": "string"
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
"type": "object"
|
|
837
|
+
},
|
|
838
|
+
"quote": {
|
|
839
|
+
"default": "double",
|
|
840
|
+
"description": "Quotes in Handlebars, style sheets, JSON5, YAML and JS.",
|
|
841
|
+
"enum": ["double", "single"],
|
|
842
|
+
"type": "string"
|
|
843
|
+
},
|
|
844
|
+
"singleAttributePerLine": {
|
|
845
|
+
"default": false,
|
|
846
|
+
"description": "Put each attribute on its own line.",
|
|
847
|
+
"type": "boolean"
|
|
848
|
+
},
|
|
849
|
+
"tabs": {
|
|
850
|
+
"default": false,
|
|
851
|
+
"description": "Indent with tabs.",
|
|
852
|
+
"type": "boolean"
|
|
853
|
+
},
|
|
854
|
+
"toml": {
|
|
855
|
+
"additionalProperties": false,
|
|
856
|
+
"description": "Options for toml only.",
|
|
857
|
+
"properties": {
|
|
858
|
+
"alignComments": {
|
|
859
|
+
"default": true,
|
|
860
|
+
"description": "Align the comments after consecutive entries.",
|
|
861
|
+
"type": "boolean"
|
|
862
|
+
},
|
|
863
|
+
"alignEntries": {
|
|
864
|
+
"default": false,
|
|
865
|
+
"description": "Align the values of consecutive entries.",
|
|
866
|
+
"type": "boolean"
|
|
867
|
+
},
|
|
868
|
+
"alignSingleComments": {
|
|
869
|
+
"default": true,
|
|
870
|
+
"description": "Align a comment that stands alone.",
|
|
871
|
+
"type": "boolean"
|
|
872
|
+
},
|
|
873
|
+
"allowedBlankLines": {
|
|
874
|
+
"default": 2,
|
|
875
|
+
"description": "How many blank lines to keep in a row.",
|
|
876
|
+
"minimum": 0,
|
|
877
|
+
"type": "integer"
|
|
878
|
+
},
|
|
879
|
+
"arrayAutoCollapse": {
|
|
880
|
+
"default": true,
|
|
881
|
+
"description": "Collapse an array that fits the line width.",
|
|
882
|
+
"type": "boolean"
|
|
883
|
+
},
|
|
884
|
+
"arrayAutoExpand": {
|
|
885
|
+
"default": true,
|
|
886
|
+
"description": "Expand an array that does not fit the line width.",
|
|
887
|
+
"type": "boolean"
|
|
888
|
+
},
|
|
889
|
+
"bracketSameLine": {
|
|
890
|
+
"default": false,
|
|
891
|
+
"description": "Keep the `>` of a multi-line tag on the last line.",
|
|
892
|
+
"type": "boolean"
|
|
893
|
+
},
|
|
894
|
+
"bracketSpacing": {
|
|
895
|
+
"default": true,
|
|
896
|
+
"description": "Spaces inside the braces of JSON and JS objects, and YAML flow mappings.",
|
|
897
|
+
"type": "boolean"
|
|
898
|
+
},
|
|
899
|
+
"compactArrays": {
|
|
900
|
+
"default": true,
|
|
901
|
+
"description": "No spaces inside the brackets of an array.",
|
|
902
|
+
"type": "boolean"
|
|
903
|
+
},
|
|
904
|
+
"compactEntries": {
|
|
905
|
+
"default": false,
|
|
906
|
+
"description": "No spaces around the `=` of an entry.",
|
|
907
|
+
"type": "boolean"
|
|
908
|
+
},
|
|
909
|
+
"compactInlineTables": {
|
|
910
|
+
"default": false,
|
|
911
|
+
"description": "No spaces inside the braces of an inline table.",
|
|
912
|
+
"type": "boolean"
|
|
913
|
+
},
|
|
914
|
+
"embedded": {
|
|
915
|
+
"default": true,
|
|
916
|
+
"description": "Format the code of other languages inside a file.",
|
|
917
|
+
"type": "boolean"
|
|
918
|
+
},
|
|
919
|
+
"eol": {
|
|
920
|
+
"default": "lf",
|
|
921
|
+
"description": "The line ending to write.",
|
|
922
|
+
"enum": ["lf", "crlf", "cr"],
|
|
923
|
+
"type": "string"
|
|
924
|
+
},
|
|
925
|
+
"ignore": {
|
|
926
|
+
"default": "prettier-ignore",
|
|
927
|
+
"description": "The name of the ignore directive.",
|
|
928
|
+
"type": "string"
|
|
929
|
+
},
|
|
930
|
+
"indent": {
|
|
931
|
+
"default": 2,
|
|
932
|
+
"description": "The width of one indent.",
|
|
933
|
+
"minimum": 0,
|
|
934
|
+
"type": "integer"
|
|
935
|
+
},
|
|
936
|
+
"indentEntries": {
|
|
937
|
+
"default": false,
|
|
938
|
+
"description": "Indent entries under their table header.",
|
|
939
|
+
"type": "boolean"
|
|
940
|
+
},
|
|
941
|
+
"indentTables": {
|
|
942
|
+
"default": false,
|
|
943
|
+
"description": "Indent the entries of a table.",
|
|
944
|
+
"type": "boolean"
|
|
945
|
+
},
|
|
946
|
+
"inlineTableExpand": {
|
|
947
|
+
"default": true,
|
|
948
|
+
"description": "Expand an inline table onto several lines.",
|
|
949
|
+
"type": "boolean"
|
|
950
|
+
},
|
|
951
|
+
"quote": {
|
|
952
|
+
"default": "double",
|
|
953
|
+
"description": "Quotes in Handlebars, style sheets, JSON5, YAML and JS.",
|
|
954
|
+
"enum": ["double", "single"],
|
|
955
|
+
"type": "string"
|
|
956
|
+
},
|
|
957
|
+
"reorderArrays": {
|
|
958
|
+
"default": false,
|
|
959
|
+
"description": "Sort the values of each array.",
|
|
960
|
+
"type": "boolean"
|
|
961
|
+
},
|
|
962
|
+
"reorderInlineTables": {
|
|
963
|
+
"default": false,
|
|
964
|
+
"description": "Sort the keys of each inline table.",
|
|
965
|
+
"type": "boolean"
|
|
966
|
+
},
|
|
967
|
+
"reorderKeys": {
|
|
968
|
+
"default": false,
|
|
969
|
+
"description": "Sort the keys of each table.",
|
|
970
|
+
"type": "boolean"
|
|
971
|
+
},
|
|
972
|
+
"singleAttributePerLine": {
|
|
973
|
+
"default": false,
|
|
974
|
+
"description": "Put each attribute on its own line.",
|
|
975
|
+
"type": "boolean"
|
|
976
|
+
},
|
|
977
|
+
"tabs": {
|
|
978
|
+
"default": false,
|
|
979
|
+
"description": "Indent with tabs.",
|
|
980
|
+
"type": "boolean"
|
|
981
|
+
},
|
|
982
|
+
"trailingComma": {
|
|
983
|
+
"default": true,
|
|
984
|
+
"description": "Trailing commas in SCSS, JSONC, JSON5, YAML flow collections, TOML arrays and JS.",
|
|
985
|
+
"type": "boolean"
|
|
986
|
+
},
|
|
987
|
+
"trailingNewline": {
|
|
988
|
+
"default": true,
|
|
989
|
+
"description": "End the file with a line break.",
|
|
990
|
+
"type": "boolean"
|
|
991
|
+
},
|
|
992
|
+
"whitespace": {
|
|
993
|
+
"default": "auto",
|
|
994
|
+
"description": "Whitespace sensitivity in HTML, Vue, Handlebars and XML. `strict` for XML.",
|
|
995
|
+
"enum": ["strict", "auto", "ignore"],
|
|
996
|
+
"type": "string"
|
|
997
|
+
},
|
|
998
|
+
"width": {
|
|
999
|
+
"default": 80,
|
|
1000
|
+
"description": "The line width the printer fits to. 120 for Dockerfiles.",
|
|
1001
|
+
"minimum": 0,
|
|
1002
|
+
"type": "integer"
|
|
1003
|
+
}
|
|
1004
|
+
},
|
|
1005
|
+
"type": "object"
|
|
1006
|
+
},
|
|
1007
|
+
"trailingComma": {
|
|
1008
|
+
"default": true,
|
|
1009
|
+
"description": "Trailing commas in SCSS, JSONC, JSON5, YAML flow collections, TOML arrays and JS.",
|
|
1010
|
+
"type": "boolean"
|
|
1011
|
+
},
|
|
1012
|
+
"vue": {
|
|
1013
|
+
"additionalProperties": false,
|
|
1014
|
+
"description": "Options for vue only.",
|
|
1015
|
+
"properties": {
|
|
1016
|
+
"bracketSameLine": {
|
|
1017
|
+
"default": false,
|
|
1018
|
+
"description": "Keep the `>` of a multi-line tag on the last line.",
|
|
1019
|
+
"type": "boolean"
|
|
1020
|
+
},
|
|
1021
|
+
"bracketSpacing": {
|
|
1022
|
+
"default": true,
|
|
1023
|
+
"description": "Spaces inside the braces of JSON and JS objects, and YAML flow mappings.",
|
|
1024
|
+
"type": "boolean"
|
|
1025
|
+
},
|
|
1026
|
+
"embedded": {
|
|
1027
|
+
"default": true,
|
|
1028
|
+
"description": "Format the code of other languages inside a file.",
|
|
1029
|
+
"type": "boolean"
|
|
1030
|
+
},
|
|
1031
|
+
"eol": {
|
|
1032
|
+
"default": "lf",
|
|
1033
|
+
"description": "The line ending to write.",
|
|
1034
|
+
"enum": ["lf", "crlf", "cr"],
|
|
1035
|
+
"type": "string"
|
|
1036
|
+
},
|
|
1037
|
+
"ignore": {
|
|
1038
|
+
"default": "prettier-ignore",
|
|
1039
|
+
"description": "The name of the ignore directive.",
|
|
1040
|
+
"type": "string"
|
|
1041
|
+
},
|
|
1042
|
+
"indent": {
|
|
1043
|
+
"default": 2,
|
|
1044
|
+
"description": "The width of one indent.",
|
|
1045
|
+
"minimum": 0,
|
|
1046
|
+
"type": "integer"
|
|
1047
|
+
},
|
|
1048
|
+
"indentBlocks": {
|
|
1049
|
+
"default": false,
|
|
1050
|
+
"description": "Indent the contents of `<script>` and `<style>`.",
|
|
1051
|
+
"type": "boolean"
|
|
1052
|
+
},
|
|
1053
|
+
"quote": {
|
|
1054
|
+
"default": "double",
|
|
1055
|
+
"description": "Quotes in Handlebars, style sheets, JSON5, YAML and JS.",
|
|
1056
|
+
"enum": ["double", "single"],
|
|
1057
|
+
"type": "string"
|
|
1058
|
+
},
|
|
1059
|
+
"singleAttributePerLine": {
|
|
1060
|
+
"default": false,
|
|
1061
|
+
"description": "Put each attribute on its own line.",
|
|
1062
|
+
"type": "boolean"
|
|
1063
|
+
},
|
|
1064
|
+
"tabs": {
|
|
1065
|
+
"default": false,
|
|
1066
|
+
"description": "Indent with tabs.",
|
|
1067
|
+
"type": "boolean"
|
|
1068
|
+
},
|
|
1069
|
+
"trailingComma": {
|
|
1070
|
+
"default": true,
|
|
1071
|
+
"description": "Trailing commas in SCSS, JSONC, JSON5, YAML flow collections, TOML arrays and JS.",
|
|
1072
|
+
"type": "boolean"
|
|
1073
|
+
},
|
|
1074
|
+
"whitespace": {
|
|
1075
|
+
"default": "auto",
|
|
1076
|
+
"description": "Whitespace sensitivity in HTML, Vue, Handlebars and XML. `strict` for XML.",
|
|
1077
|
+
"enum": ["strict", "auto", "ignore"],
|
|
1078
|
+
"type": "string"
|
|
1079
|
+
},
|
|
1080
|
+
"width": {
|
|
1081
|
+
"default": 80,
|
|
1082
|
+
"description": "The line width the printer fits to. 120 for Dockerfiles.",
|
|
1083
|
+
"minimum": 0,
|
|
1084
|
+
"type": "integer"
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
"type": "object"
|
|
1088
|
+
},
|
|
1089
|
+
"whitespace": {
|
|
1090
|
+
"default": "auto",
|
|
1091
|
+
"description": "Whitespace sensitivity in HTML, Vue, Handlebars and XML. `strict` for XML.",
|
|
1092
|
+
"enum": ["strict", "auto", "ignore"],
|
|
1093
|
+
"type": "string"
|
|
1094
|
+
},
|
|
1095
|
+
"width": {
|
|
1096
|
+
"default": 80,
|
|
1097
|
+
"description": "The line width the printer fits to. 120 for Dockerfiles.",
|
|
1098
|
+
"minimum": 0,
|
|
1099
|
+
"type": "integer"
|
|
1100
|
+
},
|
|
1101
|
+
"xml": {
|
|
1102
|
+
"additionalProperties": false,
|
|
1103
|
+
"description": "Options for xml only.",
|
|
1104
|
+
"properties": {
|
|
1105
|
+
"attributeQuotes": {
|
|
1106
|
+
"default": "preserve",
|
|
1107
|
+
"description": "Which quotes to write around an attribute value.",
|
|
1108
|
+
"enum": ["preserve", "single", "double"],
|
|
1109
|
+
"type": "string"
|
|
1110
|
+
},
|
|
1111
|
+
"bracketSameLine": {
|
|
1112
|
+
"default": false,
|
|
1113
|
+
"description": "Keep the `>` of a multi-line tag on the last line.",
|
|
1114
|
+
"type": "boolean"
|
|
1115
|
+
},
|
|
1116
|
+
"bracketSpacing": {
|
|
1117
|
+
"default": true,
|
|
1118
|
+
"description": "Spaces inside the braces of JSON and JS objects, and YAML flow mappings.",
|
|
1119
|
+
"type": "boolean"
|
|
1120
|
+
},
|
|
1121
|
+
"embedded": {
|
|
1122
|
+
"default": true,
|
|
1123
|
+
"description": "Format the code of other languages inside a file.",
|
|
1124
|
+
"type": "boolean"
|
|
1125
|
+
},
|
|
1126
|
+
"eol": {
|
|
1127
|
+
"default": "lf",
|
|
1128
|
+
"description": "The line ending to write.",
|
|
1129
|
+
"enum": ["lf", "crlf", "cr"],
|
|
1130
|
+
"type": "string"
|
|
1131
|
+
},
|
|
1132
|
+
"ignore": {
|
|
1133
|
+
"default": "prettier-ignore",
|
|
1134
|
+
"description": "The name of the ignore directive.",
|
|
1135
|
+
"type": "string"
|
|
1136
|
+
},
|
|
1137
|
+
"indent": {
|
|
1138
|
+
"default": 2,
|
|
1139
|
+
"description": "The width of one indent.",
|
|
1140
|
+
"minimum": 0,
|
|
1141
|
+
"type": "integer"
|
|
1142
|
+
},
|
|
1143
|
+
"quote": {
|
|
1144
|
+
"default": "double",
|
|
1145
|
+
"description": "Quotes in Handlebars, style sheets, JSON5, YAML and JS.",
|
|
1146
|
+
"enum": ["double", "single"],
|
|
1147
|
+
"type": "string"
|
|
1148
|
+
},
|
|
1149
|
+
"selfClosingSpace": {
|
|
1150
|
+
"default": true,
|
|
1151
|
+
"description": "A space before the `/>` of a self-closing tag.",
|
|
1152
|
+
"type": "boolean"
|
|
1153
|
+
},
|
|
1154
|
+
"singleAttributePerLine": {
|
|
1155
|
+
"default": false,
|
|
1156
|
+
"description": "Put each attribute on its own line.",
|
|
1157
|
+
"type": "boolean"
|
|
1158
|
+
},
|
|
1159
|
+
"sortAttributes": {
|
|
1160
|
+
"default": false,
|
|
1161
|
+
"description": "Sort attributes by name.",
|
|
1162
|
+
"type": "boolean"
|
|
1163
|
+
},
|
|
1164
|
+
"tabs": {
|
|
1165
|
+
"default": false,
|
|
1166
|
+
"description": "Indent with tabs.",
|
|
1167
|
+
"type": "boolean"
|
|
1168
|
+
},
|
|
1169
|
+
"trailingComma": {
|
|
1170
|
+
"default": true,
|
|
1171
|
+
"description": "Trailing commas in SCSS, JSONC, JSON5, YAML flow collections, TOML arrays and JS.",
|
|
1172
|
+
"type": "boolean"
|
|
1173
|
+
},
|
|
1174
|
+
"whitespace": {
|
|
1175
|
+
"default": "auto",
|
|
1176
|
+
"description": "Whitespace sensitivity in HTML, Vue, Handlebars and XML. `strict` for XML.",
|
|
1177
|
+
"enum": ["strict", "auto", "ignore"],
|
|
1178
|
+
"type": "string"
|
|
1179
|
+
},
|
|
1180
|
+
"width": {
|
|
1181
|
+
"default": 80,
|
|
1182
|
+
"description": "The line width the printer fits to. 120 for Dockerfiles.",
|
|
1183
|
+
"minimum": 0,
|
|
1184
|
+
"type": "integer"
|
|
1185
|
+
}
|
|
1186
|
+
},
|
|
1187
|
+
"type": "object"
|
|
1188
|
+
},
|
|
1189
|
+
"yaml": {
|
|
1190
|
+
"additionalProperties": false,
|
|
1191
|
+
"description": "Options for yaml only.",
|
|
1192
|
+
"properties": {
|
|
1193
|
+
"bracketSameLine": {
|
|
1194
|
+
"default": false,
|
|
1195
|
+
"description": "Keep the `>` of a multi-line tag on the last line.",
|
|
1196
|
+
"type": "boolean"
|
|
1197
|
+
},
|
|
1198
|
+
"bracketSpacing": {
|
|
1199
|
+
"default": true,
|
|
1200
|
+
"description": "Spaces inside the braces of JSON and JS objects, and YAML flow mappings.",
|
|
1201
|
+
"type": "boolean"
|
|
1202
|
+
},
|
|
1203
|
+
"embedded": {
|
|
1204
|
+
"default": true,
|
|
1205
|
+
"description": "Format the code of other languages inside a file.",
|
|
1206
|
+
"type": "boolean"
|
|
1207
|
+
},
|
|
1208
|
+
"eol": {
|
|
1209
|
+
"default": "lf",
|
|
1210
|
+
"description": "The line ending to write.",
|
|
1211
|
+
"enum": ["lf", "crlf", "cr"],
|
|
1212
|
+
"type": "string"
|
|
1213
|
+
},
|
|
1214
|
+
"ignore": {
|
|
1215
|
+
"default": "prettier-ignore",
|
|
1216
|
+
"description": "The name of the ignore directive.",
|
|
1217
|
+
"type": "string"
|
|
1218
|
+
},
|
|
1219
|
+
"indent": {
|
|
1220
|
+
"default": 2,
|
|
1221
|
+
"description": "The width of one indent.",
|
|
1222
|
+
"minimum": 0,
|
|
1223
|
+
"type": "integer"
|
|
1224
|
+
},
|
|
1225
|
+
"quote": {
|
|
1226
|
+
"default": "double",
|
|
1227
|
+
"description": "Quotes in Handlebars, style sheets, JSON5, YAML and JS.",
|
|
1228
|
+
"enum": ["double", "single"],
|
|
1229
|
+
"type": "string"
|
|
1230
|
+
},
|
|
1231
|
+
"singleAttributePerLine": {
|
|
1232
|
+
"default": false,
|
|
1233
|
+
"description": "Put each attribute on its own line.",
|
|
1234
|
+
"type": "boolean"
|
|
1235
|
+
},
|
|
1236
|
+
"tabs": {
|
|
1237
|
+
"default": false,
|
|
1238
|
+
"description": "Indent with tabs.",
|
|
1239
|
+
"type": "boolean"
|
|
1240
|
+
},
|
|
1241
|
+
"trailingComma": {
|
|
1242
|
+
"default": true,
|
|
1243
|
+
"description": "Trailing commas in SCSS, JSONC, JSON5, YAML flow collections, TOML arrays and JS.",
|
|
1244
|
+
"type": "boolean"
|
|
1245
|
+
},
|
|
1246
|
+
"whitespace": {
|
|
1247
|
+
"default": "auto",
|
|
1248
|
+
"description": "Whitespace sensitivity in HTML, Vue, Handlebars and XML. `strict` for XML.",
|
|
1249
|
+
"enum": ["strict", "auto", "ignore"],
|
|
1250
|
+
"type": "string"
|
|
1251
|
+
},
|
|
1252
|
+
"width": {
|
|
1253
|
+
"default": 80,
|
|
1254
|
+
"description": "The line width the printer fits to. 120 for Dockerfiles.",
|
|
1255
|
+
"minimum": 0,
|
|
1256
|
+
"type": "integer"
|
|
1257
|
+
},
|
|
1258
|
+
"wrap": {
|
|
1259
|
+
"default": "preserve",
|
|
1260
|
+
"description": "How to wrap prose.",
|
|
1261
|
+
"enum": ["preserve", "always", "never"],
|
|
1262
|
+
"type": "string"
|
|
1263
|
+
}
|
|
1264
|
+
},
|
|
1265
|
+
"type": "object"
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1268
|
+
"title": "tidy",
|
|
1269
|
+
"type": "object"
|
|
1270
|
+
}
|