@quentinhsu/biome-config 0.2.0 → 0.2.1

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.
Files changed (33) hide show
  1. package/README.md +44 -0
  2. package/package.json +7 -4
  3. package/dist/build.mjs +0 -387
  4. package/dist/index.jsonc +0 -152
  5. package/dist/index.mjs +0 -357
  6. package/dist/next.jsonc +0 -169
  7. package/dist/nuxt.jsonc +0 -224
  8. package/dist/react.jsonc +0 -167
  9. package/dist/types/scripts/generate-biome-types.d.ts +0 -1
  10. package/dist/types/scripts/generate-changelog.d.ts +0 -6
  11. package/dist/types/src/build.d.ts +0 -1
  12. package/dist/types/src/constants/biome.d.ts +0 -1
  13. package/dist/types/src/generated/biome/index.d.ts +0 -11
  14. package/dist/types/src/generated/biome/no-compare-neg-zero-configuration.d.ts +0 -986
  15. package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +0 -306
  16. package/dist/types/src/generated/biome/no-nested-ternary-options.d.ts +0 -292
  17. package/dist/types/src/generated/biome/no-octal-escape-options.d.ts +0 -1138
  18. package/dist/types/src/generated/biome/no-shadow-configuration.d.ts +0 -241
  19. package/dist/types/src/generated/biome/nursery.d.ts +0 -1023
  20. package/dist/types/src/generated/biome/rule-with-no-duplicate-custom-properties-options.d.ts +0 -1095
  21. package/dist/types/src/generated/biome/rule-with-no-useless-catch-options.d.ts +0 -1430
  22. package/dist/types/src/generated/biome/rule-with-use-image-size-options.d.ts +0 -1339
  23. package/dist/types/src/generated/biome/schema.d.ts +0 -291
  24. package/dist/types/src/generated/biome/use-valid-lang-configuration.d.ts +0 -163
  25. package/dist/types/src/index.d.ts +0 -15
  26. package/dist/types/src/presets/next.d.ts +0 -1
  27. package/dist/types/src/presets/nuxt.d.ts +0 -1
  28. package/dist/types/src/presets/react.d.ts +0 -1
  29. package/dist/types/src/presets/vue.d.ts +0 -1
  30. package/dist/types/src/source/index.d.ts +0 -2
  31. package/dist/types/src/types.d.ts +0 -1
  32. package/dist/types/src/utils/merge.d.ts +0 -2
  33. package/dist/vue.jsonc +0 -176
@@ -1,1339 +0,0 @@
1
- import type { FixKind, RulePlainConfiguration } from './schema.ts';
2
- import type { NoAccumulatingSpreadOptions, NoAwaitInLoopsOptions, NoBarrelFileOptions, NoBlankTargetOptions, NoCommonJsOptions, NoDangerouslySetInnerHtmlOptions, NoDangerouslySetInnerHtmlWithChildrenOptions, NoDefaultExportOptions, NoDeleteOptions, NoDescendingSpecificityOptions, NoDoneCallbackOptions, NoDynamicNamespaceImportAccessOptions, NoEnumOptions, NoExportedImportsOptions, NoGlobalEvalOptions, NoHeadElementOptions, NoImgElementOptions, NoImplicitBooleanOptions, NoInferrableTypesOptions, NoMagicNumbersOptions, NoNamespaceImportOptions, NoNamespaceOptions, NoNegationElseOptions, NoReExportAllOptions, NoUnwantedPolyfillioOptions, UseGoogleFontPreconnectOptions, UseImageSizeOptions, UseMaxParamsOptions, UseQwikClasslistOptions, UseQwikMethodUsageOptions, UseQwikValidLexicalScopeOptions, UseReactFunctionComponentsOptions, UseSolidForComponentOptions, UseSortedClassesOptions, UseTopLevelRegexOptions, UseVueMultiWordComponentNamesOptions } from './no-global-object-calls-options.ts';
3
- import type { Accessibility, ConsistentArrayType, CustomRestrictedTypeOptions, FilenameCase, Format, NoAlertOptions, NoApproximativeNumericConstantOptions, NoArrayIndexKeyOptions, NoAssignInExpressionsOptions, NoAsyncPromiseExecutorOptions, NoBiomeFirstExceptionOptions, NoBitwiseOperatorsOptions, NoCatchAssignOptions, NoClassAssignOptions, NoCommentTextOptions, NoCompareNegZeroOptions, NoConfusingLabelsOptions, NoConfusingVoidTypeOptions, NoConsoleOptions, NoConstEnumOptions, NoConstantBinaryExpressionsOptions, NoControlCharactersInRegexOptions, NoDebuggerOptions, NoDocumentCookieOptions, NoDocumentImportInPageOptions, NoDoubleEqualsOptions, NoDuplicateAtImportRulesOptions, NoDuplicateCaseOptions, NoDuplicateClassMembersOptions, NoNestedTernaryOptions, NoNonNullAssertionOptions, NoParameterPropertiesOptions, NoProcessEnvOptions, NoRestrictedGlobalsOptions, NoShoutyConstantsOptions, NoSubstrOptions, NoUnusedTemplateLiteralOptions, NoUselessElseOptions, NoValueAtRuleOptions, NoYodaExpressionOptions, ObjectPropertySyntax, PathOptions, PropertyAssignmentMode, RestrictedModifier, Style2, UseArrayLiteralsOptions, UseAsConstAssertionOptions, UseAtIndexOptions, UseBlockStatementsOptions, UseCollapsedElseIfOptions, UseCollapsedIfOptions, UseComponentExportOnlyModulesOptions, UseConsistentBuiltinInstantiationOptions, UseConsistentCurlyBracesOptions, UseConstOptions, UseDefaultParameterLastOptions, UseDefaultSwitchClauseOptions, UseDeprecatedReasonOptions, UseEnumInitializersOptions, UseExplicitLengthCheckOptions, UseExponentiationOperatorOptions, UseExportTypeOptions, UseExportsLastOptions, UseForOfOptions, UseFragmentSyntaxOptions, UseGraphqlNamingConventionOptions, UseGroupedAccessorPairsOptions, UseLiteralEnumMembersOptions, UseNodeAssertStrictOptions, UseNodejsImportProtocolOptions, UseNumberNamespaceOptions, UseNumericSeparatorsOptions, UseObjectSpreadOptions, UseReadonlyClassPropertiesOptions, UseSelfClosingElementsOptions, UseShorthandAssignOptions, UseShorthandFunctionTypeOptions, UseSingleVarDeclaratorOptions, UseSymbolDescriptionOptions, UseTemplateOptions, UseThrowNewErrorOptions, UseThrowOnlyErrorOptions, UseTrimStartEndOptions, UseUnifiedTypeSignaturesOptions } from './no-nested-ternary-options.ts';
4
- export interface RuleWithUseImageSizeOptions {
5
- /**
6
- * The severity of the emitted diagnostics by the rule
7
- */
8
- level: RulePlainConfiguration;
9
- /**
10
- * Rule's options
11
- */
12
- options: UseImageSizeOptions;
13
- }
14
- export interface RuleWithUseMaxParamsOptions {
15
- /**
16
- * The severity of the emitted diagnostics by the rule
17
- */
18
- level: RulePlainConfiguration;
19
- /**
20
- * Rule's options
21
- */
22
- options: UseMaxParamsOptions;
23
- }
24
- export interface RuleWithUseQwikClasslistOptions {
25
- /**
26
- * The severity of the emitted diagnostics by the rule
27
- */
28
- level: RulePlainConfiguration;
29
- /**
30
- * Rule's options
31
- */
32
- options: UseQwikClasslistOptions;
33
- }
34
- export interface RuleWithUseQwikMethodUsageOptions {
35
- /**
36
- * The severity of the emitted diagnostics by the rule
37
- */
38
- level: RulePlainConfiguration;
39
- /**
40
- * Rule's options
41
- */
42
- options: UseQwikMethodUsageOptions;
43
- }
44
- export interface RuleWithUseQwikValidLexicalScopeOptions {
45
- /**
46
- * The severity of the emitted diagnostics by the rule
47
- */
48
- level: RulePlainConfiguration;
49
- /**
50
- * Rule's options
51
- */
52
- options: UseQwikValidLexicalScopeOptions;
53
- }
54
- export interface RuleWithUseReactFunctionComponentsOptions {
55
- /**
56
- * The severity of the emitted diagnostics by the rule
57
- */
58
- level: RulePlainConfiguration;
59
- /**
60
- * Rule's options
61
- */
62
- options: UseReactFunctionComponentsOptions;
63
- }
64
- export interface RuleWithUseSortedClassesOptions {
65
- /**
66
- * The kind of the code actions emitted by the rule
67
- */
68
- fix?: FixKind | null;
69
- /**
70
- * The severity of the emitted diagnostics by the rule
71
- */
72
- level: RulePlainConfiguration;
73
- /**
74
- * Rule's options
75
- */
76
- options: UseSortedClassesOptions;
77
- }
78
- export interface RuleWithUseVueMultiWordComponentNamesOptions {
79
- /**
80
- * The severity of the emitted diagnostics by the rule
81
- */
82
- level: RulePlainConfiguration;
83
- /**
84
- * Rule's options
85
- */
86
- options: UseVueMultiWordComponentNamesOptions;
87
- }
88
- export interface RuleWithNoAccumulatingSpreadOptions {
89
- /**
90
- * The severity of the emitted diagnostics by the rule
91
- */
92
- level: RulePlainConfiguration;
93
- /**
94
- * Rule's options
95
- */
96
- options: NoAccumulatingSpreadOptions;
97
- }
98
- export interface RuleWithNoAwaitInLoopsOptions {
99
- /**
100
- * The severity of the emitted diagnostics by the rule
101
- */
102
- level: RulePlainConfiguration;
103
- /**
104
- * Rule's options
105
- */
106
- options: NoAwaitInLoopsOptions;
107
- }
108
- export interface RuleWithNoBarrelFileOptions {
109
- /**
110
- * The severity of the emitted diagnostics by the rule
111
- */
112
- level: RulePlainConfiguration;
113
- /**
114
- * Rule's options
115
- */
116
- options: NoBarrelFileOptions;
117
- }
118
- export interface RuleWithNoDeleteOptions {
119
- /**
120
- * The kind of the code actions emitted by the rule
121
- */
122
- fix?: FixKind | null;
123
- /**
124
- * The severity of the emitted diagnostics by the rule
125
- */
126
- level: RulePlainConfiguration;
127
- /**
128
- * Rule's options
129
- */
130
- options: NoDeleteOptions;
131
- }
132
- export interface RuleWithNoDynamicNamespaceImportAccessOptions {
133
- /**
134
- * The severity of the emitted diagnostics by the rule
135
- */
136
- level: RulePlainConfiguration;
137
- /**
138
- * Rule's options
139
- */
140
- options: NoDynamicNamespaceImportAccessOptions;
141
- }
142
- export interface RuleWithNoImgElementOptions {
143
- /**
144
- * The severity of the emitted diagnostics by the rule
145
- */
146
- level: RulePlainConfiguration;
147
- /**
148
- * Rule's options
149
- */
150
- options: NoImgElementOptions;
151
- }
152
- export interface RuleWithNoNamespaceImportOptions {
153
- /**
154
- * The severity of the emitted diagnostics by the rule
155
- */
156
- level: RulePlainConfiguration;
157
- /**
158
- * Rule's options
159
- */
160
- options: NoNamespaceImportOptions;
161
- }
162
- export interface RuleWithNoReExportAllOptions {
163
- /**
164
- * The severity of the emitted diagnostics by the rule
165
- */
166
- level: RulePlainConfiguration;
167
- /**
168
- * Rule's options
169
- */
170
- options: NoReExportAllOptions;
171
- }
172
- export interface RuleWithNoUnwantedPolyfillioOptions {
173
- /**
174
- * The severity of the emitted diagnostics by the rule
175
- */
176
- level: RulePlainConfiguration;
177
- /**
178
- * Rule's options
179
- */
180
- options: NoUnwantedPolyfillioOptions;
181
- }
182
- export interface RuleWithUseGoogleFontPreconnectOptions {
183
- /**
184
- * The kind of the code actions emitted by the rule
185
- */
186
- fix?: FixKind | null;
187
- /**
188
- * The severity of the emitted diagnostics by the rule
189
- */
190
- level: RulePlainConfiguration;
191
- /**
192
- * Rule's options
193
- */
194
- options: UseGoogleFontPreconnectOptions;
195
- }
196
- export interface RuleWithUseSolidForComponentOptions {
197
- /**
198
- * The severity of the emitted diagnostics by the rule
199
- */
200
- level: RulePlainConfiguration;
201
- /**
202
- * Rule's options
203
- */
204
- options: UseSolidForComponentOptions;
205
- }
206
- export interface RuleWithUseTopLevelRegexOptions {
207
- /**
208
- * The severity of the emitted diagnostics by the rule
209
- */
210
- level: RulePlainConfiguration;
211
- /**
212
- * Rule's options
213
- */
214
- options: UseTopLevelRegexOptions;
215
- }
216
- export interface RuleWithNoBlankTargetOptions {
217
- /**
218
- * The kind of the code actions emitted by the rule
219
- */
220
- fix?: FixKind | null;
221
- /**
222
- * The severity of the emitted diagnostics by the rule
223
- */
224
- level: RulePlainConfiguration;
225
- /**
226
- * Rule's options
227
- */
228
- options: NoBlankTargetOptions;
229
- }
230
- export interface RuleWithNoDangerouslySetInnerHtmlOptions {
231
- /**
232
- * The severity of the emitted diagnostics by the rule
233
- */
234
- level: RulePlainConfiguration;
235
- /**
236
- * Rule's options
237
- */
238
- options: NoDangerouslySetInnerHtmlOptions;
239
- }
240
- export interface RuleWithNoDangerouslySetInnerHtmlWithChildrenOptions {
241
- /**
242
- * The severity of the emitted diagnostics by the rule
243
- */
244
- level: RulePlainConfiguration;
245
- /**
246
- * Rule's options
247
- */
248
- options: NoDangerouslySetInnerHtmlWithChildrenOptions;
249
- }
250
- export interface RuleWithNoGlobalEvalOptions {
251
- /**
252
- * The severity of the emitted diagnostics by the rule
253
- */
254
- level: RulePlainConfiguration;
255
- /**
256
- * Rule's options
257
- */
258
- options: NoGlobalEvalOptions;
259
- }
260
- export interface RuleWithNoCommonJsOptions {
261
- /**
262
- * The severity of the emitted diagnostics by the rule
263
- */
264
- level: RulePlainConfiguration;
265
- /**
266
- * Rule's options
267
- */
268
- options: NoCommonJsOptions;
269
- }
270
- export interface RuleWithNoDefaultExportOptions {
271
- /**
272
- * The severity of the emitted diagnostics by the rule
273
- */
274
- level: RulePlainConfiguration;
275
- /**
276
- * Rule's options
277
- */
278
- options: NoDefaultExportOptions;
279
- }
280
- export interface RuleWithNoDescendingSpecificityOptions {
281
- /**
282
- * The severity of the emitted diagnostics by the rule
283
- */
284
- level: RulePlainConfiguration;
285
- /**
286
- * Rule's options
287
- */
288
- options: NoDescendingSpecificityOptions;
289
- }
290
- export interface RuleWithNoDoneCallbackOptions {
291
- /**
292
- * The severity of the emitted diagnostics by the rule
293
- */
294
- level: RulePlainConfiguration;
295
- /**
296
- * Rule's options
297
- */
298
- options: NoDoneCallbackOptions;
299
- }
300
- export interface RuleWithNoEnumOptions {
301
- /**
302
- * The severity of the emitted diagnostics by the rule
303
- */
304
- level: RulePlainConfiguration;
305
- /**
306
- * Rule's options
307
- */
308
- options: NoEnumOptions;
309
- }
310
- export interface RuleWithNoExportedImportsOptions {
311
- /**
312
- * The severity of the emitted diagnostics by the rule
313
- */
314
- level: RulePlainConfiguration;
315
- /**
316
- * Rule's options
317
- */
318
- options: NoExportedImportsOptions;
319
- }
320
- export interface RuleWithNoHeadElementOptions {
321
- /**
322
- * The severity of the emitted diagnostics by the rule
323
- */
324
- level: RulePlainConfiguration;
325
- /**
326
- * Rule's options
327
- */
328
- options: NoHeadElementOptions;
329
- }
330
- export interface RuleWithNoImplicitBooleanOptions {
331
- /**
332
- * The kind of the code actions emitted by the rule
333
- */
334
- fix?: FixKind | null;
335
- /**
336
- * The severity of the emitted diagnostics by the rule
337
- */
338
- level: RulePlainConfiguration;
339
- /**
340
- * Rule's options
341
- */
342
- options: NoImplicitBooleanOptions;
343
- }
344
- export interface RuleWithNoInferrableTypesOptions {
345
- /**
346
- * The kind of the code actions emitted by the rule
347
- */
348
- fix?: FixKind | null;
349
- /**
350
- * The severity of the emitted diagnostics by the rule
351
- */
352
- level: RulePlainConfiguration;
353
- /**
354
- * Rule's options
355
- */
356
- options: NoInferrableTypesOptions;
357
- }
358
- export interface RuleWithNoMagicNumbersOptions {
359
- /**
360
- * The severity of the emitted diagnostics by the rule
361
- */
362
- level: RulePlainConfiguration;
363
- /**
364
- * Rule's options
365
- */
366
- options: NoMagicNumbersOptions;
367
- }
368
- export interface RuleWithNoNamespaceOptions {
369
- /**
370
- * The severity of the emitted diagnostics by the rule
371
- */
372
- level: RulePlainConfiguration;
373
- /**
374
- * Rule's options
375
- */
376
- options: NoNamespaceOptions;
377
- }
378
- export interface RuleWithNoNegationElseOptions {
379
- /**
380
- * The kind of the code actions emitted by the rule
381
- */
382
- fix?: FixKind | null;
383
- /**
384
- * The severity of the emitted diagnostics by the rule
385
- */
386
- level: RulePlainConfiguration;
387
- /**
388
- * Rule's options
389
- */
390
- options: NoNegationElseOptions;
391
- }
392
- export interface RuleWithNoNestedTernaryOptions {
393
- /**
394
- * The severity of the emitted diagnostics by the rule
395
- */
396
- level: RulePlainConfiguration;
397
- /**
398
- * Rule's options
399
- */
400
- options: NoNestedTernaryOptions;
401
- }
402
- export interface RuleWithNoNonNullAssertionOptions {
403
- /**
404
- * The kind of the code actions emitted by the rule
405
- */
406
- fix?: FixKind | null;
407
- /**
408
- * The severity of the emitted diagnostics by the rule
409
- */
410
- level: RulePlainConfiguration;
411
- /**
412
- * Rule's options
413
- */
414
- options: NoNonNullAssertionOptions;
415
- }
416
- export interface NoParameterAssignOptions {
417
- /**
418
- * Whether to report an error when a dependency is listed in the dependencies array but isn't used. Defaults to `allow`.
419
- */
420
- propertyAssignment?: PropertyAssignmentMode & string;
421
- }
422
- export interface RuleWithNoParameterPropertiesOptions {
423
- /**
424
- * The severity of the emitted diagnostics by the rule
425
- */
426
- level: RulePlainConfiguration;
427
- /**
428
- * Rule's options
429
- */
430
- options: NoParameterPropertiesOptions;
431
- }
432
- export interface RuleWithNoProcessEnvOptions {
433
- /**
434
- * The severity of the emitted diagnostics by the rule
435
- */
436
- level: RulePlainConfiguration;
437
- /**
438
- * Rule's options
439
- */
440
- options: NoProcessEnvOptions;
441
- }
442
- export interface RuleWithNoRestrictedGlobalsOptions {
443
- /**
444
- * The severity of the emitted diagnostics by the rule
445
- */
446
- level: RulePlainConfiguration;
447
- /**
448
- * Rule's options
449
- */
450
- options: NoRestrictedGlobalsOptions;
451
- }
452
- export type Paths = string | PathOptions;
453
- export type CustomRestrictedType = string | CustomRestrictedTypeOptions;
454
- export interface RuleWithNoShoutyConstantsOptions {
455
- /**
456
- * The kind of the code actions emitted by the rule
457
- */
458
- fix?: FixKind | null;
459
- /**
460
- * The severity of the emitted diagnostics by the rule
461
- */
462
- level: RulePlainConfiguration;
463
- /**
464
- * Rule's options
465
- */
466
- options: NoShoutyConstantsOptions;
467
- }
468
- export interface RuleWithNoSubstrOptions {
469
- /**
470
- * The kind of the code actions emitted by the rule
471
- */
472
- fix?: FixKind | null;
473
- /**
474
- * The severity of the emitted diagnostics by the rule
475
- */
476
- level: RulePlainConfiguration;
477
- /**
478
- * Rule's options
479
- */
480
- options: NoSubstrOptions;
481
- }
482
- export interface RuleWithNoUnusedTemplateLiteralOptions {
483
- /**
484
- * The kind of the code actions emitted by the rule
485
- */
486
- fix?: FixKind | null;
487
- /**
488
- * The severity of the emitted diagnostics by the rule
489
- */
490
- level: RulePlainConfiguration;
491
- /**
492
- * Rule's options
493
- */
494
- options: NoUnusedTemplateLiteralOptions;
495
- }
496
- export interface RuleWithNoUselessElseOptions {
497
- /**
498
- * The kind of the code actions emitted by the rule
499
- */
500
- fix?: FixKind | null;
501
- /**
502
- * The severity of the emitted diagnostics by the rule
503
- */
504
- level: RulePlainConfiguration;
505
- /**
506
- * Rule's options
507
- */
508
- options: NoUselessElseOptions;
509
- }
510
- export interface RuleWithNoValueAtRuleOptions {
511
- /**
512
- * The severity of the emitted diagnostics by the rule
513
- */
514
- level: RulePlainConfiguration;
515
- /**
516
- * Rule's options
517
- */
518
- options: NoValueAtRuleOptions;
519
- }
520
- export interface RuleWithNoYodaExpressionOptions {
521
- /**
522
- * The kind of the code actions emitted by the rule
523
- */
524
- fix?: FixKind | null;
525
- /**
526
- * The severity of the emitted diagnostics by the rule
527
- */
528
- level: RulePlainConfiguration;
529
- /**
530
- * Rule's options
531
- */
532
- options: NoYodaExpressionOptions;
533
- }
534
- export interface RuleWithUseArrayLiteralsOptions {
535
- /**
536
- * The kind of the code actions emitted by the rule
537
- */
538
- fix?: FixKind | null;
539
- /**
540
- * The severity of the emitted diagnostics by the rule
541
- */
542
- level: RulePlainConfiguration;
543
- /**
544
- * Rule's options
545
- */
546
- options: UseArrayLiteralsOptions;
547
- }
548
- export interface RuleWithUseAsConstAssertionOptions {
549
- /**
550
- * The kind of the code actions emitted by the rule
551
- */
552
- fix?: FixKind | null;
553
- /**
554
- * The severity of the emitted diagnostics by the rule
555
- */
556
- level: RulePlainConfiguration;
557
- /**
558
- * Rule's options
559
- */
560
- options: UseAsConstAssertionOptions;
561
- }
562
- export interface RuleWithUseAtIndexOptions {
563
- /**
564
- * The kind of the code actions emitted by the rule
565
- */
566
- fix?: FixKind | null;
567
- /**
568
- * The severity of the emitted diagnostics by the rule
569
- */
570
- level: RulePlainConfiguration;
571
- /**
572
- * Rule's options
573
- */
574
- options: UseAtIndexOptions;
575
- }
576
- export interface RuleWithUseBlockStatementsOptions {
577
- /**
578
- * The kind of the code actions emitted by the rule
579
- */
580
- fix?: FixKind | null;
581
- /**
582
- * The severity of the emitted diagnostics by the rule
583
- */
584
- level: RulePlainConfiguration;
585
- /**
586
- * Rule's options
587
- */
588
- options: UseBlockStatementsOptions;
589
- }
590
- export interface RuleWithUseCollapsedElseIfOptions {
591
- /**
592
- * The kind of the code actions emitted by the rule
593
- */
594
- fix?: FixKind | null;
595
- /**
596
- * The severity of the emitted diagnostics by the rule
597
- */
598
- level: RulePlainConfiguration;
599
- /**
600
- * Rule's options
601
- */
602
- options: UseCollapsedElseIfOptions;
603
- }
604
- export interface RuleWithUseCollapsedIfOptions {
605
- /**
606
- * The kind of the code actions emitted by the rule
607
- */
608
- fix?: FixKind | null;
609
- /**
610
- * The severity of the emitted diagnostics by the rule
611
- */
612
- level: RulePlainConfiguration;
613
- /**
614
- * Rule's options
615
- */
616
- options: UseCollapsedIfOptions;
617
- }
618
- export interface RuleWithUseComponentExportOnlyModulesOptions {
619
- /**
620
- * The severity of the emitted diagnostics by the rule
621
- */
622
- level: RulePlainConfiguration;
623
- /**
624
- * Rule's options
625
- */
626
- options: UseComponentExportOnlyModulesOptions;
627
- }
628
- export interface UseConsistentArrayTypeOptions {
629
- syntax?: ConsistentArrayType & string;
630
- }
631
- export interface RuleWithUseConsistentBuiltinInstantiationOptions {
632
- /**
633
- * The kind of the code actions emitted by the rule
634
- */
635
- fix?: FixKind | null;
636
- /**
637
- * The severity of the emitted diagnostics by the rule
638
- */
639
- level: RulePlainConfiguration;
640
- /**
641
- * Rule's options
642
- */
643
- options: UseConsistentBuiltinInstantiationOptions;
644
- }
645
- export interface RuleWithUseConsistentCurlyBracesOptions {
646
- /**
647
- * The kind of the code actions emitted by the rule
648
- */
649
- fix?: FixKind | null;
650
- /**
651
- * The severity of the emitted diagnostics by the rule
652
- */
653
- level: RulePlainConfiguration;
654
- /**
655
- * Rule's options
656
- */
657
- options: UseConsistentCurlyBracesOptions;
658
- }
659
- export interface UseConsistentMemberAccessibilityOptions {
660
- /**
661
- * The kind of accessibility you want to enforce. Default to "noPublic"
662
- */
663
- accessibility?: Accessibility & string;
664
- }
665
- export interface UseConsistentObjectDefinitionsOptions {
666
- /**
667
- * The preferred syntax to enforce.
668
- */
669
- syntax?: ObjectPropertySyntax & string;
670
- }
671
- export interface RuleWithUseConstOptions {
672
- /**
673
- * The kind of the code actions emitted by the rule
674
- */
675
- fix?: FixKind | null;
676
- /**
677
- * The severity of the emitted diagnostics by the rule
678
- */
679
- level: RulePlainConfiguration;
680
- /**
681
- * Rule's options
682
- */
683
- options: UseConstOptions;
684
- }
685
- export interface RuleWithUseDefaultParameterLastOptions {
686
- /**
687
- * The kind of the code actions emitted by the rule
688
- */
689
- fix?: FixKind | null;
690
- /**
691
- * The severity of the emitted diagnostics by the rule
692
- */
693
- level: RulePlainConfiguration;
694
- /**
695
- * Rule's options
696
- */
697
- options: UseDefaultParameterLastOptions;
698
- }
699
- export interface RuleWithUseDefaultSwitchClauseOptions {
700
- /**
701
- * The severity of the emitted diagnostics by the rule
702
- */
703
- level: RulePlainConfiguration;
704
- /**
705
- * Rule's options
706
- */
707
- options: UseDefaultSwitchClauseOptions;
708
- }
709
- export interface RuleWithUseDeprecatedReasonOptions {
710
- /**
711
- * The severity of the emitted diagnostics by the rule
712
- */
713
- level: RulePlainConfiguration;
714
- /**
715
- * Rule's options
716
- */
717
- options: UseDeprecatedReasonOptions;
718
- }
719
- export interface RuleWithUseEnumInitializersOptions {
720
- /**
721
- * The kind of the code actions emitted by the rule
722
- */
723
- fix?: FixKind | null;
724
- /**
725
- * The severity of the emitted diagnostics by the rule
726
- */
727
- level: RulePlainConfiguration;
728
- /**
729
- * Rule's options
730
- */
731
- options: UseEnumInitializersOptions;
732
- }
733
- export interface RuleWithUseExplicitLengthCheckOptions {
734
- /**
735
- * The kind of the code actions emitted by the rule
736
- */
737
- fix?: FixKind | null;
738
- /**
739
- * The severity of the emitted diagnostics by the rule
740
- */
741
- level: RulePlainConfiguration;
742
- /**
743
- * Rule's options
744
- */
745
- options: UseExplicitLengthCheckOptions;
746
- }
747
- export interface RuleWithUseExponentiationOperatorOptions {
748
- /**
749
- * The kind of the code actions emitted by the rule
750
- */
751
- fix?: FixKind | null;
752
- /**
753
- * The severity of the emitted diagnostics by the rule
754
- */
755
- level: RulePlainConfiguration;
756
- /**
757
- * Rule's options
758
- */
759
- options: UseExponentiationOperatorOptions;
760
- }
761
- export interface RuleWithUseExportTypeOptions {
762
- /**
763
- * The kind of the code actions emitted by the rule
764
- */
765
- fix?: FixKind | null;
766
- /**
767
- * The severity of the emitted diagnostics by the rule
768
- */
769
- level: RulePlainConfiguration;
770
- /**
771
- * Rule's options
772
- */
773
- options: UseExportTypeOptions;
774
- }
775
- export interface RuleWithUseExportsLastOptions {
776
- /**
777
- * The severity of the emitted diagnostics by the rule
778
- */
779
- level: RulePlainConfiguration;
780
- /**
781
- * Rule's options
782
- */
783
- options: UseExportsLastOptions;
784
- }
785
- export type FilenameCases = FilenameCase[];
786
- export interface RuleWithUseForOfOptions {
787
- /**
788
- * The severity of the emitted diagnostics by the rule
789
- */
790
- level: RulePlainConfiguration;
791
- /**
792
- * Rule's options
793
- */
794
- options: UseForOfOptions;
795
- }
796
- export interface RuleWithUseFragmentSyntaxOptions {
797
- /**
798
- * The kind of the code actions emitted by the rule
799
- */
800
- fix?: FixKind | null;
801
- /**
802
- * The severity of the emitted diagnostics by the rule
803
- */
804
- level: RulePlainConfiguration;
805
- /**
806
- * Rule's options
807
- */
808
- options: UseFragmentSyntaxOptions;
809
- }
810
- export interface RuleWithUseGraphqlNamingConventionOptions {
811
- /**
812
- * The severity of the emitted diagnostics by the rule
813
- */
814
- level: RulePlainConfiguration;
815
- /**
816
- * Rule's options
817
- */
818
- options: UseGraphqlNamingConventionOptions;
819
- }
820
- export interface RuleWithUseGroupedAccessorPairsOptions {
821
- /**
822
- * The severity of the emitted diagnostics by the rule
823
- */
824
- level: RulePlainConfiguration;
825
- /**
826
- * Rule's options
827
- */
828
- options: UseGroupedAccessorPairsOptions;
829
- }
830
- export interface UseImportTypeOptions {
831
- /**
832
- * The style to apply when import types. Default to "auto"
833
- */
834
- style?: Style2 & string;
835
- }
836
- export interface RuleWithUseLiteralEnumMembersOptions {
837
- /**
838
- * The severity of the emitted diagnostics by the rule
839
- */
840
- level: RulePlainConfiguration;
841
- /**
842
- * Rule's options
843
- */
844
- options: UseLiteralEnumMembersOptions;
845
- }
846
- export type Formats = Format[];
847
- export type Modifiers = RestrictedModifier[];
848
- export interface RuleWithUseNodeAssertStrictOptions {
849
- /**
850
- * The kind of the code actions emitted by the rule
851
- */
852
- fix?: FixKind | null;
853
- /**
854
- * The severity of the emitted diagnostics by the rule
855
- */
856
- level: RulePlainConfiguration;
857
- /**
858
- * Rule's options
859
- */
860
- options: UseNodeAssertStrictOptions;
861
- }
862
- export interface RuleWithUseNodejsImportProtocolOptions {
863
- /**
864
- * The kind of the code actions emitted by the rule
865
- */
866
- fix?: FixKind | null;
867
- /**
868
- * The severity of the emitted diagnostics by the rule
869
- */
870
- level: RulePlainConfiguration;
871
- /**
872
- * Rule's options
873
- */
874
- options: UseNodejsImportProtocolOptions;
875
- }
876
- export interface RuleWithUseNumberNamespaceOptions {
877
- /**
878
- * The kind of the code actions emitted by the rule
879
- */
880
- fix?: FixKind | null;
881
- /**
882
- * The severity of the emitted diagnostics by the rule
883
- */
884
- level: RulePlainConfiguration;
885
- /**
886
- * Rule's options
887
- */
888
- options: UseNumberNamespaceOptions;
889
- }
890
- export interface RuleWithUseNumericSeparatorsOptions {
891
- /**
892
- * The kind of the code actions emitted by the rule
893
- */
894
- fix?: FixKind | null;
895
- /**
896
- * The severity of the emitted diagnostics by the rule
897
- */
898
- level: RulePlainConfiguration;
899
- /**
900
- * Rule's options
901
- */
902
- options: UseNumericSeparatorsOptions;
903
- }
904
- export interface RuleWithUseObjectSpreadOptions {
905
- /**
906
- * The kind of the code actions emitted by the rule
907
- */
908
- fix?: FixKind | null;
909
- /**
910
- * The severity of the emitted diagnostics by the rule
911
- */
912
- level: RulePlainConfiguration;
913
- /**
914
- * Rule's options
915
- */
916
- options: UseObjectSpreadOptions;
917
- }
918
- export interface RuleWithUseReadonlyClassPropertiesOptions {
919
- /**
920
- * The kind of the code actions emitted by the rule
921
- */
922
- fix?: FixKind | null;
923
- /**
924
- * The severity of the emitted diagnostics by the rule
925
- */
926
- level: RulePlainConfiguration;
927
- /**
928
- * Rule's options
929
- */
930
- options: UseReadonlyClassPropertiesOptions;
931
- }
932
- export interface RuleWithUseSelfClosingElementsOptions {
933
- /**
934
- * The kind of the code actions emitted by the rule
935
- */
936
- fix?: FixKind | null;
937
- /**
938
- * The severity of the emitted diagnostics by the rule
939
- */
940
- level: RulePlainConfiguration;
941
- /**
942
- * Rule's options
943
- */
944
- options: UseSelfClosingElementsOptions;
945
- }
946
- export interface RuleWithUseShorthandAssignOptions {
947
- /**
948
- * The kind of the code actions emitted by the rule
949
- */
950
- fix?: FixKind | null;
951
- /**
952
- * The severity of the emitted diagnostics by the rule
953
- */
954
- level: RulePlainConfiguration;
955
- /**
956
- * Rule's options
957
- */
958
- options: UseShorthandAssignOptions;
959
- }
960
- export interface RuleWithUseShorthandFunctionTypeOptions {
961
- /**
962
- * The kind of the code actions emitted by the rule
963
- */
964
- fix?: FixKind | null;
965
- /**
966
- * The severity of the emitted diagnostics by the rule
967
- */
968
- level: RulePlainConfiguration;
969
- /**
970
- * Rule's options
971
- */
972
- options: UseShorthandFunctionTypeOptions;
973
- }
974
- export interface RuleWithUseSingleVarDeclaratorOptions {
975
- /**
976
- * The kind of the code actions emitted by the rule
977
- */
978
- fix?: FixKind | null;
979
- /**
980
- * The severity of the emitted diagnostics by the rule
981
- */
982
- level: RulePlainConfiguration;
983
- /**
984
- * Rule's options
985
- */
986
- options: UseSingleVarDeclaratorOptions;
987
- }
988
- export interface RuleWithUseSymbolDescriptionOptions {
989
- /**
990
- * The severity of the emitted diagnostics by the rule
991
- */
992
- level: RulePlainConfiguration;
993
- /**
994
- * Rule's options
995
- */
996
- options: UseSymbolDescriptionOptions;
997
- }
998
- export interface RuleWithUseTemplateOptions {
999
- /**
1000
- * The kind of the code actions emitted by the rule
1001
- */
1002
- fix?: FixKind | null;
1003
- /**
1004
- * The severity of the emitted diagnostics by the rule
1005
- */
1006
- level: RulePlainConfiguration;
1007
- /**
1008
- * Rule's options
1009
- */
1010
- options: UseTemplateOptions;
1011
- }
1012
- export interface RuleWithUseThrowNewErrorOptions {
1013
- /**
1014
- * The kind of the code actions emitted by the rule
1015
- */
1016
- fix?: FixKind | null;
1017
- /**
1018
- * The severity of the emitted diagnostics by the rule
1019
- */
1020
- level: RulePlainConfiguration;
1021
- /**
1022
- * Rule's options
1023
- */
1024
- options: UseThrowNewErrorOptions;
1025
- }
1026
- export interface RuleWithUseThrowOnlyErrorOptions {
1027
- /**
1028
- * The severity of the emitted diagnostics by the rule
1029
- */
1030
- level: RulePlainConfiguration;
1031
- /**
1032
- * Rule's options
1033
- */
1034
- options: UseThrowOnlyErrorOptions;
1035
- }
1036
- export interface RuleWithUseTrimStartEndOptions {
1037
- /**
1038
- * The kind of the code actions emitted by the rule
1039
- */
1040
- fix?: FixKind | null;
1041
- /**
1042
- * The severity of the emitted diagnostics by the rule
1043
- */
1044
- level: RulePlainConfiguration;
1045
- /**
1046
- * Rule's options
1047
- */
1048
- options: UseTrimStartEndOptions;
1049
- }
1050
- export interface RuleWithUseUnifiedTypeSignaturesOptions {
1051
- /**
1052
- * The kind of the code actions emitted by the rule
1053
- */
1054
- fix?: FixKind | null;
1055
- /**
1056
- * The severity of the emitted diagnostics by the rule
1057
- */
1058
- level: RulePlainConfiguration;
1059
- /**
1060
- * Rule's options
1061
- */
1062
- options: UseUnifiedTypeSignaturesOptions;
1063
- }
1064
- export interface RuleWithNoAlertOptions {
1065
- /**
1066
- * The severity of the emitted diagnostics by the rule
1067
- */
1068
- level: RulePlainConfiguration;
1069
- /**
1070
- * Rule's options
1071
- */
1072
- options: NoAlertOptions;
1073
- }
1074
- export interface RuleWithNoApproximativeNumericConstantOptions {
1075
- /**
1076
- * The kind of the code actions emitted by the rule
1077
- */
1078
- fix?: FixKind | null;
1079
- /**
1080
- * The severity of the emitted diagnostics by the rule
1081
- */
1082
- level: RulePlainConfiguration;
1083
- /**
1084
- * Rule's options
1085
- */
1086
- options: NoApproximativeNumericConstantOptions;
1087
- }
1088
- export interface RuleWithNoArrayIndexKeyOptions {
1089
- /**
1090
- * The severity of the emitted diagnostics by the rule
1091
- */
1092
- level: RulePlainConfiguration;
1093
- /**
1094
- * Rule's options
1095
- */
1096
- options: NoArrayIndexKeyOptions;
1097
- }
1098
- export interface RuleWithNoAssignInExpressionsOptions {
1099
- /**
1100
- * The severity of the emitted diagnostics by the rule
1101
- */
1102
- level: RulePlainConfiguration;
1103
- /**
1104
- * Rule's options
1105
- */
1106
- options: NoAssignInExpressionsOptions;
1107
- }
1108
- export interface RuleWithNoAsyncPromiseExecutorOptions {
1109
- /**
1110
- * The severity of the emitted diagnostics by the rule
1111
- */
1112
- level: RulePlainConfiguration;
1113
- /**
1114
- * Rule's options
1115
- */
1116
- options: NoAsyncPromiseExecutorOptions;
1117
- }
1118
- export interface RuleWithNoBiomeFirstExceptionOptions {
1119
- /**
1120
- * The kind of the code actions emitted by the rule
1121
- */
1122
- fix?: FixKind | null;
1123
- /**
1124
- * The severity of the emitted diagnostics by the rule
1125
- */
1126
- level: RulePlainConfiguration;
1127
- /**
1128
- * Rule's options
1129
- */
1130
- options: NoBiomeFirstExceptionOptions;
1131
- }
1132
- export interface RuleWithNoBitwiseOperatorsOptions {
1133
- /**
1134
- * The severity of the emitted diagnostics by the rule
1135
- */
1136
- level: RulePlainConfiguration;
1137
- /**
1138
- * Rule's options
1139
- */
1140
- options: NoBitwiseOperatorsOptions;
1141
- }
1142
- export interface RuleWithNoCatchAssignOptions {
1143
- /**
1144
- * The severity of the emitted diagnostics by the rule
1145
- */
1146
- level: RulePlainConfiguration;
1147
- /**
1148
- * Rule's options
1149
- */
1150
- options: NoCatchAssignOptions;
1151
- }
1152
- export interface RuleWithNoClassAssignOptions {
1153
- /**
1154
- * The severity of the emitted diagnostics by the rule
1155
- */
1156
- level: RulePlainConfiguration;
1157
- /**
1158
- * Rule's options
1159
- */
1160
- options: NoClassAssignOptions;
1161
- }
1162
- export interface RuleWithNoCommentTextOptions {
1163
- /**
1164
- * The kind of the code actions emitted by the rule
1165
- */
1166
- fix?: FixKind | null;
1167
- /**
1168
- * The severity of the emitted diagnostics by the rule
1169
- */
1170
- level: RulePlainConfiguration;
1171
- /**
1172
- * Rule's options
1173
- */
1174
- options: NoCommentTextOptions;
1175
- }
1176
- export interface RuleWithNoCompareNegZeroOptions {
1177
- /**
1178
- * The kind of the code actions emitted by the rule
1179
- */
1180
- fix?: FixKind | null;
1181
- /**
1182
- * The severity of the emitted diagnostics by the rule
1183
- */
1184
- level: RulePlainConfiguration;
1185
- /**
1186
- * Rule's options
1187
- */
1188
- options: NoCompareNegZeroOptions;
1189
- }
1190
- export interface RuleWithNoConfusingLabelsOptions {
1191
- /**
1192
- * The severity of the emitted diagnostics by the rule
1193
- */
1194
- level: RulePlainConfiguration;
1195
- /**
1196
- * Rule's options
1197
- */
1198
- options: NoConfusingLabelsOptions;
1199
- }
1200
- export interface RuleWithNoConfusingVoidTypeOptions {
1201
- /**
1202
- * The kind of the code actions emitted by the rule
1203
- */
1204
- fix?: FixKind | null;
1205
- /**
1206
- * The severity of the emitted diagnostics by the rule
1207
- */
1208
- level: RulePlainConfiguration;
1209
- /**
1210
- * Rule's options
1211
- */
1212
- options: NoConfusingVoidTypeOptions;
1213
- }
1214
- export interface RuleWithNoConsoleOptions {
1215
- /**
1216
- * The kind of the code actions emitted by the rule
1217
- */
1218
- fix?: FixKind | null;
1219
- /**
1220
- * The severity of the emitted diagnostics by the rule
1221
- */
1222
- level: RulePlainConfiguration;
1223
- /**
1224
- * Rule's options
1225
- */
1226
- options: NoConsoleOptions;
1227
- }
1228
- export interface RuleWithNoConstEnumOptions {
1229
- /**
1230
- * The kind of the code actions emitted by the rule
1231
- */
1232
- fix?: FixKind | null;
1233
- /**
1234
- * The severity of the emitted diagnostics by the rule
1235
- */
1236
- level: RulePlainConfiguration;
1237
- /**
1238
- * Rule's options
1239
- */
1240
- options: NoConstEnumOptions;
1241
- }
1242
- export interface RuleWithNoConstantBinaryExpressionsOptions {
1243
- /**
1244
- * The severity of the emitted diagnostics by the rule
1245
- */
1246
- level: RulePlainConfiguration;
1247
- /**
1248
- * Rule's options
1249
- */
1250
- options: NoConstantBinaryExpressionsOptions;
1251
- }
1252
- export interface RuleWithNoControlCharactersInRegexOptions {
1253
- /**
1254
- * The severity of the emitted diagnostics by the rule
1255
- */
1256
- level: RulePlainConfiguration;
1257
- /**
1258
- * Rule's options
1259
- */
1260
- options: NoControlCharactersInRegexOptions;
1261
- }
1262
- export interface RuleWithNoDebuggerOptions {
1263
- /**
1264
- * The kind of the code actions emitted by the rule
1265
- */
1266
- fix?: FixKind | null;
1267
- /**
1268
- * The severity of the emitted diagnostics by the rule
1269
- */
1270
- level: RulePlainConfiguration;
1271
- /**
1272
- * Rule's options
1273
- */
1274
- options: NoDebuggerOptions;
1275
- }
1276
- export interface RuleWithNoDocumentCookieOptions {
1277
- /**
1278
- * The severity of the emitted diagnostics by the rule
1279
- */
1280
- level: RulePlainConfiguration;
1281
- /**
1282
- * Rule's options
1283
- */
1284
- options: NoDocumentCookieOptions;
1285
- }
1286
- export interface RuleWithNoDocumentImportInPageOptions {
1287
- /**
1288
- * The severity of the emitted diagnostics by the rule
1289
- */
1290
- level: RulePlainConfiguration;
1291
- /**
1292
- * Rule's options
1293
- */
1294
- options: NoDocumentImportInPageOptions;
1295
- }
1296
- export interface RuleWithNoDoubleEqualsOptions {
1297
- /**
1298
- * The kind of the code actions emitted by the rule
1299
- */
1300
- fix?: FixKind | null;
1301
- /**
1302
- * The severity of the emitted diagnostics by the rule
1303
- */
1304
- level: RulePlainConfiguration;
1305
- /**
1306
- * Rule's options
1307
- */
1308
- options: NoDoubleEqualsOptions;
1309
- }
1310
- export interface RuleWithNoDuplicateAtImportRulesOptions {
1311
- /**
1312
- * The severity of the emitted diagnostics by the rule
1313
- */
1314
- level: RulePlainConfiguration;
1315
- /**
1316
- * Rule's options
1317
- */
1318
- options: NoDuplicateAtImportRulesOptions;
1319
- }
1320
- export interface RuleWithNoDuplicateCaseOptions {
1321
- /**
1322
- * The severity of the emitted diagnostics by the rule
1323
- */
1324
- level: RulePlainConfiguration;
1325
- /**
1326
- * Rule's options
1327
- */
1328
- options: NoDuplicateCaseOptions;
1329
- }
1330
- export interface RuleWithNoDuplicateClassMembersOptions {
1331
- /**
1332
- * The severity of the emitted diagnostics by the rule
1333
- */
1334
- level: RulePlainConfiguration;
1335
- /**
1336
- * Rule's options
1337
- */
1338
- options: NoDuplicateClassMembersOptions;
1339
- }