@biomejs/biome 1.8.0 → 1.8.2
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/README.ja.md +1 -1
- package/README.md +1 -1
- package/README.pt-br.md +1 -1
- package/README.zh-CN.md +1 -1
- package/configuration_schema.json +272 -229
- package/package.json +13 -11
|
@@ -83,77 +83,77 @@
|
|
|
83
83
|
"noAccessKey": {
|
|
84
84
|
"description": "Enforce that the accessKey attribute is not used on any HTML element.",
|
|
85
85
|
"anyOf": [
|
|
86
|
-
{ "$ref": "#/definitions/
|
|
86
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
87
87
|
{ "type": "null" }
|
|
88
88
|
]
|
|
89
89
|
},
|
|
90
90
|
"noAriaHiddenOnFocusable": {
|
|
91
91
|
"description": "Enforce that aria-hidden=\"true\" is not set on focusable elements.",
|
|
92
92
|
"anyOf": [
|
|
93
|
-
{ "$ref": "#/definitions/
|
|
93
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
94
94
|
{ "type": "null" }
|
|
95
95
|
]
|
|
96
96
|
},
|
|
97
97
|
"noAriaUnsupportedElements": {
|
|
98
98
|
"description": "Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.",
|
|
99
99
|
"anyOf": [
|
|
100
|
-
{ "$ref": "#/definitions/
|
|
100
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
101
101
|
{ "type": "null" }
|
|
102
102
|
]
|
|
103
103
|
},
|
|
104
104
|
"noAutofocus": {
|
|
105
105
|
"description": "Enforce that autoFocus prop is not used on elements.",
|
|
106
106
|
"anyOf": [
|
|
107
|
-
{ "$ref": "#/definitions/
|
|
107
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
108
108
|
{ "type": "null" }
|
|
109
109
|
]
|
|
110
110
|
},
|
|
111
111
|
"noBlankTarget": {
|
|
112
112
|
"description": "Disallow target=\"_blank\" attribute without rel=\"noreferrer\"",
|
|
113
113
|
"anyOf": [
|
|
114
|
-
{ "$ref": "#/definitions/
|
|
114
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
115
115
|
{ "type": "null" }
|
|
116
116
|
]
|
|
117
117
|
},
|
|
118
118
|
"noDistractingElements": {
|
|
119
119
|
"description": "Enforces that no distracting elements are used.",
|
|
120
120
|
"anyOf": [
|
|
121
|
-
{ "$ref": "#/definitions/
|
|
121
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
122
122
|
{ "type": "null" }
|
|
123
123
|
]
|
|
124
124
|
},
|
|
125
125
|
"noHeaderScope": {
|
|
126
126
|
"description": "The scope prop should be used only on \\<th> elements.",
|
|
127
127
|
"anyOf": [
|
|
128
|
-
{ "$ref": "#/definitions/
|
|
128
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
129
129
|
{ "type": "null" }
|
|
130
130
|
]
|
|
131
131
|
},
|
|
132
132
|
"noInteractiveElementToNoninteractiveRole": {
|
|
133
133
|
"description": "Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.",
|
|
134
134
|
"anyOf": [
|
|
135
|
-
{ "$ref": "#/definitions/
|
|
135
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
136
136
|
{ "type": "null" }
|
|
137
137
|
]
|
|
138
138
|
},
|
|
139
139
|
"noNoninteractiveElementToInteractiveRole": {
|
|
140
140
|
"description": "Enforce that interactive ARIA roles are not assigned to non-interactive HTML elements.",
|
|
141
141
|
"anyOf": [
|
|
142
|
-
{ "$ref": "#/definitions/
|
|
142
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
143
143
|
{ "type": "null" }
|
|
144
144
|
]
|
|
145
145
|
},
|
|
146
146
|
"noNoninteractiveTabindex": {
|
|
147
147
|
"description": "Enforce that tabIndex is not assigned to non-interactive HTML elements.",
|
|
148
148
|
"anyOf": [
|
|
149
|
-
{ "$ref": "#/definitions/
|
|
149
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
150
150
|
{ "type": "null" }
|
|
151
151
|
]
|
|
152
152
|
},
|
|
153
153
|
"noPositiveTabindex": {
|
|
154
154
|
"description": "Prevent the usage of positive integers on tabIndex property",
|
|
155
155
|
"anyOf": [
|
|
156
|
-
{ "$ref": "#/definitions/
|
|
156
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
157
157
|
{ "type": "null" }
|
|
158
158
|
]
|
|
159
159
|
},
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
"noRedundantRoles": {
|
|
168
168
|
"description": "Enforce explicit role property is not the same as implicit/default role property on an element.",
|
|
169
169
|
"anyOf": [
|
|
170
|
-
{ "$ref": "#/definitions/
|
|
170
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
171
171
|
{ "type": "null" }
|
|
172
172
|
]
|
|
173
173
|
},
|
|
@@ -192,14 +192,14 @@
|
|
|
192
192
|
"useAnchorContent": {
|
|
193
193
|
"description": "Enforce that anchors have content and that the content is accessible to screen readers.",
|
|
194
194
|
"anyOf": [
|
|
195
|
-
{ "$ref": "#/definitions/
|
|
195
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
196
196
|
{ "type": "null" }
|
|
197
197
|
]
|
|
198
198
|
},
|
|
199
199
|
"useAriaActivedescendantWithTabindex": {
|
|
200
200
|
"description": "Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.",
|
|
201
201
|
"anyOf": [
|
|
202
|
-
{ "$ref": "#/definitions/
|
|
202
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
203
203
|
{ "type": "null" }
|
|
204
204
|
]
|
|
205
205
|
},
|
|
@@ -269,16 +269,14 @@
|
|
|
269
269
|
"useValidAriaProps": {
|
|
270
270
|
"description": "Ensures that ARIA properties aria-* are all valid.",
|
|
271
271
|
"anyOf": [
|
|
272
|
-
{ "$ref": "#/definitions/
|
|
272
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
273
273
|
{ "type": "null" }
|
|
274
274
|
]
|
|
275
275
|
},
|
|
276
276
|
"useValidAriaRole": {
|
|
277
277
|
"description": "Elements with ARIA roles must use a valid, non-abstract ARIA role.",
|
|
278
278
|
"anyOf": [
|
|
279
|
-
{
|
|
280
|
-
"$ref": "#/definitions/RuleFixConfiguration_for_ValidAriaRoleOptions"
|
|
281
|
-
},
|
|
279
|
+
{ "$ref": "#/definitions/ValidAriaRoleConfiguration" },
|
|
282
280
|
{ "type": "null" }
|
|
283
281
|
]
|
|
284
282
|
},
|
|
@@ -312,7 +310,7 @@
|
|
|
312
310
|
"noBannedTypes": {
|
|
313
311
|
"description": "Disallow primitive type aliases and misleading types.",
|
|
314
312
|
"anyOf": [
|
|
315
|
-
{ "$ref": "#/definitions/
|
|
313
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
316
314
|
{ "type": "null" }
|
|
317
315
|
]
|
|
318
316
|
},
|
|
@@ -340,7 +338,7 @@
|
|
|
340
338
|
"noExtraBooleanCast": {
|
|
341
339
|
"description": "Disallow unnecessary boolean casts",
|
|
342
340
|
"anyOf": [
|
|
343
|
-
{ "$ref": "#/definitions/
|
|
341
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
344
342
|
{ "type": "null" }
|
|
345
343
|
]
|
|
346
344
|
},
|
|
@@ -354,7 +352,7 @@
|
|
|
354
352
|
"noMultipleSpacesInRegularExpressionLiterals": {
|
|
355
353
|
"description": "Disallow unclear usage of consecutive space characters in regular expression literals",
|
|
356
354
|
"anyOf": [
|
|
357
|
-
{ "$ref": "#/definitions/
|
|
355
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
358
356
|
{ "type": "null" }
|
|
359
357
|
]
|
|
360
358
|
},
|
|
@@ -368,7 +366,7 @@
|
|
|
368
366
|
"noThisInStatic": {
|
|
369
367
|
"description": "Disallow this and super in static contexts.",
|
|
370
368
|
"anyOf": [
|
|
371
|
-
{ "$ref": "#/definitions/
|
|
369
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
372
370
|
{ "type": "null" }
|
|
373
371
|
]
|
|
374
372
|
},
|
|
@@ -382,70 +380,70 @@
|
|
|
382
380
|
"noUselessConstructor": {
|
|
383
381
|
"description": "Disallow unnecessary constructors.",
|
|
384
382
|
"anyOf": [
|
|
385
|
-
{ "$ref": "#/definitions/
|
|
383
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
386
384
|
{ "type": "null" }
|
|
387
385
|
]
|
|
388
386
|
},
|
|
389
387
|
"noUselessEmptyExport": {
|
|
390
388
|
"description": "Disallow empty exports that don't change anything in a module file.",
|
|
391
389
|
"anyOf": [
|
|
392
|
-
{ "$ref": "#/definitions/
|
|
390
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
393
391
|
{ "type": "null" }
|
|
394
392
|
]
|
|
395
393
|
},
|
|
396
394
|
"noUselessFragments": {
|
|
397
395
|
"description": "Disallow unnecessary fragments",
|
|
398
396
|
"anyOf": [
|
|
399
|
-
{ "$ref": "#/definitions/
|
|
397
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
400
398
|
{ "type": "null" }
|
|
401
399
|
]
|
|
402
400
|
},
|
|
403
401
|
"noUselessLabel": {
|
|
404
402
|
"description": "Disallow unnecessary labels.",
|
|
405
403
|
"anyOf": [
|
|
406
|
-
{ "$ref": "#/definitions/
|
|
404
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
407
405
|
{ "type": "null" }
|
|
408
406
|
]
|
|
409
407
|
},
|
|
410
408
|
"noUselessLoneBlockStatements": {
|
|
411
409
|
"description": "Disallow unnecessary nested block statements.",
|
|
412
410
|
"anyOf": [
|
|
413
|
-
{ "$ref": "#/definitions/
|
|
411
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
414
412
|
{ "type": "null" }
|
|
415
413
|
]
|
|
416
414
|
},
|
|
417
415
|
"noUselessRename": {
|
|
418
416
|
"description": "Disallow renaming import, export, and destructured assignments to the same name.",
|
|
419
417
|
"anyOf": [
|
|
420
|
-
{ "$ref": "#/definitions/
|
|
418
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
421
419
|
{ "type": "null" }
|
|
422
420
|
]
|
|
423
421
|
},
|
|
424
422
|
"noUselessSwitchCase": {
|
|
425
423
|
"description": "Disallow useless case in switch statements.",
|
|
426
424
|
"anyOf": [
|
|
427
|
-
{ "$ref": "#/definitions/
|
|
425
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
428
426
|
{ "type": "null" }
|
|
429
427
|
]
|
|
430
428
|
},
|
|
431
429
|
"noUselessTernary": {
|
|
432
430
|
"description": "Disallow ternary operators when simpler alternatives exist.",
|
|
433
431
|
"anyOf": [
|
|
434
|
-
{ "$ref": "#/definitions/
|
|
432
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
435
433
|
{ "type": "null" }
|
|
436
434
|
]
|
|
437
435
|
},
|
|
438
436
|
"noUselessThisAlias": {
|
|
439
437
|
"description": "Disallow useless this aliasing.",
|
|
440
438
|
"anyOf": [
|
|
441
|
-
{ "$ref": "#/definitions/
|
|
439
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
442
440
|
{ "type": "null" }
|
|
443
441
|
]
|
|
444
442
|
},
|
|
445
443
|
"noUselessTypeConstraint": {
|
|
446
444
|
"description": "Disallow using any or unknown as type constraint.",
|
|
447
445
|
"anyOf": [
|
|
448
|
-
{ "$ref": "#/definitions/
|
|
446
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
449
447
|
{ "type": "null" }
|
|
450
448
|
]
|
|
451
449
|
},
|
|
@@ -470,49 +468,49 @@
|
|
|
470
468
|
"useArrowFunction": {
|
|
471
469
|
"description": "Use arrow functions over function expressions.",
|
|
472
470
|
"anyOf": [
|
|
473
|
-
{ "$ref": "#/definitions/
|
|
471
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
474
472
|
{ "type": "null" }
|
|
475
473
|
]
|
|
476
474
|
},
|
|
477
475
|
"useFlatMap": {
|
|
478
476
|
"description": "Promotes the use of .flatMap() when map().flat() are used together.",
|
|
479
477
|
"anyOf": [
|
|
480
|
-
{ "$ref": "#/definitions/
|
|
478
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
481
479
|
{ "type": "null" }
|
|
482
480
|
]
|
|
483
481
|
},
|
|
484
482
|
"useLiteralKeys": {
|
|
485
483
|
"description": "Enforce the usage of a literal access to properties over computed property access.",
|
|
486
484
|
"anyOf": [
|
|
487
|
-
{ "$ref": "#/definitions/
|
|
485
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
488
486
|
{ "type": "null" }
|
|
489
487
|
]
|
|
490
488
|
},
|
|
491
489
|
"useOptionalChain": {
|
|
492
490
|
"description": "Enforce using concise optional chain instead of chained logical expressions.",
|
|
493
491
|
"anyOf": [
|
|
494
|
-
{ "$ref": "#/definitions/
|
|
492
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
495
493
|
{ "type": "null" }
|
|
496
494
|
]
|
|
497
495
|
},
|
|
498
496
|
"useRegexLiterals": {
|
|
499
497
|
"description": "Enforce the use of the regular expression literals instead of the RegExp constructor if possible.",
|
|
500
498
|
"anyOf": [
|
|
501
|
-
{ "$ref": "#/definitions/
|
|
499
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
502
500
|
{ "type": "null" }
|
|
503
501
|
]
|
|
504
502
|
},
|
|
505
503
|
"useSimpleNumberKeys": {
|
|
506
504
|
"description": "Disallow number literal object member names which are not base10 or uses underscore as separator",
|
|
507
505
|
"anyOf": [
|
|
508
|
-
{ "$ref": "#/definitions/
|
|
506
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
509
507
|
{ "type": "null" }
|
|
510
508
|
]
|
|
511
509
|
},
|
|
512
510
|
"useSimplifiedLogicExpression": {
|
|
513
511
|
"description": "Discard redundant terms from logical expressions.",
|
|
514
512
|
"anyOf": [
|
|
515
|
-
{ "$ref": "#/definitions/
|
|
513
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
516
514
|
{ "type": "null" }
|
|
517
515
|
]
|
|
518
516
|
}
|
|
@@ -553,6 +551,12 @@
|
|
|
553
551
|
}
|
|
554
552
|
]
|
|
555
553
|
},
|
|
554
|
+
"ConsistentArrayTypeConfiguration": {
|
|
555
|
+
"anyOf": [
|
|
556
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
557
|
+
{ "$ref": "#/definitions/RuleWithConsistentArrayTypeOptions" }
|
|
558
|
+
]
|
|
559
|
+
},
|
|
556
560
|
"ConsistentArrayTypeOptions": {
|
|
557
561
|
"type": "object",
|
|
558
562
|
"required": ["syntax"],
|
|
@@ -597,7 +601,7 @@
|
|
|
597
601
|
"noConstAssign": {
|
|
598
602
|
"description": "Prevents from having const variables being re-assigned.",
|
|
599
603
|
"anyOf": [
|
|
600
|
-
{ "$ref": "#/definitions/
|
|
604
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
601
605
|
{ "type": "null" }
|
|
602
606
|
]
|
|
603
607
|
},
|
|
@@ -611,7 +615,7 @@
|
|
|
611
615
|
"noConstantMathMinMaxClamp": {
|
|
612
616
|
"description": "Disallow the use of Math.min and Math.max to clamp a value where the result itself is constant.",
|
|
613
617
|
"anyOf": [
|
|
614
|
-
{ "$ref": "#/definitions/
|
|
618
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
615
619
|
{ "type": "null" }
|
|
616
620
|
]
|
|
617
621
|
},
|
|
@@ -639,7 +643,7 @@
|
|
|
639
643
|
"noFlatMapIdentity": {
|
|
640
644
|
"description": "Disallow to use unnecessary callback on flatMap.",
|
|
641
645
|
"anyOf": [
|
|
642
|
-
{ "$ref": "#/definitions/
|
|
646
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
643
647
|
{ "type": "null" }
|
|
644
648
|
]
|
|
645
649
|
},
|
|
@@ -667,7 +671,7 @@
|
|
|
667
671
|
"noInvalidNewBuiltin": {
|
|
668
672
|
"description": "Disallow new operators with global non-constructor functions.",
|
|
669
673
|
"anyOf": [
|
|
670
|
-
{ "$ref": "#/definitions/
|
|
674
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
671
675
|
{ "type": "null" }
|
|
672
676
|
]
|
|
673
677
|
},
|
|
@@ -681,7 +685,7 @@
|
|
|
681
685
|
"noNewSymbol": {
|
|
682
686
|
"description": "Disallow new operators with the Symbol object.",
|
|
683
687
|
"anyOf": [
|
|
684
|
-
{ "$ref": "#/definitions/
|
|
688
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
685
689
|
{ "type": "null" }
|
|
686
690
|
]
|
|
687
691
|
},
|
|
@@ -695,7 +699,7 @@
|
|
|
695
699
|
"noNonoctalDecimalEscape": {
|
|
696
700
|
"description": "Disallow \\8 and \\9 escape sequences in string literals.",
|
|
697
701
|
"anyOf": [
|
|
698
|
-
{ "$ref": "#/definitions/
|
|
702
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
699
703
|
{ "type": "null" }
|
|
700
704
|
]
|
|
701
705
|
},
|
|
@@ -730,14 +734,14 @@
|
|
|
730
734
|
"noStringCaseMismatch": {
|
|
731
735
|
"description": "Disallow comparison of expressions modifying the string case with non-compliant value.",
|
|
732
736
|
"anyOf": [
|
|
733
|
-
{ "$ref": "#/definitions/
|
|
737
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
734
738
|
{ "type": "null" }
|
|
735
739
|
]
|
|
736
740
|
},
|
|
737
741
|
"noSwitchDeclarations": {
|
|
738
742
|
"description": "Disallow lexical declarations in switch clauses.",
|
|
739
743
|
"anyOf": [
|
|
740
|
-
{ "$ref": "#/definitions/
|
|
744
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
741
745
|
{ "type": "null" }
|
|
742
746
|
]
|
|
743
747
|
},
|
|
@@ -751,7 +755,7 @@
|
|
|
751
755
|
"noUnnecessaryContinue": {
|
|
752
756
|
"description": "Avoid using unnecessary continue.",
|
|
753
757
|
"anyOf": [
|
|
754
|
-
{ "$ref": "#/definitions/
|
|
758
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
755
759
|
{ "type": "null" }
|
|
756
760
|
]
|
|
757
761
|
},
|
|
@@ -786,35 +790,35 @@
|
|
|
786
790
|
"noUnusedImports": {
|
|
787
791
|
"description": "Disallow unused imports.",
|
|
788
792
|
"anyOf": [
|
|
789
|
-
{ "$ref": "#/definitions/
|
|
793
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
790
794
|
{ "type": "null" }
|
|
791
795
|
]
|
|
792
796
|
},
|
|
793
797
|
"noUnusedLabels": {
|
|
794
798
|
"description": "Disallow unused labels.",
|
|
795
799
|
"anyOf": [
|
|
796
|
-
{ "$ref": "#/definitions/
|
|
800
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
797
801
|
{ "type": "null" }
|
|
798
802
|
]
|
|
799
803
|
},
|
|
800
804
|
"noUnusedPrivateClassMembers": {
|
|
801
805
|
"description": "Disallow unused private class members",
|
|
802
806
|
"anyOf": [
|
|
803
|
-
{ "$ref": "#/definitions/
|
|
807
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
804
808
|
{ "type": "null" }
|
|
805
809
|
]
|
|
806
810
|
},
|
|
807
811
|
"noUnusedVariables": {
|
|
808
812
|
"description": "Disallow unused variables.",
|
|
809
813
|
"anyOf": [
|
|
810
|
-
{ "$ref": "#/definitions/
|
|
814
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
811
815
|
{ "type": "null" }
|
|
812
816
|
]
|
|
813
817
|
},
|
|
814
818
|
"noVoidElementsWithChildren": {
|
|
815
819
|
"description": "This rules prevents void elements (AKA self-closing elements) from having children.",
|
|
816
820
|
"anyOf": [
|
|
817
|
-
{ "$ref": "#/definitions/
|
|
821
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
818
822
|
{ "type": "null" }
|
|
819
823
|
]
|
|
820
824
|
},
|
|
@@ -832,7 +836,7 @@
|
|
|
832
836
|
"useArrayLiterals": {
|
|
833
837
|
"description": "Disallow Array constructors.",
|
|
834
838
|
"anyOf": [
|
|
835
|
-
{ "$ref": "#/definitions/
|
|
839
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
836
840
|
{ "type": "null" }
|
|
837
841
|
]
|
|
838
842
|
},
|
|
@@ -853,7 +857,7 @@
|
|
|
853
857
|
"useIsNan": {
|
|
854
858
|
"description": "Require calls to isNaN() when checking for NaN.",
|
|
855
859
|
"anyOf": [
|
|
856
|
-
{ "$ref": "#/definitions/
|
|
860
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
857
861
|
{ "type": "null" }
|
|
858
862
|
]
|
|
859
863
|
},
|
|
@@ -920,9 +924,7 @@
|
|
|
920
924
|
},
|
|
921
925
|
"indentWidth": {
|
|
922
926
|
"description": "The size of the indentation applied to CSS (and its super languages) files. Default to 2.",
|
|
923
|
-
"
|
|
924
|
-
"format": "uint8",
|
|
925
|
-
"minimum": 0.0
|
|
927
|
+
"anyOf": [{ "$ref": "#/definitions/IndentWidth" }, { "type": "null" }]
|
|
926
928
|
},
|
|
927
929
|
"lineEnding": {
|
|
928
930
|
"description": "The type of line ending applied to CSS (and its super languages) files.",
|
|
@@ -1113,9 +1115,7 @@
|
|
|
1113
1115
|
},
|
|
1114
1116
|
"indentSize": {
|
|
1115
1117
|
"description": "The size of the indentation, 2 by default (deprecated, use `indent-width`)",
|
|
1116
|
-
"
|
|
1117
|
-
"format": "uint8",
|
|
1118
|
-
"minimum": 0.0
|
|
1118
|
+
"anyOf": [{ "$ref": "#/definitions/IndentWidth" }, { "type": "null" }]
|
|
1119
1119
|
},
|
|
1120
1120
|
"indentStyle": {
|
|
1121
1121
|
"description": "The indent style.",
|
|
@@ -1126,9 +1126,7 @@
|
|
|
1126
1126
|
},
|
|
1127
1127
|
"indentWidth": {
|
|
1128
1128
|
"description": "The size of the indentation, 2 by default",
|
|
1129
|
-
"
|
|
1130
|
-
"format": "uint8",
|
|
1131
|
-
"minimum": 0.0
|
|
1129
|
+
"anyOf": [{ "$ref": "#/definitions/IndentWidth" }, { "type": "null" }]
|
|
1132
1130
|
},
|
|
1133
1131
|
"lineEnding": {
|
|
1134
1132
|
"description": "The type of line ending.",
|
|
@@ -1184,6 +1182,7 @@
|
|
|
1184
1182
|
},
|
|
1185
1183
|
"additionalProperties": false
|
|
1186
1184
|
},
|
|
1185
|
+
"IndentWidth": { "type": "integer", "format": "uint8", "minimum": 0.0 },
|
|
1187
1186
|
"JavascriptConfiguration": {
|
|
1188
1187
|
"description": "A set of options applied to the JavaScript files",
|
|
1189
1188
|
"type": "object",
|
|
@@ -1258,9 +1257,7 @@
|
|
|
1258
1257
|
},
|
|
1259
1258
|
"indentSize": {
|
|
1260
1259
|
"description": "The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.",
|
|
1261
|
-
"
|
|
1262
|
-
"format": "uint8",
|
|
1263
|
-
"minimum": 0.0
|
|
1260
|
+
"anyOf": [{ "$ref": "#/definitions/IndentWidth" }, { "type": "null" }]
|
|
1264
1261
|
},
|
|
1265
1262
|
"indentStyle": {
|
|
1266
1263
|
"description": "The indent style applied to JavaScript (and its super languages) files.",
|
|
@@ -1271,9 +1268,7 @@
|
|
|
1271
1268
|
},
|
|
1272
1269
|
"indentWidth": {
|
|
1273
1270
|
"description": "The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.",
|
|
1274
|
-
"
|
|
1275
|
-
"format": "uint8",
|
|
1276
|
-
"minimum": 0.0
|
|
1271
|
+
"anyOf": [{ "$ref": "#/definitions/IndentWidth" }, { "type": "null" }]
|
|
1277
1272
|
},
|
|
1278
1273
|
"jsxQuoteStyle": {
|
|
1279
1274
|
"description": "The type of quotes used in JSX. Defaults to double.",
|
|
@@ -1376,9 +1371,7 @@
|
|
|
1376
1371
|
},
|
|
1377
1372
|
"indentSize": {
|
|
1378
1373
|
"description": "The size of the indentation applied to JSON (and its super languages) files. Default to 2.",
|
|
1379
|
-
"
|
|
1380
|
-
"format": "uint8",
|
|
1381
|
-
"minimum": 0.0
|
|
1374
|
+
"anyOf": [{ "$ref": "#/definitions/IndentWidth" }, { "type": "null" }]
|
|
1382
1375
|
},
|
|
1383
1376
|
"indentStyle": {
|
|
1384
1377
|
"description": "The indent style applied to JSON (and its super languages) files.",
|
|
@@ -1389,9 +1382,7 @@
|
|
|
1389
1382
|
},
|
|
1390
1383
|
"indentWidth": {
|
|
1391
1384
|
"description": "The size of the indentation applied to JSON (and its super languages) files. Default to 2.",
|
|
1392
|
-
"
|
|
1393
|
-
"format": "uint8",
|
|
1394
|
-
"minimum": 0.0
|
|
1385
|
+
"anyOf": [{ "$ref": "#/definitions/IndentWidth" }, { "type": "null" }]
|
|
1395
1386
|
},
|
|
1396
1387
|
"lineEnding": {
|
|
1397
1388
|
"description": "The type of line ending applied to JSON (and its super languages) files.",
|
|
@@ -1607,6 +1598,12 @@
|
|
|
1607
1598
|
"items": { "$ref": "#/definitions/RestrictedModifier" },
|
|
1608
1599
|
"uniqueItems": true
|
|
1609
1600
|
},
|
|
1601
|
+
"NamingConventionConfiguration": {
|
|
1602
|
+
"anyOf": [
|
|
1603
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1604
|
+
{ "$ref": "#/definitions/RuleWithNamingConventionOptions" }
|
|
1605
|
+
]
|
|
1606
|
+
},
|
|
1610
1607
|
"NamingConventionOptions": {
|
|
1611
1608
|
"description": "Rule's options.",
|
|
1612
1609
|
"type": "object",
|
|
@@ -1670,7 +1667,7 @@
|
|
|
1670
1667
|
"noConsole": {
|
|
1671
1668
|
"description": "Disallow the use of console.",
|
|
1672
1669
|
"anyOf": [
|
|
1673
|
-
{ "$ref": "#/definitions/
|
|
1670
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1674
1671
|
{ "type": "null" }
|
|
1675
1672
|
]
|
|
1676
1673
|
},
|
|
@@ -1737,6 +1734,13 @@
|
|
|
1737
1734
|
{ "type": "null" }
|
|
1738
1735
|
]
|
|
1739
1736
|
},
|
|
1737
|
+
"noInvalidDirectionInLinearGradient": {
|
|
1738
|
+
"description": "Disallow non-standard direction values for linear gradient functions.",
|
|
1739
|
+
"anyOf": [
|
|
1740
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1741
|
+
{ "type": "null" }
|
|
1742
|
+
]
|
|
1743
|
+
},
|
|
1740
1744
|
"noInvalidPositionAtImportRule": {
|
|
1741
1745
|
"description": "Disallow the use of @import at-rules in invalid positions.",
|
|
1742
1746
|
"anyOf": [
|
|
@@ -1761,7 +1765,7 @@
|
|
|
1761
1765
|
"noReactSpecificProps": {
|
|
1762
1766
|
"description": "Prevents React-specific JSX properties from being used.",
|
|
1763
1767
|
"anyOf": [
|
|
1764
|
-
{ "$ref": "#/definitions/
|
|
1768
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1765
1769
|
{ "type": "null" }
|
|
1766
1770
|
]
|
|
1767
1771
|
},
|
|
@@ -1772,6 +1776,20 @@
|
|
|
1772
1776
|
{ "type": "null" }
|
|
1773
1777
|
]
|
|
1774
1778
|
},
|
|
1779
|
+
"noShorthandPropertyOverrides": {
|
|
1780
|
+
"description": "Disallow shorthand properties that override related longhand properties.",
|
|
1781
|
+
"anyOf": [
|
|
1782
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1783
|
+
{ "type": "null" }
|
|
1784
|
+
]
|
|
1785
|
+
},
|
|
1786
|
+
"noSubstr": {
|
|
1787
|
+
"description": "Enforce the use of String.slice() over String.substr() and String.substring().",
|
|
1788
|
+
"anyOf": [
|
|
1789
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1790
|
+
{ "type": "null" }
|
|
1791
|
+
]
|
|
1792
|
+
},
|
|
1775
1793
|
"noUndeclaredDependencies": {
|
|
1776
1794
|
"description": "Disallow the use of dependencies that aren't specified in the package.json.",
|
|
1777
1795
|
"anyOf": [
|
|
@@ -1800,6 +1818,13 @@
|
|
|
1800
1818
|
{ "type": "null" }
|
|
1801
1819
|
]
|
|
1802
1820
|
},
|
|
1821
|
+
"noUnknownPseudoClassSelector": {
|
|
1822
|
+
"description": "Disallow unknown pseudo-class selectors.",
|
|
1823
|
+
"anyOf": [
|
|
1824
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1825
|
+
{ "type": "null" }
|
|
1826
|
+
]
|
|
1827
|
+
},
|
|
1803
1828
|
"noUnknownSelectorPseudoElement": {
|
|
1804
1829
|
"description": "Disallow unknown pseudo-element selectors.",
|
|
1805
1830
|
"anyOf": [
|
|
@@ -1824,28 +1849,28 @@
|
|
|
1824
1849
|
"noUnusedFunctionParameters": {
|
|
1825
1850
|
"description": "Disallow unused function parameters.",
|
|
1826
1851
|
"anyOf": [
|
|
1827
|
-
{ "$ref": "#/definitions/
|
|
1852
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1828
1853
|
{ "type": "null" }
|
|
1829
1854
|
]
|
|
1830
1855
|
},
|
|
1831
1856
|
"noUselessStringConcat": {
|
|
1832
1857
|
"description": "Disallow unnecessary concatenation of string or template literals.",
|
|
1833
1858
|
"anyOf": [
|
|
1834
|
-
{ "$ref": "#/definitions/
|
|
1859
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1835
1860
|
{ "type": "null" }
|
|
1836
1861
|
]
|
|
1837
1862
|
},
|
|
1838
1863
|
"noUselessUndefinedInitialization": {
|
|
1839
1864
|
"description": "Disallow initializing variables to undefined.",
|
|
1840
1865
|
"anyOf": [
|
|
1841
|
-
{ "$ref": "#/definitions/
|
|
1866
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1842
1867
|
{ "type": "null" }
|
|
1843
1868
|
]
|
|
1844
1869
|
},
|
|
1845
1870
|
"noYodaExpression": {
|
|
1846
1871
|
"description": "Disallow the use of yoda expressions.",
|
|
1847
1872
|
"anyOf": [
|
|
1848
|
-
{ "$ref": "#/definitions/
|
|
1873
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1849
1874
|
{ "type": "null" }
|
|
1850
1875
|
]
|
|
1851
1876
|
},
|
|
@@ -1863,14 +1888,21 @@
|
|
|
1863
1888
|
"useConsistentBuiltinInstantiation": {
|
|
1864
1889
|
"description": "Enforce the use of new for all builtins, except String, Number, Boolean, Symbol and BigInt.",
|
|
1865
1890
|
"anyOf": [
|
|
1866
|
-
{ "$ref": "#/definitions/
|
|
1891
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1892
|
+
{ "type": "null" }
|
|
1893
|
+
]
|
|
1894
|
+
},
|
|
1895
|
+
"useConsistentGridAreas": {
|
|
1896
|
+
"description": "Disallows invalid named grid areas in CSS Grid Layouts.",
|
|
1897
|
+
"anyOf": [
|
|
1898
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1867
1899
|
{ "type": "null" }
|
|
1868
1900
|
]
|
|
1869
1901
|
},
|
|
1870
1902
|
"useDateNow": {
|
|
1871
1903
|
"description": "Use Date.now() to get the number of milliseconds since the Unix Epoch.",
|
|
1872
1904
|
"anyOf": [
|
|
1873
|
-
{ "$ref": "#/definitions/
|
|
1905
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1874
1906
|
{ "type": "null" }
|
|
1875
1907
|
]
|
|
1876
1908
|
},
|
|
@@ -1891,7 +1923,7 @@
|
|
|
1891
1923
|
"useExplicitLengthCheck": {
|
|
1892
1924
|
"description": "Enforce explicitly comparing the length, size, byteLength or byteOffset property of a value.",
|
|
1893
1925
|
"anyOf": [
|
|
1894
|
-
{ "$ref": "#/definitions/
|
|
1926
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1895
1927
|
{ "type": "null" }
|
|
1896
1928
|
]
|
|
1897
1929
|
},
|
|
@@ -1912,7 +1944,7 @@
|
|
|
1912
1944
|
"useImportExtensions": {
|
|
1913
1945
|
"description": "Enforce file extensions for relative imports.",
|
|
1914
1946
|
"anyOf": [
|
|
1915
|
-
{ "$ref": "#/definitions/
|
|
1947
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1916
1948
|
{ "type": "null" }
|
|
1917
1949
|
]
|
|
1918
1950
|
},
|
|
@@ -1926,7 +1958,7 @@
|
|
|
1926
1958
|
"useNumberToFixedDigitsArgument": {
|
|
1927
1959
|
"description": "Enforce using the digits argument with Number#toFixed().",
|
|
1928
1960
|
"anyOf": [
|
|
1929
|
-
{ "$ref": "#/definitions/
|
|
1961
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1930
1962
|
{ "type": "null" }
|
|
1931
1963
|
]
|
|
1932
1964
|
},
|
|
@@ -1940,16 +1972,14 @@
|
|
|
1940
1972
|
"useSortedClasses": {
|
|
1941
1973
|
"description": "Enforce the sorting of CSS utility classes.",
|
|
1942
1974
|
"anyOf": [
|
|
1943
|
-
{
|
|
1944
|
-
"$ref": "#/definitions/RuleFixConfiguration_for_UtilityClassSortingOptions"
|
|
1945
|
-
},
|
|
1975
|
+
{ "$ref": "#/definitions/UtilityClassSortingConfiguration" },
|
|
1946
1976
|
{ "type": "null" }
|
|
1947
1977
|
]
|
|
1948
1978
|
},
|
|
1949
1979
|
"useThrowNewError": {
|
|
1950
1980
|
"description": "Require new when throwing an error.",
|
|
1951
1981
|
"anyOf": [
|
|
1952
|
-
{ "$ref": "#/definitions/
|
|
1982
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1953
1983
|
{ "type": "null" }
|
|
1954
1984
|
]
|
|
1955
1985
|
},
|
|
@@ -1966,6 +1996,13 @@
|
|
|
1966
1996
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1967
1997
|
{ "type": "null" }
|
|
1968
1998
|
]
|
|
1999
|
+
},
|
|
2000
|
+
"useValidAutocomplete": {
|
|
2001
|
+
"description": "Use valid values for the autocomplete attribute on input elements.",
|
|
2002
|
+
"anyOf": [
|
|
2003
|
+
{ "$ref": "#/definitions/UseValidAutocompleteConfiguration" },
|
|
2004
|
+
{ "type": "null" }
|
|
2005
|
+
]
|
|
1969
2006
|
}
|
|
1970
2007
|
},
|
|
1971
2008
|
"additionalProperties": false
|
|
@@ -2005,9 +2042,7 @@
|
|
|
2005
2042
|
},
|
|
2006
2043
|
"indentSize": {
|
|
2007
2044
|
"description": "The size of the indentation, 2 by default (deprecated, use `indent-width`)",
|
|
2008
|
-
"
|
|
2009
|
-
"format": "uint8",
|
|
2010
|
-
"minimum": 0.0
|
|
2045
|
+
"anyOf": [{ "$ref": "#/definitions/IndentWidth" }, { "type": "null" }]
|
|
2011
2046
|
},
|
|
2012
2047
|
"indentStyle": {
|
|
2013
2048
|
"description": "The indent style.",
|
|
@@ -2018,9 +2053,7 @@
|
|
|
2018
2053
|
},
|
|
2019
2054
|
"indentWidth": {
|
|
2020
2055
|
"description": "The size of the indentation, 2 by default",
|
|
2021
|
-
"
|
|
2022
|
-
"format": "uint8",
|
|
2023
|
-
"minimum": 0.0
|
|
2056
|
+
"anyOf": [{ "$ref": "#/definitions/IndentWidth" }, { "type": "null" }]
|
|
2024
2057
|
},
|
|
2025
2058
|
"lineEnding": {
|
|
2026
2059
|
"description": "The type of line ending.",
|
|
@@ -2142,7 +2175,7 @@
|
|
|
2142
2175
|
"noDelete": {
|
|
2143
2176
|
"description": "Disallow the use of the delete operator.",
|
|
2144
2177
|
"anyOf": [
|
|
2145
|
-
{ "$ref": "#/definitions/
|
|
2178
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2146
2179
|
{ "type": "null" }
|
|
2147
2180
|
]
|
|
2148
2181
|
},
|
|
@@ -2217,40 +2250,10 @@
|
|
|
2217
2250
|
{ "$ref": "#/definitions/RuleWithNoOptions" }
|
|
2218
2251
|
]
|
|
2219
2252
|
},
|
|
2220
|
-
"
|
|
2221
|
-
"anyOf": [
|
|
2222
|
-
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
2223
|
-
{
|
|
2224
|
-
"$ref": "#/definitions/RuleWithFixOptions_for_ConsistentArrayTypeOptions"
|
|
2225
|
-
}
|
|
2226
|
-
]
|
|
2227
|
-
},
|
|
2228
|
-
"RuleFixConfiguration_for_NamingConventionOptions": {
|
|
2253
|
+
"RuleFixConfiguration": {
|
|
2229
2254
|
"anyOf": [
|
|
2230
2255
|
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
2231
|
-
{
|
|
2232
|
-
"$ref": "#/definitions/RuleWithFixOptions_for_NamingConventionOptions"
|
|
2233
|
-
}
|
|
2234
|
-
]
|
|
2235
|
-
},
|
|
2236
|
-
"RuleFixConfiguration_for_Null": {
|
|
2237
|
-
"anyOf": [
|
|
2238
|
-
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
2239
|
-
{ "$ref": "#/definitions/RuleWithFixOptions_for_Null" }
|
|
2240
|
-
]
|
|
2241
|
-
},
|
|
2242
|
-
"RuleFixConfiguration_for_UtilityClassSortingOptions": {
|
|
2243
|
-
"anyOf": [
|
|
2244
|
-
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
2245
|
-
{
|
|
2246
|
-
"$ref": "#/definitions/RuleWithFixOptions_for_UtilityClassSortingOptions"
|
|
2247
|
-
}
|
|
2248
|
-
]
|
|
2249
|
-
},
|
|
2250
|
-
"RuleFixConfiguration_for_ValidAriaRoleOptions": {
|
|
2251
|
-
"anyOf": [
|
|
2252
|
-
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
2253
|
-
{ "$ref": "#/definitions/RuleWithFixOptions_for_ValidAriaRoleOptions" }
|
|
2256
|
+
{ "$ref": "#/definitions/RuleWithFixNoOptions" }
|
|
2254
2257
|
]
|
|
2255
2258
|
},
|
|
2256
2259
|
"RulePlainConfiguration": {
|
|
@@ -2272,22 +2275,26 @@
|
|
|
2272
2275
|
},
|
|
2273
2276
|
"additionalProperties": false
|
|
2274
2277
|
},
|
|
2275
|
-
"
|
|
2278
|
+
"RuleWithConsistentArrayTypeOptions": {
|
|
2276
2279
|
"type": "object",
|
|
2277
2280
|
"required": ["level", "options"],
|
|
2278
2281
|
"properties": {
|
|
2282
|
+
"fix": {
|
|
2283
|
+
"description": "The kind of the code actions emitted by the rule",
|
|
2284
|
+
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
2285
|
+
},
|
|
2279
2286
|
"level": {
|
|
2280
2287
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
2281
2288
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2282
2289
|
},
|
|
2283
2290
|
"options": {
|
|
2284
2291
|
"description": "Rule's options",
|
|
2285
|
-
"allOf": [{ "$ref": "#/definitions/
|
|
2292
|
+
"allOf": [{ "$ref": "#/definitions/ConsistentArrayTypeOptions" }]
|
|
2286
2293
|
}
|
|
2287
2294
|
},
|
|
2288
2295
|
"additionalProperties": false
|
|
2289
2296
|
},
|
|
2290
|
-
"
|
|
2297
|
+
"RuleWithDeprecatedHooksOptions": {
|
|
2291
2298
|
"type": "object",
|
|
2292
2299
|
"required": ["level", "options"],
|
|
2293
2300
|
"properties": {
|
|
@@ -2297,33 +2304,29 @@
|
|
|
2297
2304
|
},
|
|
2298
2305
|
"options": {
|
|
2299
2306
|
"description": "Rule's options",
|
|
2300
|
-
"allOf": [{ "$ref": "#/definitions/
|
|
2307
|
+
"allOf": [{ "$ref": "#/definitions/DeprecatedHooksOptions" }]
|
|
2301
2308
|
}
|
|
2302
2309
|
},
|
|
2303
2310
|
"additionalProperties": false
|
|
2304
2311
|
},
|
|
2305
|
-
"
|
|
2312
|
+
"RuleWithFilenamingConventionOptions": {
|
|
2306
2313
|
"type": "object",
|
|
2307
2314
|
"required": ["level", "options"],
|
|
2308
2315
|
"properties": {
|
|
2309
|
-
"fix": {
|
|
2310
|
-
"description": "The kind of the code actions emitted by the rule",
|
|
2311
|
-
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
2312
|
-
},
|
|
2313
2316
|
"level": {
|
|
2314
2317
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
2315
2318
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2316
2319
|
},
|
|
2317
2320
|
"options": {
|
|
2318
2321
|
"description": "Rule's options",
|
|
2319
|
-
"allOf": [{ "$ref": "#/definitions/
|
|
2322
|
+
"allOf": [{ "$ref": "#/definitions/FilenamingConventionOptions" }]
|
|
2320
2323
|
}
|
|
2321
2324
|
},
|
|
2322
2325
|
"additionalProperties": false
|
|
2323
2326
|
},
|
|
2324
|
-
"
|
|
2327
|
+
"RuleWithFixNoOptions": {
|
|
2325
2328
|
"type": "object",
|
|
2326
|
-
"required": ["level"
|
|
2329
|
+
"required": ["level"],
|
|
2327
2330
|
"properties": {
|
|
2328
2331
|
"fix": {
|
|
2329
2332
|
"description": "The kind of the code actions emitted by the rule",
|
|
@@ -2332,31 +2335,26 @@
|
|
|
2332
2335
|
"level": {
|
|
2333
2336
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
2334
2337
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2335
|
-
},
|
|
2336
|
-
"options": {
|
|
2337
|
-
"description": "Rule's options",
|
|
2338
|
-
"allOf": [{ "$ref": "#/definitions/NamingConventionOptions" }]
|
|
2339
2338
|
}
|
|
2340
2339
|
},
|
|
2341
2340
|
"additionalProperties": false
|
|
2342
2341
|
},
|
|
2343
|
-
"
|
|
2342
|
+
"RuleWithHooksOptions": {
|
|
2344
2343
|
"type": "object",
|
|
2345
2344
|
"required": ["level", "options"],
|
|
2346
2345
|
"properties": {
|
|
2347
|
-
"fix": {
|
|
2348
|
-
"description": "The kind of the code actions emitted by the rule",
|
|
2349
|
-
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
2350
|
-
},
|
|
2351
2346
|
"level": {
|
|
2352
2347
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
2353
2348
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2354
2349
|
},
|
|
2355
|
-
"options": {
|
|
2350
|
+
"options": {
|
|
2351
|
+
"description": "Rule's options",
|
|
2352
|
+
"allOf": [{ "$ref": "#/definitions/HooksOptions" }]
|
|
2353
|
+
}
|
|
2356
2354
|
},
|
|
2357
2355
|
"additionalProperties": false
|
|
2358
2356
|
},
|
|
2359
|
-
"
|
|
2357
|
+
"RuleWithNamingConventionOptions": {
|
|
2360
2358
|
"type": "object",
|
|
2361
2359
|
"required": ["level", "options"],
|
|
2362
2360
|
"properties": {
|
|
@@ -2370,31 +2368,38 @@
|
|
|
2370
2368
|
},
|
|
2371
2369
|
"options": {
|
|
2372
2370
|
"description": "Rule's options",
|
|
2373
|
-
"allOf": [{ "$ref": "#/definitions/
|
|
2371
|
+
"allOf": [{ "$ref": "#/definitions/NamingConventionOptions" }]
|
|
2374
2372
|
}
|
|
2375
2373
|
},
|
|
2376
2374
|
"additionalProperties": false
|
|
2377
2375
|
},
|
|
2378
|
-
"
|
|
2376
|
+
"RuleWithNoLabelWithoutControlOptions": {
|
|
2379
2377
|
"type": "object",
|
|
2380
2378
|
"required": ["level", "options"],
|
|
2381
2379
|
"properties": {
|
|
2382
|
-
"fix": {
|
|
2383
|
-
"description": "The kind of the code actions emitted by the rule",
|
|
2384
|
-
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
2385
|
-
},
|
|
2386
2380
|
"level": {
|
|
2387
2381
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
2388
2382
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2389
2383
|
},
|
|
2390
2384
|
"options": {
|
|
2391
2385
|
"description": "Rule's options",
|
|
2392
|
-
"allOf": [{ "$ref": "#/definitions/
|
|
2386
|
+
"allOf": [{ "$ref": "#/definitions/NoLabelWithoutControlOptions" }]
|
|
2393
2387
|
}
|
|
2394
2388
|
},
|
|
2395
2389
|
"additionalProperties": false
|
|
2396
2390
|
},
|
|
2397
|
-
"
|
|
2391
|
+
"RuleWithNoOptions": {
|
|
2392
|
+
"type": "object",
|
|
2393
|
+
"required": ["level"],
|
|
2394
|
+
"properties": {
|
|
2395
|
+
"level": {
|
|
2396
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
2397
|
+
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2398
|
+
}
|
|
2399
|
+
},
|
|
2400
|
+
"additionalProperties": false
|
|
2401
|
+
},
|
|
2402
|
+
"RuleWithRestrictedGlobalsOptions": {
|
|
2398
2403
|
"type": "object",
|
|
2399
2404
|
"required": ["level", "options"],
|
|
2400
2405
|
"properties": {
|
|
@@ -2404,12 +2409,12 @@
|
|
|
2404
2409
|
},
|
|
2405
2410
|
"options": {
|
|
2406
2411
|
"description": "Rule's options",
|
|
2407
|
-
"allOf": [{ "$ref": "#/definitions/
|
|
2412
|
+
"allOf": [{ "$ref": "#/definitions/RestrictedGlobalsOptions" }]
|
|
2408
2413
|
}
|
|
2409
2414
|
},
|
|
2410
2415
|
"additionalProperties": false
|
|
2411
2416
|
},
|
|
2412
|
-
"
|
|
2417
|
+
"RuleWithRestrictedImportsOptions": {
|
|
2413
2418
|
"type": "object",
|
|
2414
2419
|
"required": ["level", "options"],
|
|
2415
2420
|
"properties": {
|
|
@@ -2419,48 +2424,60 @@
|
|
|
2419
2424
|
},
|
|
2420
2425
|
"options": {
|
|
2421
2426
|
"description": "Rule's options",
|
|
2422
|
-
"allOf": [{ "$ref": "#/definitions/
|
|
2427
|
+
"allOf": [{ "$ref": "#/definitions/RestrictedImportsOptions" }]
|
|
2423
2428
|
}
|
|
2424
2429
|
},
|
|
2425
2430
|
"additionalProperties": false
|
|
2426
2431
|
},
|
|
2427
|
-
"
|
|
2432
|
+
"RuleWithUseValidAutocompleteOptions": {
|
|
2428
2433
|
"type": "object",
|
|
2429
|
-
"required": ["level"],
|
|
2434
|
+
"required": ["level", "options"],
|
|
2430
2435
|
"properties": {
|
|
2431
2436
|
"level": {
|
|
2432
2437
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
2433
2438
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2439
|
+
},
|
|
2440
|
+
"options": {
|
|
2441
|
+
"description": "Rule's options",
|
|
2442
|
+
"allOf": [{ "$ref": "#/definitions/UseValidAutocompleteOptions" }]
|
|
2434
2443
|
}
|
|
2435
2444
|
},
|
|
2436
2445
|
"additionalProperties": false
|
|
2437
2446
|
},
|
|
2438
|
-
"
|
|
2447
|
+
"RuleWithUtilityClassSortingOptions": {
|
|
2439
2448
|
"type": "object",
|
|
2440
2449
|
"required": ["level", "options"],
|
|
2441
2450
|
"properties": {
|
|
2451
|
+
"fix": {
|
|
2452
|
+
"description": "The kind of the code actions emitted by the rule",
|
|
2453
|
+
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
2454
|
+
},
|
|
2442
2455
|
"level": {
|
|
2443
2456
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
2444
2457
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2445
2458
|
},
|
|
2446
2459
|
"options": {
|
|
2447
2460
|
"description": "Rule's options",
|
|
2448
|
-
"allOf": [{ "$ref": "#/definitions/
|
|
2461
|
+
"allOf": [{ "$ref": "#/definitions/UtilityClassSortingOptions" }]
|
|
2449
2462
|
}
|
|
2450
2463
|
},
|
|
2451
2464
|
"additionalProperties": false
|
|
2452
2465
|
},
|
|
2453
|
-
"
|
|
2466
|
+
"RuleWithValidAriaRoleOptions": {
|
|
2454
2467
|
"type": "object",
|
|
2455
2468
|
"required": ["level", "options"],
|
|
2456
2469
|
"properties": {
|
|
2470
|
+
"fix": {
|
|
2471
|
+
"description": "The kind of the code actions emitted by the rule",
|
|
2472
|
+
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
2473
|
+
},
|
|
2457
2474
|
"level": {
|
|
2458
2475
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
2459
2476
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2460
2477
|
},
|
|
2461
2478
|
"options": {
|
|
2462
2479
|
"description": "Rule's options",
|
|
2463
|
-
"allOf": [{ "$ref": "#/definitions/
|
|
2480
|
+
"allOf": [{ "$ref": "#/definitions/ValidAriaRoleOptions" }]
|
|
2464
2481
|
}
|
|
2465
2482
|
},
|
|
2466
2483
|
"additionalProperties": false
|
|
@@ -2615,14 +2632,14 @@
|
|
|
2615
2632
|
"noImplicitBoolean": {
|
|
2616
2633
|
"description": "Disallow implicit true values on JSX boolean attributes",
|
|
2617
2634
|
"anyOf": [
|
|
2618
|
-
{ "$ref": "#/definitions/
|
|
2635
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2619
2636
|
{ "type": "null" }
|
|
2620
2637
|
]
|
|
2621
2638
|
},
|
|
2622
2639
|
"noInferrableTypes": {
|
|
2623
2640
|
"description": "Disallow type annotations for variables, parameters, and class properties initialized with a literal expression.",
|
|
2624
2641
|
"anyOf": [
|
|
2625
|
-
{ "$ref": "#/definitions/
|
|
2642
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2626
2643
|
{ "type": "null" }
|
|
2627
2644
|
]
|
|
2628
2645
|
},
|
|
@@ -2643,14 +2660,14 @@
|
|
|
2643
2660
|
"noNegationElse": {
|
|
2644
2661
|
"description": "Disallow negation in the condition of an if statement if it has an else clause.",
|
|
2645
2662
|
"anyOf": [
|
|
2646
|
-
{ "$ref": "#/definitions/
|
|
2663
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2647
2664
|
{ "type": "null" }
|
|
2648
2665
|
]
|
|
2649
2666
|
},
|
|
2650
2667
|
"noNonNullAssertion": {
|
|
2651
2668
|
"description": "Disallow non-null assertions using the ! postfix operator.",
|
|
2652
2669
|
"anyOf": [
|
|
2653
|
-
{ "$ref": "#/definitions/
|
|
2670
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2654
2671
|
{ "type": "null" }
|
|
2655
2672
|
]
|
|
2656
2673
|
},
|
|
@@ -2678,28 +2695,28 @@
|
|
|
2678
2695
|
"noShoutyConstants": {
|
|
2679
2696
|
"description": "Disallow the use of constants which its value is the upper-case version of its name.",
|
|
2680
2697
|
"anyOf": [
|
|
2681
|
-
{ "$ref": "#/definitions/
|
|
2698
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2682
2699
|
{ "type": "null" }
|
|
2683
2700
|
]
|
|
2684
2701
|
},
|
|
2685
2702
|
"noUnusedTemplateLiteral": {
|
|
2686
2703
|
"description": "Disallow template literals if interpolation and special-character handling are not needed",
|
|
2687
2704
|
"anyOf": [
|
|
2688
|
-
{ "$ref": "#/definitions/
|
|
2705
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2689
2706
|
{ "type": "null" }
|
|
2690
2707
|
]
|
|
2691
2708
|
},
|
|
2692
2709
|
"noUselessElse": {
|
|
2693
2710
|
"description": "Disallow else block when the if block breaks early.",
|
|
2694
2711
|
"anyOf": [
|
|
2695
|
-
{ "$ref": "#/definitions/
|
|
2712
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2696
2713
|
{ "type": "null" }
|
|
2697
2714
|
]
|
|
2698
2715
|
},
|
|
2699
2716
|
"noVar": {
|
|
2700
2717
|
"description": "Disallow the use of var",
|
|
2701
2718
|
"anyOf": [
|
|
2702
|
-
{ "$ref": "#/definitions/
|
|
2719
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2703
2720
|
{ "type": "null" }
|
|
2704
2721
|
]
|
|
2705
2722
|
},
|
|
@@ -2710,65 +2727,63 @@
|
|
|
2710
2727
|
"useAsConstAssertion": {
|
|
2711
2728
|
"description": "Enforce the use of as const over literal type and type annotation.",
|
|
2712
2729
|
"anyOf": [
|
|
2713
|
-
{ "$ref": "#/definitions/
|
|
2730
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2714
2731
|
{ "type": "null" }
|
|
2715
2732
|
]
|
|
2716
2733
|
},
|
|
2717
2734
|
"useBlockStatements": {
|
|
2718
2735
|
"description": "Requires following curly brace conventions.",
|
|
2719
2736
|
"anyOf": [
|
|
2720
|
-
{ "$ref": "#/definitions/
|
|
2737
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2721
2738
|
{ "type": "null" }
|
|
2722
2739
|
]
|
|
2723
2740
|
},
|
|
2724
2741
|
"useCollapsedElseIf": {
|
|
2725
2742
|
"description": "Enforce using else if instead of nested if in else clauses.",
|
|
2726
2743
|
"anyOf": [
|
|
2727
|
-
{ "$ref": "#/definitions/
|
|
2744
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2728
2745
|
{ "type": "null" }
|
|
2729
2746
|
]
|
|
2730
2747
|
},
|
|
2731
2748
|
"useConsistentArrayType": {
|
|
2732
2749
|
"description": "Require consistently using either T\\[] or Array\\<T>",
|
|
2733
2750
|
"anyOf": [
|
|
2734
|
-
{
|
|
2735
|
-
"$ref": "#/definitions/RuleFixConfiguration_for_ConsistentArrayTypeOptions"
|
|
2736
|
-
},
|
|
2751
|
+
{ "$ref": "#/definitions/ConsistentArrayTypeConfiguration" },
|
|
2737
2752
|
{ "type": "null" }
|
|
2738
2753
|
]
|
|
2739
2754
|
},
|
|
2740
2755
|
"useConst": {
|
|
2741
2756
|
"description": "Require const declarations for variables that are only assigned once.",
|
|
2742
2757
|
"anyOf": [
|
|
2743
|
-
{ "$ref": "#/definitions/
|
|
2758
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2744
2759
|
{ "type": "null" }
|
|
2745
2760
|
]
|
|
2746
2761
|
},
|
|
2747
2762
|
"useDefaultParameterLast": {
|
|
2748
2763
|
"description": "Enforce default function parameters and optional function parameters to be last.",
|
|
2749
2764
|
"anyOf": [
|
|
2750
|
-
{ "$ref": "#/definitions/
|
|
2765
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2751
2766
|
{ "type": "null" }
|
|
2752
2767
|
]
|
|
2753
2768
|
},
|
|
2754
2769
|
"useEnumInitializers": {
|
|
2755
2770
|
"description": "Require that each enum member value be explicitly initialized.",
|
|
2756
2771
|
"anyOf": [
|
|
2757
|
-
{ "$ref": "#/definitions/
|
|
2772
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2758
2773
|
{ "type": "null" }
|
|
2759
2774
|
]
|
|
2760
2775
|
},
|
|
2761
2776
|
"useExponentiationOperator": {
|
|
2762
2777
|
"description": "Disallow the use of Math.pow in favor of the ** operator.",
|
|
2763
2778
|
"anyOf": [
|
|
2764
|
-
{ "$ref": "#/definitions/
|
|
2779
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2765
2780
|
{ "type": "null" }
|
|
2766
2781
|
]
|
|
2767
2782
|
},
|
|
2768
2783
|
"useExportType": {
|
|
2769
2784
|
"description": "Promotes the use of export type for types.",
|
|
2770
2785
|
"anyOf": [
|
|
2771
|
-
{ "$ref": "#/definitions/
|
|
2786
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2772
2787
|
{ "type": "null" }
|
|
2773
2788
|
]
|
|
2774
2789
|
},
|
|
@@ -2789,14 +2804,14 @@
|
|
|
2789
2804
|
"useFragmentSyntax": {
|
|
2790
2805
|
"description": "This rule enforces the use of \\<>...\\</> over \\<Fragment>...\\</Fragment>.",
|
|
2791
2806
|
"anyOf": [
|
|
2792
|
-
{ "$ref": "#/definitions/
|
|
2807
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2793
2808
|
{ "type": "null" }
|
|
2794
2809
|
]
|
|
2795
2810
|
},
|
|
2796
2811
|
"useImportType": {
|
|
2797
2812
|
"description": "Promotes the use of import type for types.",
|
|
2798
2813
|
"anyOf": [
|
|
2799
|
-
{ "$ref": "#/definitions/
|
|
2814
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2800
2815
|
{ "type": "null" }
|
|
2801
2816
|
]
|
|
2802
2817
|
},
|
|
@@ -2810,93 +2825,91 @@
|
|
|
2810
2825
|
"useNamingConvention": {
|
|
2811
2826
|
"description": "Enforce naming conventions for everything across a codebase.",
|
|
2812
2827
|
"anyOf": [
|
|
2813
|
-
{
|
|
2814
|
-
"$ref": "#/definitions/RuleFixConfiguration_for_NamingConventionOptions"
|
|
2815
|
-
},
|
|
2828
|
+
{ "$ref": "#/definitions/NamingConventionConfiguration" },
|
|
2816
2829
|
{ "type": "null" }
|
|
2817
2830
|
]
|
|
2818
2831
|
},
|
|
2819
2832
|
"useNodeAssertStrict": {
|
|
2820
2833
|
"description": "Promotes the usage of node:assert/strict over node:assert.",
|
|
2821
2834
|
"anyOf": [
|
|
2822
|
-
{ "$ref": "#/definitions/
|
|
2835
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2823
2836
|
{ "type": "null" }
|
|
2824
2837
|
]
|
|
2825
2838
|
},
|
|
2826
2839
|
"useNodejsImportProtocol": {
|
|
2827
2840
|
"description": "Enforces using the node: protocol for Node.js builtin modules.",
|
|
2828
2841
|
"anyOf": [
|
|
2829
|
-
{ "$ref": "#/definitions/
|
|
2842
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2830
2843
|
{ "type": "null" }
|
|
2831
2844
|
]
|
|
2832
2845
|
},
|
|
2833
2846
|
"useNumberNamespace": {
|
|
2834
2847
|
"description": "Use the Number properties instead of global ones.",
|
|
2835
2848
|
"anyOf": [
|
|
2836
|
-
{ "$ref": "#/definitions/
|
|
2849
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2837
2850
|
{ "type": "null" }
|
|
2838
2851
|
]
|
|
2839
2852
|
},
|
|
2840
2853
|
"useNumericLiterals": {
|
|
2841
2854
|
"description": "Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals",
|
|
2842
2855
|
"anyOf": [
|
|
2843
|
-
{ "$ref": "#/definitions/
|
|
2856
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2844
2857
|
{ "type": "null" }
|
|
2845
2858
|
]
|
|
2846
2859
|
},
|
|
2847
2860
|
"useSelfClosingElements": {
|
|
2848
2861
|
"description": "Prevent extra closing tags for components without children",
|
|
2849
2862
|
"anyOf": [
|
|
2850
|
-
{ "$ref": "#/definitions/
|
|
2863
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2851
2864
|
{ "type": "null" }
|
|
2852
2865
|
]
|
|
2853
2866
|
},
|
|
2854
2867
|
"useShorthandArrayType": {
|
|
2855
2868
|
"description": "When expressing array types, this rule promotes the usage of T\\[] shorthand instead of Array\\<T>.",
|
|
2856
2869
|
"anyOf": [
|
|
2857
|
-
{ "$ref": "#/definitions/
|
|
2870
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2858
2871
|
{ "type": "null" }
|
|
2859
2872
|
]
|
|
2860
2873
|
},
|
|
2861
2874
|
"useShorthandAssign": {
|
|
2862
2875
|
"description": "Require assignment operator shorthand where possible.",
|
|
2863
2876
|
"anyOf": [
|
|
2864
|
-
{ "$ref": "#/definitions/
|
|
2877
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2865
2878
|
{ "type": "null" }
|
|
2866
2879
|
]
|
|
2867
2880
|
},
|
|
2868
2881
|
"useShorthandFunctionType": {
|
|
2869
2882
|
"description": "Enforce using function types instead of object type with call signatures.",
|
|
2870
2883
|
"anyOf": [
|
|
2871
|
-
{ "$ref": "#/definitions/
|
|
2884
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2872
2885
|
{ "type": "null" }
|
|
2873
2886
|
]
|
|
2874
2887
|
},
|
|
2875
2888
|
"useSingleCaseStatement": {
|
|
2876
2889
|
"description": "Enforces switch clauses have a single statement, emits a quick fix wrapping the statements in a block.",
|
|
2877
2890
|
"anyOf": [
|
|
2878
|
-
{ "$ref": "#/definitions/
|
|
2891
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2879
2892
|
{ "type": "null" }
|
|
2880
2893
|
]
|
|
2881
2894
|
},
|
|
2882
2895
|
"useSingleVarDeclarator": {
|
|
2883
2896
|
"description": "Disallow multiple variable declarations in the same variable statement",
|
|
2884
2897
|
"anyOf": [
|
|
2885
|
-
{ "$ref": "#/definitions/
|
|
2898
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2886
2899
|
{ "type": "null" }
|
|
2887
2900
|
]
|
|
2888
2901
|
},
|
|
2889
2902
|
"useTemplate": {
|
|
2890
2903
|
"description": "Prefer template literals over string concatenation.",
|
|
2891
2904
|
"anyOf": [
|
|
2892
|
-
{ "$ref": "#/definitions/
|
|
2905
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2893
2906
|
{ "type": "null" }
|
|
2894
2907
|
]
|
|
2895
2908
|
},
|
|
2896
2909
|
"useWhile": {
|
|
2897
2910
|
"description": "Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed.",
|
|
2898
2911
|
"anyOf": [
|
|
2899
|
-
{ "$ref": "#/definitions/
|
|
2912
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2900
2913
|
{ "type": "null" }
|
|
2901
2914
|
]
|
|
2902
2915
|
}
|
|
@@ -2914,7 +2927,7 @@
|
|
|
2914
2927
|
"noApproximativeNumericConstant": {
|
|
2915
2928
|
"description": "Use standard constants instead of approximated literals.",
|
|
2916
2929
|
"anyOf": [
|
|
2917
|
-
{ "$ref": "#/definitions/
|
|
2930
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2918
2931
|
{ "type": "null" }
|
|
2919
2932
|
]
|
|
2920
2933
|
},
|
|
@@ -2956,14 +2969,14 @@
|
|
|
2956
2969
|
"noCommentText": {
|
|
2957
2970
|
"description": "Prevent comments from being inserted as text nodes",
|
|
2958
2971
|
"anyOf": [
|
|
2959
|
-
{ "$ref": "#/definitions/
|
|
2972
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2960
2973
|
{ "type": "null" }
|
|
2961
2974
|
]
|
|
2962
2975
|
},
|
|
2963
2976
|
"noCompareNegZero": {
|
|
2964
2977
|
"description": "Disallow comparing against -0",
|
|
2965
2978
|
"anyOf": [
|
|
2966
|
-
{ "$ref": "#/definitions/
|
|
2979
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2967
2980
|
{ "type": "null" }
|
|
2968
2981
|
]
|
|
2969
2982
|
},
|
|
@@ -2977,21 +2990,21 @@
|
|
|
2977
2990
|
"noConfusingVoidType": {
|
|
2978
2991
|
"description": "Disallow void type outside of generic or return types.",
|
|
2979
2992
|
"anyOf": [
|
|
2980
|
-
{ "$ref": "#/definitions/
|
|
2993
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2981
2994
|
{ "type": "null" }
|
|
2982
2995
|
]
|
|
2983
2996
|
},
|
|
2984
2997
|
"noConsoleLog": {
|
|
2985
2998
|
"description": "Disallow the use of console.log",
|
|
2986
2999
|
"anyOf": [
|
|
2987
|
-
{ "$ref": "#/definitions/
|
|
3000
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2988
3001
|
{ "type": "null" }
|
|
2989
3002
|
]
|
|
2990
3003
|
},
|
|
2991
3004
|
"noConstEnum": {
|
|
2992
3005
|
"description": "Disallow TypeScript const enum",
|
|
2993
3006
|
"anyOf": [
|
|
2994
|
-
{ "$ref": "#/definitions/
|
|
3007
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2995
3008
|
{ "type": "null" }
|
|
2996
3009
|
]
|
|
2997
3010
|
},
|
|
@@ -3005,14 +3018,14 @@
|
|
|
3005
3018
|
"noDebugger": {
|
|
3006
3019
|
"description": "Disallow the use of debugger",
|
|
3007
3020
|
"anyOf": [
|
|
3008
|
-
{ "$ref": "#/definitions/
|
|
3021
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3009
3022
|
{ "type": "null" }
|
|
3010
3023
|
]
|
|
3011
3024
|
},
|
|
3012
3025
|
"noDoubleEquals": {
|
|
3013
3026
|
"description": "Require the use of === and !==",
|
|
3014
3027
|
"anyOf": [
|
|
3015
|
-
{ "$ref": "#/definitions/
|
|
3028
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3016
3029
|
{ "type": "null" }
|
|
3017
3030
|
]
|
|
3018
3031
|
},
|
|
@@ -3040,7 +3053,7 @@
|
|
|
3040
3053
|
"noDuplicateObjectKeys": {
|
|
3041
3054
|
"description": "Prevents object literals having more than one property declaration for the same name.",
|
|
3042
3055
|
"anyOf": [
|
|
3043
|
-
{ "$ref": "#/definitions/
|
|
3056
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3044
3057
|
{ "type": "null" }
|
|
3045
3058
|
]
|
|
3046
3059
|
},
|
|
@@ -3068,7 +3081,7 @@
|
|
|
3068
3081
|
"noEmptyInterface": {
|
|
3069
3082
|
"description": "Disallow the declaration of empty interfaces.",
|
|
3070
3083
|
"anyOf": [
|
|
3071
|
-
{ "$ref": "#/definitions/
|
|
3084
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3072
3085
|
{ "type": "null" }
|
|
3073
3086
|
]
|
|
3074
3087
|
},
|
|
@@ -3089,7 +3102,7 @@
|
|
|
3089
3102
|
"noExtraNonNullAssertion": {
|
|
3090
3103
|
"description": "Prevents the wrong usage of the non-null assertion operator (!) in TypeScript files.",
|
|
3091
3104
|
"anyOf": [
|
|
3092
|
-
{ "$ref": "#/definitions/
|
|
3105
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3093
3106
|
{ "type": "null" }
|
|
3094
3107
|
]
|
|
3095
3108
|
},
|
|
@@ -3103,7 +3116,7 @@
|
|
|
3103
3116
|
"noFocusedTests": {
|
|
3104
3117
|
"description": "Disallow focused tests.",
|
|
3105
3118
|
"anyOf": [
|
|
3106
|
-
{ "$ref": "#/definitions/
|
|
3119
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3107
3120
|
{ "type": "null" }
|
|
3108
3121
|
]
|
|
3109
3122
|
},
|
|
@@ -3124,14 +3137,14 @@
|
|
|
3124
3137
|
"noGlobalIsFinite": {
|
|
3125
3138
|
"description": "Use Number.isFinite instead of global isFinite.",
|
|
3126
3139
|
"anyOf": [
|
|
3127
|
-
{ "$ref": "#/definitions/
|
|
3140
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3128
3141
|
{ "type": "null" }
|
|
3129
3142
|
]
|
|
3130
3143
|
},
|
|
3131
3144
|
"noGlobalIsNan": {
|
|
3132
3145
|
"description": "Use Number.isNaN instead of global isNaN.",
|
|
3133
3146
|
"anyOf": [
|
|
3134
|
-
{ "$ref": "#/definitions/
|
|
3147
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3135
3148
|
{ "type": "null" }
|
|
3136
3149
|
]
|
|
3137
3150
|
},
|
|
@@ -3159,7 +3172,7 @@
|
|
|
3159
3172
|
"noMisleadingCharacterClass": {
|
|
3160
3173
|
"description": "Disallow characters made with multiple code points in character class syntax.",
|
|
3161
3174
|
"anyOf": [
|
|
3162
|
-
{ "$ref": "#/definitions/
|
|
3175
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3163
3176
|
{ "type": "null" }
|
|
3164
3177
|
]
|
|
3165
3178
|
},
|
|
@@ -3173,7 +3186,7 @@
|
|
|
3173
3186
|
"noMisrefactoredShorthandAssign": {
|
|
3174
3187
|
"description": "Disallow shorthand assign when variable appears on both sides.",
|
|
3175
3188
|
"anyOf": [
|
|
3176
|
-
{ "$ref": "#/definitions/
|
|
3189
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3177
3190
|
{ "type": "null" }
|
|
3178
3191
|
]
|
|
3179
3192
|
},
|
|
@@ -3194,7 +3207,7 @@
|
|
|
3194
3207
|
"noRedundantUseStrict": {
|
|
3195
3208
|
"description": "Prevents from having redundant \"use strict\".",
|
|
3196
3209
|
"anyOf": [
|
|
3197
|
-
{ "$ref": "#/definitions/
|
|
3210
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3198
3211
|
{ "type": "null" }
|
|
3199
3212
|
]
|
|
3200
3213
|
},
|
|
@@ -3215,14 +3228,14 @@
|
|
|
3215
3228
|
"noSkippedTests": {
|
|
3216
3229
|
"description": "Disallow disabled tests.",
|
|
3217
3230
|
"anyOf": [
|
|
3218
|
-
{ "$ref": "#/definitions/
|
|
3231
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3219
3232
|
{ "type": "null" }
|
|
3220
3233
|
]
|
|
3221
3234
|
},
|
|
3222
3235
|
"noSparseArray": {
|
|
3223
3236
|
"description": "Disallow sparse arrays",
|
|
3224
3237
|
"anyOf": [
|
|
3225
|
-
{ "$ref": "#/definitions/
|
|
3238
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3226
3239
|
{ "type": "null" }
|
|
3227
3240
|
]
|
|
3228
3241
|
},
|
|
@@ -3250,7 +3263,7 @@
|
|
|
3250
3263
|
"noUnsafeNegation": {
|
|
3251
3264
|
"description": "Disallow using unsafe negation.",
|
|
3252
3265
|
"anyOf": [
|
|
3253
|
-
{ "$ref": "#/definitions/
|
|
3266
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3254
3267
|
{ "type": "null" }
|
|
3255
3268
|
]
|
|
3256
3269
|
},
|
|
@@ -3282,21 +3295,21 @@
|
|
|
3282
3295
|
"useIsArray": {
|
|
3283
3296
|
"description": "Use Array.isArray() instead of instanceof Array.",
|
|
3284
3297
|
"anyOf": [
|
|
3285
|
-
{ "$ref": "#/definitions/
|
|
3298
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3286
3299
|
{ "type": "null" }
|
|
3287
3300
|
]
|
|
3288
3301
|
},
|
|
3289
3302
|
"useNamespaceKeyword": {
|
|
3290
3303
|
"description": "Require using the namespace keyword over the module keyword to declare TypeScript namespaces.",
|
|
3291
3304
|
"anyOf": [
|
|
3292
|
-
{ "$ref": "#/definitions/
|
|
3305
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3293
3306
|
{ "type": "null" }
|
|
3294
3307
|
]
|
|
3295
3308
|
},
|
|
3296
3309
|
"useValidTypeof": {
|
|
3297
3310
|
"description": "This rule verifies the result of typeof $expr unary expressions is being compared to valid values, either string literals containing valid type names or other typeof expressions",
|
|
3298
3311
|
"anyOf": [
|
|
3299
|
-
{ "$ref": "#/definitions/
|
|
3312
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3300
3313
|
{ "type": "null" }
|
|
3301
3314
|
]
|
|
3302
3315
|
}
|
|
@@ -3337,6 +3350,30 @@
|
|
|
3337
3350
|
}
|
|
3338
3351
|
]
|
|
3339
3352
|
},
|
|
3353
|
+
"UseValidAutocompleteConfiguration": {
|
|
3354
|
+
"anyOf": [
|
|
3355
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
3356
|
+
{ "$ref": "#/definitions/RuleWithUseValidAutocompleteOptions" }
|
|
3357
|
+
]
|
|
3358
|
+
},
|
|
3359
|
+
"UseValidAutocompleteOptions": {
|
|
3360
|
+
"type": "object",
|
|
3361
|
+
"required": ["inputComponents"],
|
|
3362
|
+
"properties": {
|
|
3363
|
+
"inputComponents": {
|
|
3364
|
+
"description": "`input` like custom components that should be checked.",
|
|
3365
|
+
"type": "array",
|
|
3366
|
+
"items": { "type": "string" }
|
|
3367
|
+
}
|
|
3368
|
+
},
|
|
3369
|
+
"additionalProperties": false
|
|
3370
|
+
},
|
|
3371
|
+
"UtilityClassSortingConfiguration": {
|
|
3372
|
+
"anyOf": [
|
|
3373
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
3374
|
+
{ "$ref": "#/definitions/RuleWithUtilityClassSortingOptions" }
|
|
3375
|
+
]
|
|
3376
|
+
},
|
|
3340
3377
|
"UtilityClassSortingOptions": {
|
|
3341
3378
|
"type": "object",
|
|
3342
3379
|
"properties": {
|
|
@@ -3353,6 +3390,12 @@
|
|
|
3353
3390
|
},
|
|
3354
3391
|
"additionalProperties": false
|
|
3355
3392
|
},
|
|
3393
|
+
"ValidAriaRoleConfiguration": {
|
|
3394
|
+
"anyOf": [
|
|
3395
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
3396
|
+
{ "$ref": "#/definitions/RuleWithValidAriaRoleOptions" }
|
|
3397
|
+
]
|
|
3398
|
+
},
|
|
3356
3399
|
"ValidAriaRoleOptions": {
|
|
3357
3400
|
"type": "object",
|
|
3358
3401
|
"required": ["allowInvalidRoles", "ignoreNonDom"],
|