@ben_12/eslint-plugin-dprint 0.7.1 → 0.8.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.
@@ -4,700 +4,1302 @@
4
4
  "useTabs": {
5
5
  "description": "Whether to use tabs (true) or spaces (false).",
6
6
  "type": "boolean",
7
- "oneOf": [{
8
- "enum": [true],
9
- "description": "Uses tabs for indentation."
10
- }, {
11
- "enum": [false],
12
- "description": "Uses spaces for indentation."
13
- }]
7
+ "oneOf": [
8
+ {
9
+ "description": "Uses tabs for indentation.",
10
+ "type": "boolean",
11
+ "enum": [
12
+ true
13
+ ]
14
+ },
15
+ {
16
+ "description": "Uses spaces for indentation.",
17
+ "type": "boolean",
18
+ "enum": [
19
+ false
20
+ ]
21
+ }
22
+ ]
14
23
  },
15
24
  "semiColons": {
16
25
  "description": "How semi-colons should be used.",
17
26
  "type": "string",
18
- "oneOf": [{
19
- "enum": ["always"],
20
- "description": "Always uses semi-colons where applicable."
21
- }, {
22
- "enum": ["prefer"],
23
- "description": "Prefers semi-colons, but doesn't add one in certain scenarios such as for the last member of a single-line type literal."
24
- }, {
25
- "enum": ["asi"],
26
- "description": "Uses automatic semi-colon insertion. Only adds a semi-colon at the start of some expression statements when necessary. Read more: https://standardjs.com/rules.html#semicolons"
27
- }]
27
+ "oneOf": [
28
+ {
29
+ "description": "Always uses semi-colons where applicable.",
30
+ "type": "string",
31
+ "enum": [
32
+ "always"
33
+ ]
34
+ },
35
+ {
36
+ "description": "Prefers semi-colons, but doesn't add one in certain scenarios such as for the last member of a single-line type literal.",
37
+ "type": "string",
38
+ "enum": [
39
+ "prefer"
40
+ ]
41
+ },
42
+ {
43
+ "description": "Uses automatic semi-colon insertion. Only adds a semi-colon at the start of some expression statements when necessary. Read more: https://standardjs.com/rules.html#semicolons",
44
+ "type": "string",
45
+ "enum": [
46
+ "asi"
47
+ ]
48
+ }
49
+ ]
28
50
  },
29
51
  "quoteStyle": {
30
52
  "description": "How to use single or double quotes.",
31
53
  "type": "string",
32
- "oneOf": [{
33
- "enum": ["alwaysDouble"],
34
- "description": "Always uses double quotes."
35
- }, {
36
- "enum": ["alwaysSingle"],
37
- "description": "Always uses single quotes."
38
- }, {
39
- "enum": ["preferDouble"],
40
- "description": "Prefers using double quotes except in scenarios where the string contains more double quotes than single quotes."
41
- }, {
42
- "enum": ["preferSingle"],
43
- "description": "Prefers using single quotes except in scenarios where the string contains more single quotes than double quotes."
44
- }]
54
+ "oneOf": [
55
+ {
56
+ "description": "Always uses double quotes.",
57
+ "type": "string",
58
+ "enum": [
59
+ "alwaysDouble"
60
+ ]
61
+ },
62
+ {
63
+ "description": "Always uses single quotes.",
64
+ "type": "string",
65
+ "enum": [
66
+ "alwaysSingle"
67
+ ]
68
+ },
69
+ {
70
+ "description": "Prefers using double quotes except in scenarios where the string contains more double quotes than single quotes.",
71
+ "type": "string",
72
+ "enum": [
73
+ "preferDouble"
74
+ ]
75
+ },
76
+ {
77
+ "description": "Prefers using single quotes except in scenarios where the string contains more single quotes than double quotes.",
78
+ "type": "string",
79
+ "enum": [
80
+ "preferSingle"
81
+ ]
82
+ }
83
+ ]
45
84
  },
46
85
  "jsx.quoteStyle": {
47
86
  "description": "How to use single or double quotes in JSX attributes.",
48
87
  "type": "string",
49
- "oneOf": [{
50
- "enum": ["preferDouble"],
51
- "description": "Prefers using double quotes except in scenarios where the string contains more double quotes than single quotes."
52
- }, {
53
- "enum": ["preferSingle"],
54
- "description": "Prefers using single quotes except in scenarios where the string contains more single quotes than double quotes."
55
- }]
88
+ "oneOf": [
89
+ {
90
+ "description": "Prefers using double quotes except in scenarios where the string contains more double quotes than single quotes.",
91
+ "type": "string",
92
+ "enum": [
93
+ "preferDouble"
94
+ ]
95
+ },
96
+ {
97
+ "description": "Prefers using single quotes except in scenarios where the string contains more single quotes than double quotes.",
98
+ "type": "string",
99
+ "enum": [
100
+ "preferSingle"
101
+ ]
102
+ }
103
+ ]
56
104
  },
57
105
  "quoteProps": {
58
106
  "description": "Change when properties in objects are quoted.",
59
107
  "type": "string",
60
- "oneOf": [{
61
- "enum": ["asNeeded"],
62
- "description": "Remove unnecessary quotes around property names."
63
- }, {
64
- "enum": ["consistent"],
65
- "description": "Same as 'asNeeded', but if one property requires quotes then quote them all."
66
- }, {
67
- "enum": ["preserve"],
68
- "description": "Preserve quotes around property names."
69
- }]
108
+ "oneOf": [
109
+ {
110
+ "description": "Remove unnecessary quotes around property names.",
111
+ "type": "string",
112
+ "enum": [
113
+ "asNeeded"
114
+ ]
115
+ },
116
+ {
117
+ "description": "Same as 'asNeeded', but if one property requires quotes then quote them all.",
118
+ "type": "string",
119
+ "enum": [
120
+ "consistent"
121
+ ]
122
+ },
123
+ {
124
+ "description": "Preserve quotes around property names.",
125
+ "type": "string",
126
+ "enum": [
127
+ "preserve"
128
+ ]
129
+ }
130
+ ]
70
131
  },
71
132
  "jsx.multiLineParens": {
72
133
  "description": "Surrounds the top-most JSX element or fragment in parentheses when it spans multiple lines.",
73
134
  "type": "string",
74
- "oneOf": [{
75
- "enum": ["never"],
76
- "description": "Never wrap JSX with parentheses."
77
- }, {
78
- "enum": ["prefer"],
79
- "description": "Prefer wrapping with parentheses in most scenarios, except in function arguments and JSX attributes."
80
- }, {
81
- "enum": ["always"],
82
- "description": "Always wrap JSX with parentheses if it spans multiple lines."
83
- }]
135
+ "oneOf": [
136
+ {
137
+ "description": "Never wrap JSX with parentheses.",
138
+ "type": "string",
139
+ "enum": [
140
+ "never"
141
+ ]
142
+ },
143
+ {
144
+ "description": "Prefer wrapping with parentheses in most scenarios, except in function arguments and JSX attributes.",
145
+ "type": "string",
146
+ "enum": [
147
+ "prefer"
148
+ ]
149
+ },
150
+ {
151
+ "description": "Always wrap JSX with parentheses if it spans multiple lines.",
152
+ "type": "string",
153
+ "enum": [
154
+ "always"
155
+ ]
156
+ }
157
+ ]
84
158
  },
85
159
  "jsx.forceNewLinesSurroundingContent": {
86
160
  "description": "Forces newlines surrounding the content of JSX elements.",
87
161
  "type": "boolean",
88
- "oneOf": [{
89
- "enum": [true],
90
- "description": ""
91
- }, {
92
- "enum": [false],
93
- "description": ""
94
- }]
162
+ "oneOf": [
163
+ {
164
+ "description": "",
165
+ "type": "boolean",
166
+ "enum": [
167
+ true
168
+ ]
169
+ },
170
+ {
171
+ "description": "",
172
+ "type": "boolean",
173
+ "enum": [
174
+ false
175
+ ]
176
+ }
177
+ ]
95
178
  },
96
179
  "jsx.bracketPosition": {
97
180
  "description": "If the end angle bracket of a jsx open element or self closing element should be on the same or next line when the attributes span multiple lines.",
98
181
  "type": "string",
99
- "oneOf": [{
100
- "enum": ["maintain"],
101
- "description": "Maintains the position of the end angle bracket."
102
- }, {
103
- "enum": ["sameLine"],
104
- "description": "Forces the end angle bracket to be on the same line."
105
- }, {
106
- "enum": ["nextLine"],
107
- "description": "Forces the end angle bracket to be on the next line."
108
- }]
182
+ "oneOf": [
183
+ {
184
+ "description": "Maintains the position of the end angle bracket.",
185
+ "type": "string",
186
+ "enum": [
187
+ "maintain"
188
+ ]
189
+ },
190
+ {
191
+ "description": "Forces the end angle bracket to be on the same line.",
192
+ "type": "string",
193
+ "enum": [
194
+ "sameLine"
195
+ ]
196
+ },
197
+ {
198
+ "description": "Forces the end angle bracket to be on the next line.",
199
+ "type": "string",
200
+ "enum": [
201
+ "nextLine"
202
+ ]
203
+ }
204
+ ]
109
205
  },
110
206
  "newLineKind": {
111
207
  "description": "The kind of newline to use.",
112
208
  "type": "string",
113
- "oneOf": [{
114
- "enum": ["auto"],
115
- "description": "For each file, uses the last newline kind found in the file."
116
- }, {
117
- "enum": ["crlf"],
118
- "description": "Uses carriage return, line feed."
119
- }, {
120
- "enum": ["lf"],
121
- "description": "Uses line feed."
122
- }, {
123
- "enum": ["system"],
124
- "description": "Uses the system standard (ex. crlf on Windows)."
125
- }]
209
+ "oneOf": [
210
+ {
211
+ "description": "For each file, uses the last newline kind found in the file.",
212
+ "type": "string",
213
+ "enum": [
214
+ "auto"
215
+ ]
216
+ },
217
+ {
218
+ "description": "Uses carriage return, line feed.",
219
+ "type": "string",
220
+ "enum": [
221
+ "crlf"
222
+ ]
223
+ },
224
+ {
225
+ "description": "Uses line feed.",
226
+ "type": "string",
227
+ "enum": [
228
+ "lf"
229
+ ]
230
+ },
231
+ {
232
+ "description": "Uses the system standard (ex. crlf on Windows).",
233
+ "type": "string",
234
+ "enum": [
235
+ "system"
236
+ ]
237
+ }
238
+ ]
126
239
  },
127
240
  "useBraces": {
128
241
  "description": "If braces should be used or not.",
129
242
  "type": "string",
130
- "oneOf": [{
131
- "enum": ["maintain"],
132
- "description": "Uses braces if they're used. Doesn't use braces if they're not used."
133
- }, {
134
- "enum": ["whenNotSingleLine"],
135
- "description": "Uses braces when the body is on a different line."
136
- }, {
137
- "enum": ["always"],
138
- "description": "Forces the use of braces. Will add them if they aren't used."
139
- }, {
140
- "enum": ["preferNone"],
141
- "description": "Forces no braces when the header is one line and body is one line. Otherwise forces braces."
142
- }]
243
+ "oneOf": [
244
+ {
245
+ "description": "Uses braces if they're used. Doesn't use braces if they're not used.",
246
+ "type": "string",
247
+ "enum": [
248
+ "maintain"
249
+ ]
250
+ },
251
+ {
252
+ "description": "Uses braces when the body is on a different line.",
253
+ "type": "string",
254
+ "enum": [
255
+ "whenNotSingleLine"
256
+ ]
257
+ },
258
+ {
259
+ "description": "Forces the use of braces. Will add them if they aren't used.",
260
+ "type": "string",
261
+ "enum": [
262
+ "always"
263
+ ]
264
+ },
265
+ {
266
+ "description": "Forces no braces when the header is one line and body is one line. Otherwise forces braces.",
267
+ "type": "string",
268
+ "enum": [
269
+ "preferNone"
270
+ ]
271
+ }
272
+ ]
143
273
  },
144
274
  "bracePosition": {
145
275
  "description": "Where to place the opening brace.",
146
276
  "type": "string",
147
- "oneOf": [{
148
- "enum": ["maintain"],
149
- "description": "Maintains the brace being on the next line or the same line."
150
- }, {
151
- "enum": ["sameLine"],
152
- "description": "Forces the brace to be on the same line."
153
- }, {
154
- "enum": ["nextLine"],
155
- "description": "Forces the brace to be on the next line."
156
- }, {
157
- "enum": ["sameLineUnlessHanging"],
158
- "description": "Forces the brace to be on the next line if the same line is hanging, but otherwise uses the same line."
159
- }]
277
+ "oneOf": [
278
+ {
279
+ "description": "Maintains the brace being on the next line or the same line.",
280
+ "type": "string",
281
+ "enum": [
282
+ "maintain"
283
+ ]
284
+ },
285
+ {
286
+ "description": "Forces the brace to be on the same line.",
287
+ "type": "string",
288
+ "enum": [
289
+ "sameLine"
290
+ ]
291
+ },
292
+ {
293
+ "description": "Forces the brace to be on the next line.",
294
+ "type": "string",
295
+ "enum": [
296
+ "nextLine"
297
+ ]
298
+ },
299
+ {
300
+ "description": "Forces the brace to be on the next line if the same line is hanging, but otherwise uses the same line.",
301
+ "type": "string",
302
+ "enum": [
303
+ "sameLineUnlessHanging"
304
+ ]
305
+ }
306
+ ]
160
307
  },
161
308
  "singleBodyPosition": {
162
309
  "description": "Where to place the expression of a statement that could possibly be on one line (ex. `if (true) console.log(5);`).",
163
310
  "type": "string",
164
- "oneOf": [{
165
- "enum": ["maintain"],
166
- "description": "Maintains the position of the expression."
167
- }, {
168
- "enum": ["sameLine"],
169
- "description": "Forces the whole statement to be on one line."
170
- }, {
171
- "enum": ["nextLine"],
172
- "description": "Forces the expression to be on the next line."
173
- }]
311
+ "oneOf": [
312
+ {
313
+ "description": "Maintains the position of the expression.",
314
+ "type": "string",
315
+ "enum": [
316
+ "maintain"
317
+ ]
318
+ },
319
+ {
320
+ "description": "Forces the whole statement to be on one line.",
321
+ "type": "string",
322
+ "enum": [
323
+ "sameLine"
324
+ ]
325
+ },
326
+ {
327
+ "description": "Forces the expression to be on the next line.",
328
+ "type": "string",
329
+ "enum": [
330
+ "nextLine"
331
+ ]
332
+ }
333
+ ]
174
334
  },
175
335
  "nextControlFlowPosition": {
176
336
  "description": "Where to place the next control flow within a control flow statement.",
177
337
  "type": "string",
178
- "oneOf": [{
179
- "enum": ["maintain"],
180
- "description": "Maintains the next control flow being on the next line or the same line."
181
- }, {
182
- "enum": ["sameLine"],
183
- "description": "Forces the next control flow to be on the same line."
184
- }, {
185
- "enum": ["nextLine"],
186
- "description": "Forces the next control flow to be on the next line."
187
- }]
338
+ "oneOf": [
339
+ {
340
+ "description": "Maintains the next control flow being on the next line or the same line.",
341
+ "type": "string",
342
+ "enum": [
343
+ "maintain"
344
+ ]
345
+ },
346
+ {
347
+ "description": "Forces the next control flow to be on the same line.",
348
+ "type": "string",
349
+ "enum": [
350
+ "sameLine"
351
+ ]
352
+ },
353
+ {
354
+ "description": "Forces the next control flow to be on the next line.",
355
+ "type": "string",
356
+ "enum": [
357
+ "nextLine"
358
+ ]
359
+ }
360
+ ]
188
361
  },
189
362
  "trailingCommas": {
190
363
  "description": "If trailing commas should be used.",
191
364
  "type": "string",
192
- "oneOf": [{
193
- "enum": ["never"],
194
- "description": "Trailing commas should not be used."
195
- }, {
196
- "enum": ["always"],
197
- "description": "Trailing commas should always be used."
198
- }, {
199
- "enum": ["onlyMultiLine"],
200
- "description": "Trailing commas should only be used in multi-line scenarios."
201
- }]
365
+ "oneOf": [
366
+ {
367
+ "description": "Trailing commas should not be used.",
368
+ "type": "string",
369
+ "enum": [
370
+ "never"
371
+ ]
372
+ },
373
+ {
374
+ "description": "Trailing commas should always be used.",
375
+ "type": "string",
376
+ "enum": [
377
+ "always"
378
+ ]
379
+ },
380
+ {
381
+ "description": "Trailing commas should only be used in multi-line scenarios.",
382
+ "type": "string",
383
+ "enum": [
384
+ "onlyMultiLine"
385
+ ]
386
+ }
387
+ ]
202
388
  },
203
389
  "operatorPosition": {
204
390
  "description": "Where to place the operator for expressions that span multiple lines.",
205
391
  "type": "string",
206
- "oneOf": [{
207
- "enum": ["maintain"],
208
- "description": "Maintains the operator being on the next line or the same line."
209
- }, {
210
- "enum": ["sameLine"],
211
- "description": "Forces the operator to be on the same line."
212
- }, {
213
- "enum": ["nextLine"],
214
- "description": "Forces the operator to be on the next line."
215
- }]
392
+ "oneOf": [
393
+ {
394
+ "description": "Maintains the operator being on the next line or the same line.",
395
+ "type": "string",
396
+ "enum": [
397
+ "maintain"
398
+ ]
399
+ },
400
+ {
401
+ "description": "Forces the operator to be on the same line.",
402
+ "type": "string",
403
+ "enum": [
404
+ "sameLine"
405
+ ]
406
+ },
407
+ {
408
+ "description": "Forces the operator to be on the next line.",
409
+ "type": "string",
410
+ "enum": [
411
+ "nextLine"
412
+ ]
413
+ }
414
+ ]
216
415
  },
217
416
  "preferHanging": {
218
417
  "description": "Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.",
219
418
  "type": "boolean",
220
- "oneOf": [{
221
- "enum": [true],
222
- "description": ""
223
- }, {
224
- "enum": [false],
225
- "description": ""
226
- }]
419
+ "oneOf": [
420
+ {
421
+ "description": "",
422
+ "type": "boolean",
423
+ "enum": [
424
+ true
425
+ ]
426
+ },
427
+ {
428
+ "description": "",
429
+ "type": "boolean",
430
+ "enum": [
431
+ false
432
+ ]
433
+ }
434
+ ]
227
435
  },
228
436
  "preferHangingGranular": {
229
437
  "description": "Set to prefer hanging indentation when exceeding the line width instead of making code split up on multiple lines.",
230
438
  "type": "string",
231
- "oneOf": [{
232
- "enum": ["always"],
233
- "description": "Always prefers hanging regardless of the number of elements."
234
- }, {
235
- "enum": ["onlySingleItem"],
236
- "description": "Only prefers hanging if there is a single item."
237
- }, {
238
- "enum": ["never"],
239
- "description": "Never prefers hanging."
240
- }]
439
+ "oneOf": [
440
+ {
441
+ "description": "Always prefers hanging regardless of the number of elements.",
442
+ "type": "string",
443
+ "enum": [
444
+ "always"
445
+ ]
446
+ },
447
+ {
448
+ "description": "Only prefers hanging if there is a single item.",
449
+ "type": "string",
450
+ "enum": [
451
+ "onlySingleItem"
452
+ ]
453
+ },
454
+ {
455
+ "description": "Never prefers hanging.",
456
+ "type": "string",
457
+ "enum": [
458
+ "never"
459
+ ]
460
+ }
461
+ ]
241
462
  },
242
463
  "preferSingleLine": {
243
464
  "description": "If code should revert back from being on multiple lines to being on a single line when able.",
244
465
  "type": "boolean",
245
- "oneOf": [{
246
- "enum": [true],
247
- "description": ""
248
- }, {
249
- "enum": [false],
250
- "description": ""
251
- }]
466
+ "oneOf": [
467
+ {
468
+ "description": "",
469
+ "type": "boolean",
470
+ "enum": [
471
+ true
472
+ ]
473
+ },
474
+ {
475
+ "description": "",
476
+ "type": "boolean",
477
+ "enum": [
478
+ false
479
+ ]
480
+ }
481
+ ]
252
482
  },
253
483
  "forceSingleLine": {
254
484
  "description": "If code should be forced to be on a single line if able.",
255
485
  "type": "boolean",
256
- "oneOf": [{
257
- "enum": [true],
258
- "description": ""
259
- }, {
260
- "enum": [false],
261
- "description": ""
262
- }]
486
+ "oneOf": [
487
+ {
488
+ "description": "",
489
+ "type": "boolean",
490
+ "enum": [
491
+ true
492
+ ]
493
+ },
494
+ {
495
+ "description": "",
496
+ "type": "boolean",
497
+ "enum": [
498
+ false
499
+ ]
500
+ }
501
+ ]
263
502
  },
264
503
  "forceMultiLineSpecifiers": {
265
504
  "description": "If code import/export specifiers should be forced to be on multiple lines.",
266
505
  "type": "boolean",
267
- "oneOf": [{
268
- "enum": [true],
269
- "description": ""
270
- }, {
271
- "enum": [false],
272
- "description": ""
273
- }]
506
+ "oneOf": [
507
+ {
508
+ "description": "",
509
+ "type": "boolean",
510
+ "enum": [
511
+ true
512
+ ]
513
+ },
514
+ {
515
+ "description": "",
516
+ "type": "boolean",
517
+ "enum": [
518
+ false
519
+ ]
520
+ }
521
+ ]
274
522
  },
275
523
  "sortOrder": {
276
524
  "description": "The kind of sort ordering to use.",
277
525
  "type": "string",
278
- "oneOf": [{
279
- "enum": ["maintain"],
280
- "description": "Maintains the current ordering."
281
- }, {
282
- "enum": ["caseSensitive"],
283
- "description": "Alphabetically and case sensitive."
284
- }, {
285
- "enum": ["caseInsensitive"],
286
- "description": "Alphabetically and case insensitive."
287
- }]
526
+ "oneOf": [
527
+ {
528
+ "description": "Maintains the current ordering.",
529
+ "type": "string",
530
+ "enum": [
531
+ "maintain"
532
+ ]
533
+ },
534
+ {
535
+ "description": "Alphabetically and case sensitive.",
536
+ "type": "string",
537
+ "enum": [
538
+ "caseSensitive"
539
+ ]
540
+ },
541
+ {
542
+ "description": "Alphabetically and case insensitive.",
543
+ "type": "string",
544
+ "enum": [
545
+ "caseInsensitive"
546
+ ]
547
+ }
548
+ ]
288
549
  },
289
550
  "deno": {
290
551
  "description": "Top level configuration that sets the configuration to what is used in Deno.",
291
552
  "type": "boolean",
292
- "oneOf": [{
293
- "enum": [true],
294
- "description": ""
295
- }, {
296
- "enum": [false],
297
- "description": ""
298
- }]
553
+ "oneOf": [
554
+ {
555
+ "description": "",
556
+ "type": "boolean",
557
+ "enum": [
558
+ true
559
+ ]
560
+ },
561
+ {
562
+ "description": "",
563
+ "type": "boolean",
564
+ "enum": [
565
+ false
566
+ ]
567
+ }
568
+ ]
299
569
  },
300
570
  "arrowFunction.useParentheses": {
301
571
  "description": "Whether to use parentheses around a single parameter in an arrow function.",
302
572
  "type": "string",
303
- "oneOf": [{
304
- "enum": ["force"],
305
- "description": "Forces parentheses."
306
- }, {
307
- "enum": ["maintain"],
308
- "description": "Maintains the current state of the parentheses."
309
- }, {
310
- "enum": ["preferNone"],
311
- "description": "Prefers not using parentheses when possible."
312
- }]
573
+ "oneOf": [
574
+ {
575
+ "description": "Forces parentheses.",
576
+ "type": "string",
577
+ "enum": [
578
+ "force"
579
+ ]
580
+ },
581
+ {
582
+ "description": "Maintains the current state of the parentheses.",
583
+ "type": "string",
584
+ "enum": [
585
+ "maintain"
586
+ ]
587
+ },
588
+ {
589
+ "description": "Prefers not using parentheses when possible.",
590
+ "type": "string",
591
+ "enum": [
592
+ "preferNone"
593
+ ]
594
+ }
595
+ ]
313
596
  },
314
597
  "binaryExpression.linePerExpression": {
315
598
  "description": "Whether to force a line per expression when spanning multiple lines.",
316
599
  "type": "boolean",
317
- "oneOf": [{
318
- "enum": [true],
319
- "description": "Formats with each part on a new line."
320
- }, {
321
- "enum": [false],
322
- "description": "Maintains the line breaks as written by the programmer."
323
- }]
600
+ "oneOf": [
601
+ {
602
+ "description": "Formats with each part on a new line.",
603
+ "type": "boolean",
604
+ "enum": [
605
+ true
606
+ ]
607
+ },
608
+ {
609
+ "description": "Maintains the line breaks as written by the programmer.",
610
+ "type": "boolean",
611
+ "enum": [
612
+ false
613
+ ]
614
+ }
615
+ ]
324
616
  },
325
617
  "conditionalExpression.linePerExpression": {
326
618
  "description": "Whether to force a line per expression when spanning multiple lines.",
327
619
  "type": "boolean",
328
- "oneOf": [{
329
- "enum": [true],
330
- "description": "Formats with each part on a new line."
331
- }, {
332
- "enum": [false],
333
- "description": "Maintains the line breaks as written by the programmer."
334
- }]
620
+ "oneOf": [
621
+ {
622
+ "description": "Formats with each part on a new line.",
623
+ "type": "boolean",
624
+ "enum": [
625
+ true
626
+ ]
627
+ },
628
+ {
629
+ "description": "Maintains the line breaks as written by the programmer.",
630
+ "type": "boolean",
631
+ "enum": [
632
+ false
633
+ ]
634
+ }
635
+ ]
335
636
  },
336
637
  "memberExpression.linePerExpression": {
337
638
  "description": "Whether to force a line per expression when spanning multiple lines.",
338
639
  "type": "boolean",
339
- "oneOf": [{
340
- "enum": [true],
341
- "description": "Formats with each part on a new line."
342
- }, {
343
- "enum": [false],
344
- "description": "Maintains the line breaks as written by the programmer."
345
- }]
640
+ "oneOf": [
641
+ {
642
+ "description": "Formats with each part on a new line.",
643
+ "type": "boolean",
644
+ "enum": [
645
+ true
646
+ ]
647
+ },
648
+ {
649
+ "description": "Maintains the line breaks as written by the programmer.",
650
+ "type": "boolean",
651
+ "enum": [
652
+ false
653
+ ]
654
+ }
655
+ ]
346
656
  },
347
657
  "enumDeclaration.memberSpacing": {
348
658
  "description": "How to space the members of an enum.",
349
659
  "type": "string",
350
- "oneOf": [{
351
- "enum": ["newLine"],
352
- "description": "Forces a new line between members."
353
- }, {
354
- "enum": ["blankLine"],
355
- "description": "Forces a blank line between members."
356
- }, {
357
- "enum": ["maintain"],
358
- "description": "Maintains whether a newline or blankline is used."
359
- }]
660
+ "oneOf": [
661
+ {
662
+ "description": "Forces a new line between members.",
663
+ "type": "string",
664
+ "enum": [
665
+ "newLine"
666
+ ]
667
+ },
668
+ {
669
+ "description": "Forces a blank line between members.",
670
+ "type": "string",
671
+ "enum": [
672
+ "blankLine"
673
+ ]
674
+ },
675
+ {
676
+ "description": "Maintains whether a newline or blankline is used.",
677
+ "type": "string",
678
+ "enum": [
679
+ "maintain"
680
+ ]
681
+ }
682
+ ]
360
683
  },
361
684
  "typeLiteral.separatorKind": {
362
685
  "description": "The kind of separator to use in type literals.",
363
686
  "type": "string",
364
- "oneOf": [{
365
- "enum": ["semiColon"],
366
- "description": "Use semi-colons."
367
- }, {
368
- "enum": ["comma"],
369
- "description": "Use commas."
370
- }]
687
+ "oneOf": [
688
+ {
689
+ "description": "Use semi-colons.",
690
+ "type": "string",
691
+ "enum": [
692
+ "semiColon"
693
+ ]
694
+ },
695
+ {
696
+ "description": "Use commas.",
697
+ "type": "string",
698
+ "enum": [
699
+ "comma"
700
+ ]
701
+ }
702
+ ]
371
703
  },
372
704
  "spaceAround": {
373
705
  "description": "Whether to place spaces around enclosed expressions.",
374
706
  "type": "boolean",
375
- "oneOf": [{
376
- "enum": [true],
377
- "description": "Ex. `myFunction( true )`"
378
- }, {
379
- "enum": [false],
380
- "description": "Ex. `myFunction(true)`"
381
- }]
707
+ "oneOf": [
708
+ {
709
+ "description": "Ex. `myFunction( true )`",
710
+ "type": "boolean",
711
+ "enum": [
712
+ true
713
+ ]
714
+ },
715
+ {
716
+ "description": "Ex. `myFunction(true)`",
717
+ "type": "boolean",
718
+ "enum": [
719
+ false
720
+ ]
721
+ }
722
+ ]
382
723
  },
383
724
  "spaceSurroundingProperties": {
384
725
  "description": "Whether to add a space surrounding the properties of single line object-like nodes.",
385
726
  "type": "boolean",
386
- "oneOf": [{
387
- "enum": [true],
388
- "description": "Ex. `{ key: value }`"
389
- }, {
390
- "enum": [false],
391
- "description": "Ex. `{key: value}`"
392
- }]
727
+ "oneOf": [
728
+ {
729
+ "description": "Ex. `{ key: value }`",
730
+ "type": "boolean",
731
+ "enum": [
732
+ true
733
+ ]
734
+ },
735
+ {
736
+ "description": "Ex. `{key: value}`",
737
+ "type": "boolean",
738
+ "enum": [
739
+ false
740
+ ]
741
+ }
742
+ ]
393
743
  },
394
744
  "objectExpression.spaceSurroundingProperties": {
395
745
  "description": "Whether to add a space surrounding the properties of a single line object expression.",
396
746
  "type": "boolean",
397
- "oneOf": [{
398
- "enum": [true],
399
- "description": "Ex. `{ key: value }`"
400
- }, {
401
- "enum": [false],
402
- "description": "Ex. `{key: value}`"
403
- }]
747
+ "oneOf": [
748
+ {
749
+ "description": "Ex. `{ key: value }`",
750
+ "type": "boolean",
751
+ "enum": [
752
+ true
753
+ ]
754
+ },
755
+ {
756
+ "description": "Ex. `{key: value}`",
757
+ "type": "boolean",
758
+ "enum": [
759
+ false
760
+ ]
761
+ }
762
+ ]
404
763
  },
405
764
  "objectPattern.spaceSurroundingProperties": {
406
765
  "description": "Whether to add a space surrounding the properties of a single line object pattern.",
407
766
  "type": "boolean",
408
- "oneOf": [{
409
- "enum": [true],
410
- "description": "Ex. `{ key: value } = obj`"
411
- }, {
412
- "enum": [false],
413
- "description": "Ex. `{key: value} = obj`"
414
- }]
767
+ "oneOf": [
768
+ {
769
+ "description": "Ex. `{ key: value } = obj`",
770
+ "type": "boolean",
771
+ "enum": [
772
+ true
773
+ ]
774
+ },
775
+ {
776
+ "description": "Ex. `{key: value} = obj`",
777
+ "type": "boolean",
778
+ "enum": [
779
+ false
780
+ ]
781
+ }
782
+ ]
415
783
  },
416
784
  "typeLiteral.spaceSurroundingProperties": {
417
785
  "description": "Whether to add a space surrounding the properties of a single line type literal.",
418
786
  "type": "boolean",
419
- "oneOf": [{
420
- "enum": [true],
421
- "description": "Ex. `type Test = { key: string }`"
422
- }, {
423
- "enum": [false],
424
- "description": "Ex. `type Test = {key: string}`"
425
- }]
787
+ "oneOf": [
788
+ {
789
+ "description": "Ex. `type Test = { key: string }`",
790
+ "type": "boolean",
791
+ "enum": [
792
+ true
793
+ ]
794
+ },
795
+ {
796
+ "description": "Ex. `type Test = {key: string}`",
797
+ "type": "boolean",
798
+ "enum": [
799
+ false
800
+ ]
801
+ }
802
+ ]
426
803
  },
427
804
  "binaryExpression.spaceSurroundingBitwiseAndArithmeticOperator": {
428
805
  "description": "Whether to surround the operator in a binary expression with spaces.",
429
806
  "type": "boolean",
430
- "oneOf": [{
431
- "enum": [true],
432
- "description": "Ex. `1 + 2`"
433
- }, {
434
- "enum": [false],
435
- "description": "Ex. `1+2`"
436
- }]
807
+ "oneOf": [
808
+ {
809
+ "description": "Ex. `1 + 2`",
810
+ "type": "boolean",
811
+ "enum": [
812
+ true
813
+ ]
814
+ },
815
+ {
816
+ "description": "Ex. `1+2`",
817
+ "type": "boolean",
818
+ "enum": [
819
+ false
820
+ ]
821
+ }
822
+ ]
437
823
  },
438
824
  "commentLine.forceSpaceAfterSlashes": {
439
825
  "description": "Forces a space after the double slash in a comment line.",
440
826
  "type": "boolean",
441
- "oneOf": [{
442
- "enum": [true],
443
- "description": "Ex. `//test` -> `// test`"
444
- }, {
445
- "enum": [false],
446
- "description": "Ex. `//test` -> `//test`"
447
- }]
827
+ "oneOf": [
828
+ {
829
+ "description": "Ex. `//test` -> `// test`",
830
+ "type": "boolean",
831
+ "enum": [
832
+ true
833
+ ]
834
+ },
835
+ {
836
+ "description": "Ex. `//test` -> `//test`",
837
+ "type": "boolean",
838
+ "enum": [
839
+ false
840
+ ]
841
+ }
842
+ ]
448
843
  },
449
844
  "constructor.spaceBeforeParentheses": {
450
845
  "description": "Whether to add a space before the parentheses of a constructor.",
451
846
  "type": "boolean",
452
- "oneOf": [{
453
- "enum": [true],
454
- "description": "Ex. `constructor ()`"
455
- }, {
456
- "enum": [false],
457
- "description": "Ex. `constructor()`"
458
- }]
847
+ "oneOf": [
848
+ {
849
+ "description": "Ex. `constructor ()`",
850
+ "type": "boolean",
851
+ "enum": [
852
+ true
853
+ ]
854
+ },
855
+ {
856
+ "description": "Ex. `constructor()`",
857
+ "type": "boolean",
858
+ "enum": [
859
+ false
860
+ ]
861
+ }
862
+ ]
459
863
  },
460
864
  "constructorType.spaceAfterNewKeyword": {
461
865
  "description": "Whether to add a space after the `new` keyword in a constructor type.",
462
866
  "type": "boolean",
463
- "oneOf": [{
464
- "enum": [true],
465
- "description": "Ex. `type MyClassCtor = new () => MyClass;`"
466
- }, {
467
- "enum": [false],
468
- "description": "Ex. `type MyClassCtor = new() => MyClass;`"
469
- }]
867
+ "oneOf": [
868
+ {
869
+ "description": "Ex. `type MyClassCtor = new () => MyClass;`",
870
+ "type": "boolean",
871
+ "enum": [
872
+ true
873
+ ]
874
+ },
875
+ {
876
+ "description": "Ex. `type MyClassCtor = new() => MyClass;`",
877
+ "type": "boolean",
878
+ "enum": [
879
+ false
880
+ ]
881
+ }
882
+ ]
470
883
  },
471
884
  "constructSignature.spaceAfterNewKeyword": {
472
885
  "description": "Whether to add a space after the `new` keyword in a construct signature.",
473
886
  "type": "boolean",
474
- "oneOf": [{
475
- "enum": [true],
476
- "description": "Ex. `new (): MyClass;`"
477
- }, {
478
- "enum": [false],
479
- "description": "Ex. `new(): MyClass;`"
480
- }]
887
+ "oneOf": [
888
+ {
889
+ "description": "Ex. `new (): MyClass;`",
890
+ "type": "boolean",
891
+ "enum": [
892
+ true
893
+ ]
894
+ },
895
+ {
896
+ "description": "Ex. `new(): MyClass;`",
897
+ "type": "boolean",
898
+ "enum": [
899
+ false
900
+ ]
901
+ }
902
+ ]
481
903
  },
482
904
  "doWhileStatement.spaceAfterWhileKeyword": {
483
905
  "description": "Whether to add a space after the `while` keyword in a do while statement.",
484
906
  "type": "boolean",
485
- "oneOf": [{
486
- "enum": [true],
487
- "description": "Ex. `do {\n} while (condition);`"
488
- }, {
489
- "enum": [false],
490
- "description": "Ex. `do {\n} while(condition);`"
491
- }]
907
+ "oneOf": [
908
+ {
909
+ "description": "Ex. `do {\n} while (condition);`",
910
+ "type": "boolean",
911
+ "enum": [
912
+ true
913
+ ]
914
+ },
915
+ {
916
+ "description": "Ex. `do {\n} while(condition);`",
917
+ "type": "boolean",
918
+ "enum": [
919
+ false
920
+ ]
921
+ }
922
+ ]
492
923
  },
493
924
  "exportDeclaration.spaceSurroundingNamedExports": {
494
925
  "description": "Whether to add spaces around named exports in an export declaration.",
495
926
  "type": "boolean",
496
- "oneOf": [{
497
- "enum": [true],
498
- "description": "Ex. `export { SomeExport, OtherExport };`"
499
- }, {
500
- "enum": [false],
501
- "description": "Ex. `export {SomeExport, OtherExport};`"
502
- }]
927
+ "oneOf": [
928
+ {
929
+ "description": "Ex. `export { SomeExport, OtherExport };`",
930
+ "type": "boolean",
931
+ "enum": [
932
+ true
933
+ ]
934
+ },
935
+ {
936
+ "description": "Ex. `export {SomeExport, OtherExport};`",
937
+ "type": "boolean",
938
+ "enum": [
939
+ false
940
+ ]
941
+ }
942
+ ]
503
943
  },
504
944
  "forInStatement.spaceAfterForKeyword": {
505
945
  "description": "Whether to add a space after the `for` keyword in a \"for in\" statement.",
506
946
  "type": "boolean",
507
- "oneOf": [{
508
- "enum": [true],
509
- "description": "Ex. `for (const prop in obj)`"
510
- }, {
511
- "enum": [false],
512
- "description": "Ex. `for(const prop in obj)`"
513
- }]
947
+ "oneOf": [
948
+ {
949
+ "description": "Ex. `for (const prop in obj)`",
950
+ "type": "boolean",
951
+ "enum": [
952
+ true
953
+ ]
954
+ },
955
+ {
956
+ "description": "Ex. `for(const prop in obj)`",
957
+ "type": "boolean",
958
+ "enum": [
959
+ false
960
+ ]
961
+ }
962
+ ]
514
963
  },
515
964
  "forOfStatement.spaceAfterForKeyword": {
516
965
  "description": "Whether to add a space after the `for` keyword in a \"for of\" statement.",
517
966
  "type": "boolean",
518
- "oneOf": [{
519
- "enum": [true],
520
- "description": "Ex. `for (const value of myArray)`"
521
- }, {
522
- "enum": [false],
523
- "description": "Ex. `for(const value of myArray)`"
524
- }]
967
+ "oneOf": [
968
+ {
969
+ "description": "Ex. `for (const value of myArray)`",
970
+ "type": "boolean",
971
+ "enum": [
972
+ true
973
+ ]
974
+ },
975
+ {
976
+ "description": "Ex. `for(const value of myArray)`",
977
+ "type": "boolean",
978
+ "enum": [
979
+ false
980
+ ]
981
+ }
982
+ ]
525
983
  },
526
984
  "forStatement.spaceAfterForKeyword": {
527
985
  "description": "Whether to add a space after the `for` keyword in a \"for\" statement.",
528
986
  "type": "boolean",
529
- "oneOf": [{
530
- "enum": [true],
531
- "description": "Ex. `for (let i = 0; i < 5; i++)`"
532
- }, {
533
- "enum": [false],
534
- "description": "Ex. `for(let i = 0; i < 5; i++)`"
535
- }]
987
+ "oneOf": [
988
+ {
989
+ "description": "Ex. `for (let i = 0; i < 5; i++)`",
990
+ "type": "boolean",
991
+ "enum": [
992
+ true
993
+ ]
994
+ },
995
+ {
996
+ "description": "Ex. `for(let i = 0; i < 5; i++)`",
997
+ "type": "boolean",
998
+ "enum": [
999
+ false
1000
+ ]
1001
+ }
1002
+ ]
536
1003
  },
537
1004
  "forStatement.spaceAfterSemiColons": {
538
1005
  "description": "Whether to add a space after the semi-colons in a \"for\" statement.",
539
1006
  "type": "boolean",
540
- "oneOf": [{
541
- "enum": [true],
542
- "description": "Ex. `for (let i = 0; i < 5; i++)`"
543
- }, {
544
- "enum": [false],
545
- "description": "Ex. `for (let i = 0;i < 5;i++)`"
546
- }]
1007
+ "oneOf": [
1008
+ {
1009
+ "description": "Ex. `for (let i = 0; i < 5; i++)`",
1010
+ "type": "boolean",
1011
+ "enum": [
1012
+ true
1013
+ ]
1014
+ },
1015
+ {
1016
+ "description": "Ex. `for (let i = 0;i < 5;i++)`",
1017
+ "type": "boolean",
1018
+ "enum": [
1019
+ false
1020
+ ]
1021
+ }
1022
+ ]
547
1023
  },
548
1024
  "functionDeclaration.spaceBeforeParentheses": {
549
1025
  "description": "Whether to add a space before the parentheses of a function declaration.",
550
1026
  "type": "boolean",
551
- "oneOf": [{
552
- "enum": [true],
553
- "description": "Ex. `function myFunction ()`"
554
- }, {
555
- "enum": [false],
556
- "description": "Ex. `function myFunction()`"
557
- }]
1027
+ "oneOf": [
1028
+ {
1029
+ "description": "Ex. `function myFunction ()`",
1030
+ "type": "boolean",
1031
+ "enum": [
1032
+ true
1033
+ ]
1034
+ },
1035
+ {
1036
+ "description": "Ex. `function myFunction()`",
1037
+ "type": "boolean",
1038
+ "enum": [
1039
+ false
1040
+ ]
1041
+ }
1042
+ ]
558
1043
  },
559
1044
  "functionExpression.spaceBeforeParentheses": {
560
1045
  "description": "Whether to add a space before the parentheses of a function expression.",
561
1046
  "type": "boolean",
562
- "oneOf": [{
563
- "enum": [true],
564
- "description": "Ex. `function<T> ()`"
565
- }, {
566
- "enum": [false],
567
- "description": "Ex. `function<T>()`"
568
- }]
1047
+ "oneOf": [
1048
+ {
1049
+ "description": "Ex. `function<T> ()`",
1050
+ "type": "boolean",
1051
+ "enum": [
1052
+ true
1053
+ ]
1054
+ },
1055
+ {
1056
+ "description": "Ex. `function<T>()`",
1057
+ "type": "boolean",
1058
+ "enum": [
1059
+ false
1060
+ ]
1061
+ }
1062
+ ]
569
1063
  },
570
1064
  "functionExpression.spaceAfterFunctionKeyword": {
571
1065
  "description": "Whether to add a space after the function keyword of a function expression.",
572
1066
  "type": "boolean",
573
- "oneOf": [{
574
- "enum": [true],
575
- "description": "Ex. `function <T>()`"
576
- }, {
577
- "enum": [false],
578
- "description": "Ex. `function<T>()`"
579
- }]
1067
+ "oneOf": [
1068
+ {
1069
+ "description": "Ex. `function <T>()`",
1070
+ "type": "boolean",
1071
+ "enum": [
1072
+ true
1073
+ ]
1074
+ },
1075
+ {
1076
+ "description": "Ex. `function<T>()`",
1077
+ "type": "boolean",
1078
+ "enum": [
1079
+ false
1080
+ ]
1081
+ }
1082
+ ]
580
1083
  },
581
1084
  "getAccessor.spaceBeforeParentheses": {
582
1085
  "description": "Whether to add a space before the parentheses of a get accessor.",
583
1086
  "type": "boolean",
584
- "oneOf": [{
585
- "enum": [true],
586
- "description": "Ex. `get myProp ()`"
587
- }, {
588
- "enum": [false],
589
- "description": "Ex. `get myProp()`"
590
- }]
1087
+ "oneOf": [
1088
+ {
1089
+ "description": "Ex. `get myProp ()`",
1090
+ "type": "boolean",
1091
+ "enum": [
1092
+ true
1093
+ ]
1094
+ },
1095
+ {
1096
+ "description": "Ex. `get myProp()`",
1097
+ "type": "boolean",
1098
+ "enum": [
1099
+ false
1100
+ ]
1101
+ }
1102
+ ]
591
1103
  },
592
1104
  "ifStatement.spaceAfterIfKeyword": {
593
1105
  "description": "Whether to add a space after the `if` keyword in an \"if\" statement.",
594
1106
  "type": "boolean",
595
- "oneOf": [{
596
- "enum": [true],
597
- "description": "Ex. `if (true)`"
598
- }, {
599
- "enum": [false],
600
- "description": "Ex. `if(true)`"
601
- }]
1107
+ "oneOf": [
1108
+ {
1109
+ "description": "Ex. `if (true)`",
1110
+ "type": "boolean",
1111
+ "enum": [
1112
+ true
1113
+ ]
1114
+ },
1115
+ {
1116
+ "description": "Ex. `if(true)`",
1117
+ "type": "boolean",
1118
+ "enum": [
1119
+ false
1120
+ ]
1121
+ }
1122
+ ]
602
1123
  },
603
1124
  "importDeclaration.spaceSurroundingNamedImports": {
604
1125
  "description": "Whether to add spaces around named imports in an import declaration.",
605
1126
  "type": "boolean",
606
- "oneOf": [{
607
- "enum": [true],
608
- "description": "Ex. `import { SomeExport, OtherExport } from \"my-module\";`"
609
- }, {
610
- "enum": [false],
611
- "description": "Ex. `import {SomeExport, OtherExport} from \"my-module\";`"
612
- }]
1127
+ "oneOf": [
1128
+ {
1129
+ "description": "Ex. `import { SomeExport, OtherExport } from \"my-module\";`",
1130
+ "type": "boolean",
1131
+ "enum": [
1132
+ true
1133
+ ]
1134
+ },
1135
+ {
1136
+ "description": "Ex. `import {SomeExport, OtherExport} from \"my-module\";`",
1137
+ "type": "boolean",
1138
+ "enum": [
1139
+ false
1140
+ ]
1141
+ }
1142
+ ]
613
1143
  },
614
1144
  "jsxSelfClosingElement.spaceBeforeSlash": {
615
1145
  "description": "Whether to add a space before a JSX element's slash when self closing.",
616
1146
  "type": "boolean",
617
- "oneOf": [{
618
- "enum": [true],
619
- "description": "Ex. `<Test />`"
620
- }, {
621
- "enum": [false],
622
- "description": "Ex. `<Test/>`"
623
- }]
1147
+ "oneOf": [
1148
+ {
1149
+ "description": "Ex. `<Test />`",
1150
+ "type": "boolean",
1151
+ "enum": [
1152
+ true
1153
+ ]
1154
+ },
1155
+ {
1156
+ "description": "Ex. `<Test/>`",
1157
+ "type": "boolean",
1158
+ "enum": [
1159
+ false
1160
+ ]
1161
+ }
1162
+ ]
624
1163
  },
625
1164
  "jsxExpressionContainer.spaceSurroundingExpression": {
626
1165
  "description": "Whether to add a space surrounding the expression of a JSX container.",
627
1166
  "type": "boolean",
628
- "oneOf": [{
629
- "enum": [true],
630
- "description": "Ex. `{ myValue }`"
631
- }, {
632
- "enum": [false],
633
- "description": "Ex. `{myValue}`"
634
- }]
1167
+ "oneOf": [
1168
+ {
1169
+ "description": "Ex. `{ myValue }`",
1170
+ "type": "boolean",
1171
+ "enum": [
1172
+ true
1173
+ ]
1174
+ },
1175
+ {
1176
+ "description": "Ex. `{myValue}`",
1177
+ "type": "boolean",
1178
+ "enum": [
1179
+ false
1180
+ ]
1181
+ }
1182
+ ]
635
1183
  },
636
1184
  "method.spaceBeforeParentheses": {
637
1185
  "description": "Whether to add a space before the parentheses of a method.",
638
1186
  "type": "boolean",
639
- "oneOf": [{
640
- "enum": [true],
641
- "description": "Ex. `myMethod ()`"
642
- }, {
643
- "enum": [false],
644
- "description": "Ex. `myMethod()`"
645
- }]
1187
+ "oneOf": [
1188
+ {
1189
+ "description": "Ex. `myMethod ()`",
1190
+ "type": "boolean",
1191
+ "enum": [
1192
+ true
1193
+ ]
1194
+ },
1195
+ {
1196
+ "description": "Ex. `myMethod()`",
1197
+ "type": "boolean",
1198
+ "enum": [
1199
+ false
1200
+ ]
1201
+ }
1202
+ ]
646
1203
  },
647
1204
  "setAccessor.spaceBeforeParentheses": {
648
1205
  "description": "Whether to add a space before the parentheses of a set accessor.",
649
1206
  "type": "boolean",
650
- "oneOf": [{
651
- "enum": [true],
652
- "description": "Ex. `set myProp (value: string)`"
653
- }, {
654
- "enum": [false],
655
- "description": "Ex. `set myProp(value: string)`"
656
- }]
1207
+ "oneOf": [
1208
+ {
1209
+ "description": "Ex. `set myProp (value: string)`",
1210
+ "type": "boolean",
1211
+ "enum": [
1212
+ true
1213
+ ]
1214
+ },
1215
+ {
1216
+ "description": "Ex. `set myProp(value: string)`",
1217
+ "type": "boolean",
1218
+ "enum": [
1219
+ false
1220
+ ]
1221
+ }
1222
+ ]
657
1223
  },
658
1224
  "taggedTemplate.spaceBeforeLiteral": {
659
1225
  "description": "Whether to add a space before the literal in a tagged template.",
660
1226
  "type": "boolean",
661
- "oneOf": [{
662
- "enum": [true],
663
- "description": "Ex. `html `<element />``"
664
- }, {
665
- "enum": [false],
666
- "description": "Ex. `html`<element />``"
667
- }]
1227
+ "oneOf": [
1228
+ {
1229
+ "description": "Ex. `html `<element />``",
1230
+ "type": "boolean",
1231
+ "enum": [
1232
+ true
1233
+ ]
1234
+ },
1235
+ {
1236
+ "description": "Ex. `html`<element />``",
1237
+ "type": "boolean",
1238
+ "enum": [
1239
+ false
1240
+ ]
1241
+ }
1242
+ ]
668
1243
  },
669
1244
  "typeAnnotation.spaceBeforeColon": {
670
1245
  "description": "Whether to add a space before the colon of a type annotation.",
671
1246
  "type": "boolean",
672
- "oneOf": [{
673
- "enum": [true],
674
- "description": "Ex. `function myFunction() : string`"
675
- }, {
676
- "enum": [false],
677
- "description": "Ex. `function myFunction(): string`"
678
- }]
1247
+ "oneOf": [
1248
+ {
1249
+ "description": "Ex. `function myFunction() : string`",
1250
+ "type": "boolean",
1251
+ "enum": [
1252
+ true
1253
+ ]
1254
+ },
1255
+ {
1256
+ "description": "Ex. `function myFunction(): string`",
1257
+ "type": "boolean",
1258
+ "enum": [
1259
+ false
1260
+ ]
1261
+ }
1262
+ ]
679
1263
  },
680
1264
  "typeAssertion.spaceBeforeExpression": {
681
1265
  "description": "Whether to add a space before the expression in a type assertion.",
682
1266
  "type": "boolean",
683
- "oneOf": [{
684
- "enum": [true],
685
- "description": "Ex. `<string> myValue`"
686
- }, {
687
- "enum": [false],
688
- "description": "Ex. `<string>myValue`"
689
- }]
1267
+ "oneOf": [
1268
+ {
1269
+ "description": "Ex. `<string> myValue`",
1270
+ "type": "boolean",
1271
+ "enum": [
1272
+ true
1273
+ ]
1274
+ },
1275
+ {
1276
+ "description": "Ex. `<string>myValue`",
1277
+ "type": "boolean",
1278
+ "enum": [
1279
+ false
1280
+ ]
1281
+ }
1282
+ ]
690
1283
  },
691
1284
  "whileStatement.spaceAfterWhileKeyword": {
692
1285
  "description": "Whether to add a space after the `while` keyword in a while statement.",
693
1286
  "type": "boolean",
694
- "oneOf": [{
695
- "enum": [true],
696
- "description": "Ex. `while (true)`"
697
- }, {
698
- "enum": [false],
699
- "description": "Ex. `while(true)`"
700
- }]
1287
+ "oneOf": [
1288
+ {
1289
+ "description": "Ex. `while (true)`",
1290
+ "type": "boolean",
1291
+ "enum": [
1292
+ true
1293
+ ]
1294
+ },
1295
+ {
1296
+ "description": "Ex. `while(true)`",
1297
+ "type": "boolean",
1298
+ "enum": [
1299
+ false
1300
+ ]
1301
+ }
1302
+ ]
701
1303
  }
702
1304
  },
703
1305
  "properties": {