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