vize 0.746.0 → 0.748.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.
@@ -61,3 +61,29 @@ unsupportedFeaturesDef: JsonSchema = new JsonSchema {
61
61
  }
62
62
  additionalProperties = false
63
63
  }
64
+
65
+ noUnusedScriptVarsDef: JsonSchema = new JsonSchema {
66
+ type = "object"
67
+ properties {
68
+ ["vars"] = new JsonSchema { type = "string"; enum = new Listing { "all"; "local" } }
69
+ ["varsIgnorePattern"] = new JsonSchema { type = "string" }
70
+ ["args"] = new JsonSchema { type = "string"; enum = new Listing { "all"; "after-used"; "none" } }
71
+ ["argsIgnorePattern"] = new JsonSchema { type = "string" }
72
+ ["caughtErrors"] = new JsonSchema { type = "string"; enum = new Listing { "all"; "none" } }
73
+ ["caughtErrorsIgnorePattern"] = new JsonSchema { type = "string" }
74
+ ["destructuredArrayIgnorePattern"] = new JsonSchema { type = "string" }
75
+ ["ignoreRestSiblings"] = new JsonSchema { type = "boolean" }
76
+ ["ignoreClassWithStaticInitBlock"] = new JsonSchema { type = "boolean" }
77
+ ["reportUsedIgnorePattern"] = new JsonSchema { type = "boolean" }
78
+ }
79
+ additionalProperties = false
80
+ }
81
+
82
+ preferConstDef: JsonSchema = new JsonSchema {
83
+ type = "object"
84
+ properties {
85
+ ["destructuring"] = new JsonSchema { type = "string"; enum = new Listing { "any"; "all" } }
86
+ ["ignoreReadBeforeAssign"] = new JsonSchema { type = "boolean" }
87
+ }
88
+ additionalProperties = false
89
+ }
@@ -4,6 +4,9 @@ module vize.jsonschema.LintRuleOptionsSchemaDefinitions
4
4
  import "@json_schema/JsonSchema.pkl"
5
5
  import "ConfigArtifactDefinitions.pkl"
6
6
  import "ConfiguredVueRuleOptions.pkl"
7
+ import "TypeAwareRuleOptions.pkl"
8
+ import "TypeAwareRuleOptionsMToO.pkl"
9
+ import "TypeAwareRuleOptionsPToU.pkl"
7
10
 
8
11
  definePropsDestructuringOptionsDef: JsonSchema = new JsonSchema {
9
12
  type = "object"
@@ -196,6 +199,27 @@ lintRuleOptionsDef: JsonSchema = new JsonSchema {
196
199
  ["vue/no-restricted-static-attribute"] = ConfiguredVueRuleOptions.restrictedNamesDef
197
200
  ["vue/no-restricted-v-on"] = ConfiguredVueRuleOptions.restrictedNamesDef
198
201
  ["vue/no-unsupported-features"] = ConfiguredVueRuleOptions.unsupportedFeaturesDef
202
+ ["type/await-thenable"] = TypeAwareRuleOptions.awaitThenableDef
203
+ ["type/no-base-to-string"] = TypeAwareRuleOptions.noBaseToStringDef
204
+ ["type/no-confusing-void-expression"] = TypeAwareRuleOptions.noConfusingVoidExpressionDef
205
+ ["type/no-deprecated"] = TypeAwareRuleOptions.noDeprecatedDef
206
+ ["type/no-duplicate-type-constituents"] = TypeAwareRuleOptions.noDuplicateTypeConstituentsDef
207
+ ["type/no-floating-promises"] = TypeAwareRuleOptions.noFloatingPromisesDef
208
+ ["type/no-meaningless-void-operator"] = TypeAwareRuleOptionsMToO.noMeaninglessVoidOperatorDef
209
+ ["type/no-misused-promises"] = TypeAwareRuleOptionsMToO.noMisusedPromisesDef
210
+ ["type/no-misused-spread"] = TypeAwareRuleOptionsMToO.noMisusedSpreadDef
211
+ ["type/no-unnecessary-boolean-literal-compare"] = TypeAwareRuleOptionsMToO.noUnnecessaryBooleanLiteralCompareDef
212
+ ["type/no-unnecessary-condition"] = TypeAwareRuleOptionsMToO.noUnnecessaryConditionDef
213
+ ["type/no-unnecessary-type-assertion"] = TypeAwareRuleOptionsMToO.noUnnecessaryTypeAssertionDef
214
+ ["type/no-unsafe-member-access"] = TypeAwareRuleOptionsMToO.noUnsafeMemberAccessDef
215
+ ["type/only-throw-error"] = TypeAwareRuleOptionsMToO.onlyThrowErrorDef
216
+ ["type/prefer-promise-reject-errors"] = TypeAwareRuleOptionsPToU.preferPromiseRejectErrorsDef
217
+ ["type/restrict-plus-operands"] = TypeAwareRuleOptionsPToU.restrictPlusOperandsDef
218
+ ["type/restrict-template-expressions"] = TypeAwareRuleOptionsPToU.restrictTemplateExpressionsDef
219
+ ["type/return-await"] = TypeAwareRuleOptionsPToU.returnAwaitDef
220
+ ["type/unbound-method"] = TypeAwareRuleOptionsPToU.unboundMethodDef
221
+ ["vue/no-unused-script-vars"] = ConfiguredVueRuleOptions.noUnusedScriptVarsDef
222
+ ["vue/prefer-const"] = ConfiguredVueRuleOptions.preferConstDef
199
223
  ["vue/enforce-style-attribute"] = new JsonSchema {
200
224
  type = "object"
201
225
  properties {
@@ -0,0 +1,396 @@
1
+ /// JSON Schema for the typescript-eslint type-aware rule options.
2
+ ///
3
+ /// Generated from the rule schemas and defaults of @typescript-eslint/eslint-plugin
4
+ /// 8.72.1; keep it in step with
5
+ /// davinci/vize_l0/src/config/model/linter_rule_options/type_aware.rs.
6
+ module vize.jsonschema.TypeAwareRuleOptions
7
+
8
+ import "@json_schema/JsonSchema.pkl"
9
+
10
+ awaitThenableDef: JsonSchema = new JsonSchema {
11
+ type = "object"
12
+ properties {
13
+ ["allowMixedPromiseArrays"] = new JsonSchema {
14
+ description = "Whether to allow promise aggregators to receive iterables mixing Promise and non-Promise values, as long as at least one value may be a Promise."
15
+ type = "boolean"
16
+ default = false
17
+ }
18
+ }
19
+ additionalProperties = false
20
+ }
21
+
22
+ noBaseToStringDef: JsonSchema = new JsonSchema {
23
+ type = "object"
24
+ properties {
25
+ ["checkUnknown"] = new JsonSchema {
26
+ description = "Whether to also check values of type `unknown`"
27
+ type = "boolean"
28
+ default = false
29
+ }
30
+ ["ignoredTypeNames"] = new JsonSchema {
31
+ description = "Stringified type names to ignore."
32
+ type = "array"
33
+ items = new JsonSchema {
34
+ type = "string"
35
+ }
36
+ default = new Listing { "Error"; "RegExp"; "URL"; "URLSearchParams" }
37
+ }
38
+ }
39
+ additionalProperties = false
40
+ }
41
+
42
+ noConfusingVoidExpressionDef: JsonSchema = new JsonSchema {
43
+ type = "object"
44
+ properties {
45
+ ["ignoreArrowShorthand"] = new JsonSchema {
46
+ description = "Whether to ignore \"shorthand\" `() =>` arrow functions: those without `{ ... }` braces."
47
+ type = "boolean"
48
+ default = false
49
+ }
50
+ ["ignoreVoidOperator"] = new JsonSchema {
51
+ description = "Whether to ignore returns that start with the `void` operator."
52
+ type = "boolean"
53
+ default = false
54
+ }
55
+ ["ignoreVoidReturningFunctions"] = new JsonSchema {
56
+ description = "Whether to ignore returns from functions with explicit `void` return types and functions with contextual `void` return types."
57
+ type = "boolean"
58
+ default = false
59
+ }
60
+ }
61
+ additionalProperties = false
62
+ }
63
+
64
+ noDeprecatedDef: JsonSchema = new JsonSchema {
65
+ type = "object"
66
+ properties {
67
+ ["allow"] = new JsonSchema {
68
+ description = "Type specifiers that can be allowed."
69
+ type = "array"
70
+ items = new JsonSchema {
71
+ oneOf = new Listing {
72
+ new JsonSchema {
73
+ type = "string"
74
+ }
75
+ new JsonSchema {
76
+ type = "object"
77
+ properties {
78
+ ["from"] = new JsonSchema {
79
+ type = "string"
80
+ enum = new Listing { "file" }
81
+ }
82
+ ["name"] = new JsonSchema {
83
+ oneOf = new Listing {
84
+ new JsonSchema {
85
+ type = "string"
86
+ }
87
+ new JsonSchema {
88
+ type = "array"
89
+ items = new JsonSchema {
90
+ type = "string"
91
+ }
92
+ minItems = 1
93
+ uniqueItems = true
94
+ }
95
+ }
96
+ }
97
+ ["path"] = new JsonSchema {
98
+ type = "string"
99
+ }
100
+ }
101
+ required = new Listing { "from"; "name" }
102
+ additionalProperties = false
103
+ }
104
+ new JsonSchema {
105
+ type = "object"
106
+ properties {
107
+ ["from"] = new JsonSchema {
108
+ type = "string"
109
+ enum = new Listing { "lib" }
110
+ }
111
+ ["name"] = new JsonSchema {
112
+ oneOf = new Listing {
113
+ new JsonSchema {
114
+ type = "string"
115
+ }
116
+ new JsonSchema {
117
+ type = "array"
118
+ items = new JsonSchema {
119
+ type = "string"
120
+ }
121
+ minItems = 1
122
+ uniqueItems = true
123
+ }
124
+ }
125
+ }
126
+ }
127
+ required = new Listing { "from"; "name" }
128
+ additionalProperties = false
129
+ }
130
+ new JsonSchema {
131
+ type = "object"
132
+ properties {
133
+ ["from"] = new JsonSchema {
134
+ type = "string"
135
+ enum = new Listing { "package" }
136
+ }
137
+ ["name"] = new JsonSchema {
138
+ oneOf = new Listing {
139
+ new JsonSchema {
140
+ type = "string"
141
+ }
142
+ new JsonSchema {
143
+ type = "array"
144
+ items = new JsonSchema {
145
+ type = "string"
146
+ }
147
+ minItems = 1
148
+ uniqueItems = true
149
+ }
150
+ }
151
+ }
152
+ ["package"] = new JsonSchema {
153
+ type = "string"
154
+ }
155
+ }
156
+ required = new Listing { "from"; "name"; "package" }
157
+ additionalProperties = false
158
+ }
159
+ }
160
+ }
161
+ default = new Listing { }
162
+ }
163
+ }
164
+ additionalProperties = false
165
+ }
166
+
167
+ noDuplicateTypeConstituentsDef: JsonSchema = new JsonSchema {
168
+ type = "object"
169
+ properties {
170
+ ["ignoreIntersections"] = new JsonSchema {
171
+ description = "Whether to ignore `&` intersections."
172
+ type = "boolean"
173
+ default = false
174
+ }
175
+ ["ignoreUnions"] = new JsonSchema {
176
+ description = "Whether to ignore `|` unions."
177
+ type = "boolean"
178
+ default = false
179
+ }
180
+ }
181
+ additionalProperties = false
182
+ }
183
+
184
+ noFloatingPromisesDef: JsonSchema = new JsonSchema {
185
+ type = "object"
186
+ properties {
187
+ ["allowForKnownSafeCalls"] = new JsonSchema {
188
+ description = "Type specifiers of functions whose calls are safe to float."
189
+ type = "array"
190
+ items = new JsonSchema {
191
+ oneOf = new Listing {
192
+ new JsonSchema {
193
+ type = "string"
194
+ }
195
+ new JsonSchema {
196
+ type = "object"
197
+ properties {
198
+ ["from"] = new JsonSchema {
199
+ type = "string"
200
+ enum = new Listing { "file" }
201
+ }
202
+ ["name"] = new JsonSchema {
203
+ oneOf = new Listing {
204
+ new JsonSchema {
205
+ type = "string"
206
+ }
207
+ new JsonSchema {
208
+ type = "array"
209
+ items = new JsonSchema {
210
+ type = "string"
211
+ }
212
+ minItems = 1
213
+ uniqueItems = true
214
+ }
215
+ }
216
+ }
217
+ ["path"] = new JsonSchema {
218
+ type = "string"
219
+ }
220
+ }
221
+ required = new Listing { "from"; "name" }
222
+ additionalProperties = false
223
+ }
224
+ new JsonSchema {
225
+ type = "object"
226
+ properties {
227
+ ["from"] = new JsonSchema {
228
+ type = "string"
229
+ enum = new Listing { "lib" }
230
+ }
231
+ ["name"] = new JsonSchema {
232
+ oneOf = new Listing {
233
+ new JsonSchema {
234
+ type = "string"
235
+ }
236
+ new JsonSchema {
237
+ type = "array"
238
+ items = new JsonSchema {
239
+ type = "string"
240
+ }
241
+ minItems = 1
242
+ uniqueItems = true
243
+ }
244
+ }
245
+ }
246
+ }
247
+ required = new Listing { "from"; "name" }
248
+ additionalProperties = false
249
+ }
250
+ new JsonSchema {
251
+ type = "object"
252
+ properties {
253
+ ["from"] = new JsonSchema {
254
+ type = "string"
255
+ enum = new Listing { "package" }
256
+ }
257
+ ["name"] = new JsonSchema {
258
+ oneOf = new Listing {
259
+ new JsonSchema {
260
+ type = "string"
261
+ }
262
+ new JsonSchema {
263
+ type = "array"
264
+ items = new JsonSchema {
265
+ type = "string"
266
+ }
267
+ minItems = 1
268
+ uniqueItems = true
269
+ }
270
+ }
271
+ }
272
+ ["package"] = new JsonSchema {
273
+ type = "string"
274
+ }
275
+ }
276
+ required = new Listing { "from"; "name"; "package" }
277
+ additionalProperties = false
278
+ }
279
+ }
280
+ }
281
+ default = new Listing { }
282
+ }
283
+ ["allowForKnownSafePromises"] = new JsonSchema {
284
+ description = "Type specifiers that are known to be safe to float."
285
+ type = "array"
286
+ items = new JsonSchema {
287
+ oneOf = new Listing {
288
+ new JsonSchema {
289
+ type = "string"
290
+ }
291
+ new JsonSchema {
292
+ type = "object"
293
+ properties {
294
+ ["from"] = new JsonSchema {
295
+ type = "string"
296
+ enum = new Listing { "file" }
297
+ }
298
+ ["name"] = new JsonSchema {
299
+ oneOf = new Listing {
300
+ new JsonSchema {
301
+ type = "string"
302
+ }
303
+ new JsonSchema {
304
+ type = "array"
305
+ items = new JsonSchema {
306
+ type = "string"
307
+ }
308
+ minItems = 1
309
+ uniqueItems = true
310
+ }
311
+ }
312
+ }
313
+ ["path"] = new JsonSchema {
314
+ type = "string"
315
+ }
316
+ }
317
+ required = new Listing { "from"; "name" }
318
+ additionalProperties = false
319
+ }
320
+ new JsonSchema {
321
+ type = "object"
322
+ properties {
323
+ ["from"] = new JsonSchema {
324
+ type = "string"
325
+ enum = new Listing { "lib" }
326
+ }
327
+ ["name"] = new JsonSchema {
328
+ oneOf = new Listing {
329
+ new JsonSchema {
330
+ type = "string"
331
+ }
332
+ new JsonSchema {
333
+ type = "array"
334
+ items = new JsonSchema {
335
+ type = "string"
336
+ }
337
+ minItems = 1
338
+ uniqueItems = true
339
+ }
340
+ }
341
+ }
342
+ }
343
+ required = new Listing { "from"; "name" }
344
+ additionalProperties = false
345
+ }
346
+ new JsonSchema {
347
+ type = "object"
348
+ properties {
349
+ ["from"] = new JsonSchema {
350
+ type = "string"
351
+ enum = new Listing { "package" }
352
+ }
353
+ ["name"] = new JsonSchema {
354
+ oneOf = new Listing {
355
+ new JsonSchema {
356
+ type = "string"
357
+ }
358
+ new JsonSchema {
359
+ type = "array"
360
+ items = new JsonSchema {
361
+ type = "string"
362
+ }
363
+ minItems = 1
364
+ uniqueItems = true
365
+ }
366
+ }
367
+ }
368
+ ["package"] = new JsonSchema {
369
+ type = "string"
370
+ }
371
+ }
372
+ required = new Listing { "from"; "name"; "package" }
373
+ additionalProperties = false
374
+ }
375
+ }
376
+ }
377
+ default = new Listing { }
378
+ }
379
+ ["checkThenables"] = new JsonSchema {
380
+ description = "Whether to check all \"Thenable\"s, not just the built-in Promise type."
381
+ type = "boolean"
382
+ default = false
383
+ }
384
+ ["ignoreIIFE"] = new JsonSchema {
385
+ description = "Whether to ignore async IIFEs (Immediately Invoked Function Expressions)."
386
+ type = "boolean"
387
+ default = false
388
+ }
389
+ ["ignoreVoid"] = new JsonSchema {
390
+ description = "Whether to ignore `void` expressions."
391
+ type = "boolean"
392
+ default = true
393
+ }
394
+ }
395
+ additionalProperties = false
396
+ }