@biomejs/biome 1.8.0 → 1.8.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.
- 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 +222 -233
- 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
|
},
|
|
@@ -1761,7 +1758,7 @@
|
|
|
1761
1758
|
"noReactSpecificProps": {
|
|
1762
1759
|
"description": "Prevents React-specific JSX properties from being used.",
|
|
1763
1760
|
"anyOf": [
|
|
1764
|
-
{ "$ref": "#/definitions/
|
|
1761
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1765
1762
|
{ "type": "null" }
|
|
1766
1763
|
]
|
|
1767
1764
|
},
|
|
@@ -1772,6 +1769,13 @@
|
|
|
1772
1769
|
{ "type": "null" }
|
|
1773
1770
|
]
|
|
1774
1771
|
},
|
|
1772
|
+
"noShorthandPropertyOverrides": {
|
|
1773
|
+
"description": "Disallow shorthand properties that override related longhand properties.",
|
|
1774
|
+
"anyOf": [
|
|
1775
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1776
|
+
{ "type": "null" }
|
|
1777
|
+
]
|
|
1778
|
+
},
|
|
1775
1779
|
"noUndeclaredDependencies": {
|
|
1776
1780
|
"description": "Disallow the use of dependencies that aren't specified in the package.json.",
|
|
1777
1781
|
"anyOf": [
|
|
@@ -1800,6 +1804,13 @@
|
|
|
1800
1804
|
{ "type": "null" }
|
|
1801
1805
|
]
|
|
1802
1806
|
},
|
|
1807
|
+
"noUnknownPseudoClassSelector": {
|
|
1808
|
+
"description": "Disallow unknown pseudo-class selectors.",
|
|
1809
|
+
"anyOf": [
|
|
1810
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1811
|
+
{ "type": "null" }
|
|
1812
|
+
]
|
|
1813
|
+
},
|
|
1803
1814
|
"noUnknownSelectorPseudoElement": {
|
|
1804
1815
|
"description": "Disallow unknown pseudo-element selectors.",
|
|
1805
1816
|
"anyOf": [
|
|
@@ -1824,28 +1835,28 @@
|
|
|
1824
1835
|
"noUnusedFunctionParameters": {
|
|
1825
1836
|
"description": "Disallow unused function parameters.",
|
|
1826
1837
|
"anyOf": [
|
|
1827
|
-
{ "$ref": "#/definitions/
|
|
1838
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1828
1839
|
{ "type": "null" }
|
|
1829
1840
|
]
|
|
1830
1841
|
},
|
|
1831
1842
|
"noUselessStringConcat": {
|
|
1832
1843
|
"description": "Disallow unnecessary concatenation of string or template literals.",
|
|
1833
1844
|
"anyOf": [
|
|
1834
|
-
{ "$ref": "#/definitions/
|
|
1845
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1835
1846
|
{ "type": "null" }
|
|
1836
1847
|
]
|
|
1837
1848
|
},
|
|
1838
1849
|
"noUselessUndefinedInitialization": {
|
|
1839
1850
|
"description": "Disallow initializing variables to undefined.",
|
|
1840
1851
|
"anyOf": [
|
|
1841
|
-
{ "$ref": "#/definitions/
|
|
1852
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1842
1853
|
{ "type": "null" }
|
|
1843
1854
|
]
|
|
1844
1855
|
},
|
|
1845
1856
|
"noYodaExpression": {
|
|
1846
1857
|
"description": "Disallow the use of yoda expressions.",
|
|
1847
1858
|
"anyOf": [
|
|
1848
|
-
{ "$ref": "#/definitions/
|
|
1859
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1849
1860
|
{ "type": "null" }
|
|
1850
1861
|
]
|
|
1851
1862
|
},
|
|
@@ -1863,14 +1874,21 @@
|
|
|
1863
1874
|
"useConsistentBuiltinInstantiation": {
|
|
1864
1875
|
"description": "Enforce the use of new for all builtins, except String, Number, Boolean, Symbol and BigInt.",
|
|
1865
1876
|
"anyOf": [
|
|
1866
|
-
{ "$ref": "#/definitions/
|
|
1877
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1878
|
+
{ "type": "null" }
|
|
1879
|
+
]
|
|
1880
|
+
},
|
|
1881
|
+
"useConsistentGridAreas": {
|
|
1882
|
+
"description": "Disallowing invalid named grid areas in CSS Grid Layouts.",
|
|
1883
|
+
"anyOf": [
|
|
1884
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1867
1885
|
{ "type": "null" }
|
|
1868
1886
|
]
|
|
1869
1887
|
},
|
|
1870
1888
|
"useDateNow": {
|
|
1871
1889
|
"description": "Use Date.now() to get the number of milliseconds since the Unix Epoch.",
|
|
1872
1890
|
"anyOf": [
|
|
1873
|
-
{ "$ref": "#/definitions/
|
|
1891
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1874
1892
|
{ "type": "null" }
|
|
1875
1893
|
]
|
|
1876
1894
|
},
|
|
@@ -1891,7 +1909,7 @@
|
|
|
1891
1909
|
"useExplicitLengthCheck": {
|
|
1892
1910
|
"description": "Enforce explicitly comparing the length, size, byteLength or byteOffset property of a value.",
|
|
1893
1911
|
"anyOf": [
|
|
1894
|
-
{ "$ref": "#/definitions/
|
|
1912
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1895
1913
|
{ "type": "null" }
|
|
1896
1914
|
]
|
|
1897
1915
|
},
|
|
@@ -1912,7 +1930,7 @@
|
|
|
1912
1930
|
"useImportExtensions": {
|
|
1913
1931
|
"description": "Enforce file extensions for relative imports.",
|
|
1914
1932
|
"anyOf": [
|
|
1915
|
-
{ "$ref": "#/definitions/
|
|
1933
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1916
1934
|
{ "type": "null" }
|
|
1917
1935
|
]
|
|
1918
1936
|
},
|
|
@@ -1926,7 +1944,7 @@
|
|
|
1926
1944
|
"useNumberToFixedDigitsArgument": {
|
|
1927
1945
|
"description": "Enforce using the digits argument with Number#toFixed().",
|
|
1928
1946
|
"anyOf": [
|
|
1929
|
-
{ "$ref": "#/definitions/
|
|
1947
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1930
1948
|
{ "type": "null" }
|
|
1931
1949
|
]
|
|
1932
1950
|
},
|
|
@@ -1940,16 +1958,14 @@
|
|
|
1940
1958
|
"useSortedClasses": {
|
|
1941
1959
|
"description": "Enforce the sorting of CSS utility classes.",
|
|
1942
1960
|
"anyOf": [
|
|
1943
|
-
{
|
|
1944
|
-
"$ref": "#/definitions/RuleFixConfiguration_for_UtilityClassSortingOptions"
|
|
1945
|
-
},
|
|
1961
|
+
{ "$ref": "#/definitions/UtilityClassSortingConfiguration" },
|
|
1946
1962
|
{ "type": "null" }
|
|
1947
1963
|
]
|
|
1948
1964
|
},
|
|
1949
1965
|
"useThrowNewError": {
|
|
1950
1966
|
"description": "Require new when throwing an error.",
|
|
1951
1967
|
"anyOf": [
|
|
1952
|
-
{ "$ref": "#/definitions/
|
|
1968
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1953
1969
|
{ "type": "null" }
|
|
1954
1970
|
]
|
|
1955
1971
|
},
|
|
@@ -2005,9 +2021,7 @@
|
|
|
2005
2021
|
},
|
|
2006
2022
|
"indentSize": {
|
|
2007
2023
|
"description": "The size of the indentation, 2 by default (deprecated, use `indent-width`)",
|
|
2008
|
-
"
|
|
2009
|
-
"format": "uint8",
|
|
2010
|
-
"minimum": 0.0
|
|
2024
|
+
"anyOf": [{ "$ref": "#/definitions/IndentWidth" }, { "type": "null" }]
|
|
2011
2025
|
},
|
|
2012
2026
|
"indentStyle": {
|
|
2013
2027
|
"description": "The indent style.",
|
|
@@ -2018,9 +2032,7 @@
|
|
|
2018
2032
|
},
|
|
2019
2033
|
"indentWidth": {
|
|
2020
2034
|
"description": "The size of the indentation, 2 by default",
|
|
2021
|
-
"
|
|
2022
|
-
"format": "uint8",
|
|
2023
|
-
"minimum": 0.0
|
|
2035
|
+
"anyOf": [{ "$ref": "#/definitions/IndentWidth" }, { "type": "null" }]
|
|
2024
2036
|
},
|
|
2025
2037
|
"lineEnding": {
|
|
2026
2038
|
"description": "The type of line ending.",
|
|
@@ -2142,7 +2154,7 @@
|
|
|
2142
2154
|
"noDelete": {
|
|
2143
2155
|
"description": "Disallow the use of the delete operator.",
|
|
2144
2156
|
"anyOf": [
|
|
2145
|
-
{ "$ref": "#/definitions/
|
|
2157
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2146
2158
|
{ "type": "null" }
|
|
2147
2159
|
]
|
|
2148
2160
|
},
|
|
@@ -2217,40 +2229,10 @@
|
|
|
2217
2229
|
{ "$ref": "#/definitions/RuleWithNoOptions" }
|
|
2218
2230
|
]
|
|
2219
2231
|
},
|
|
2220
|
-
"
|
|
2221
|
-
"anyOf": [
|
|
2222
|
-
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
2223
|
-
{
|
|
2224
|
-
"$ref": "#/definitions/RuleWithFixOptions_for_ConsistentArrayTypeOptions"
|
|
2225
|
-
}
|
|
2226
|
-
]
|
|
2227
|
-
},
|
|
2228
|
-
"RuleFixConfiguration_for_NamingConventionOptions": {
|
|
2232
|
+
"RuleFixConfiguration": {
|
|
2229
2233
|
"anyOf": [
|
|
2230
2234
|
{ "$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" }
|
|
2235
|
+
{ "$ref": "#/definitions/RuleWithFixNoOptions" }
|
|
2254
2236
|
]
|
|
2255
2237
|
},
|
|
2256
2238
|
"RulePlainConfiguration": {
|
|
@@ -2272,22 +2254,26 @@
|
|
|
2272
2254
|
},
|
|
2273
2255
|
"additionalProperties": false
|
|
2274
2256
|
},
|
|
2275
|
-
"
|
|
2257
|
+
"RuleWithConsistentArrayTypeOptions": {
|
|
2276
2258
|
"type": "object",
|
|
2277
2259
|
"required": ["level", "options"],
|
|
2278
2260
|
"properties": {
|
|
2261
|
+
"fix": {
|
|
2262
|
+
"description": "The kind of the code actions emitted by the rule",
|
|
2263
|
+
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
2264
|
+
},
|
|
2279
2265
|
"level": {
|
|
2280
2266
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
2281
2267
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2282
2268
|
},
|
|
2283
2269
|
"options": {
|
|
2284
2270
|
"description": "Rule's options",
|
|
2285
|
-
"allOf": [{ "$ref": "#/definitions/
|
|
2271
|
+
"allOf": [{ "$ref": "#/definitions/ConsistentArrayTypeOptions" }]
|
|
2286
2272
|
}
|
|
2287
2273
|
},
|
|
2288
2274
|
"additionalProperties": false
|
|
2289
2275
|
},
|
|
2290
|
-
"
|
|
2276
|
+
"RuleWithDeprecatedHooksOptions": {
|
|
2291
2277
|
"type": "object",
|
|
2292
2278
|
"required": ["level", "options"],
|
|
2293
2279
|
"properties": {
|
|
@@ -2297,33 +2283,29 @@
|
|
|
2297
2283
|
},
|
|
2298
2284
|
"options": {
|
|
2299
2285
|
"description": "Rule's options",
|
|
2300
|
-
"allOf": [{ "$ref": "#/definitions/
|
|
2286
|
+
"allOf": [{ "$ref": "#/definitions/DeprecatedHooksOptions" }]
|
|
2301
2287
|
}
|
|
2302
2288
|
},
|
|
2303
2289
|
"additionalProperties": false
|
|
2304
2290
|
},
|
|
2305
|
-
"
|
|
2291
|
+
"RuleWithFilenamingConventionOptions": {
|
|
2306
2292
|
"type": "object",
|
|
2307
2293
|
"required": ["level", "options"],
|
|
2308
2294
|
"properties": {
|
|
2309
|
-
"fix": {
|
|
2310
|
-
"description": "The kind of the code actions emitted by the rule",
|
|
2311
|
-
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
2312
|
-
},
|
|
2313
2295
|
"level": {
|
|
2314
2296
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
2315
2297
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2316
2298
|
},
|
|
2317
2299
|
"options": {
|
|
2318
2300
|
"description": "Rule's options",
|
|
2319
|
-
"allOf": [{ "$ref": "#/definitions/
|
|
2301
|
+
"allOf": [{ "$ref": "#/definitions/FilenamingConventionOptions" }]
|
|
2320
2302
|
}
|
|
2321
2303
|
},
|
|
2322
2304
|
"additionalProperties": false
|
|
2323
2305
|
},
|
|
2324
|
-
"
|
|
2306
|
+
"RuleWithFixNoOptions": {
|
|
2325
2307
|
"type": "object",
|
|
2326
|
-
"required": ["level"
|
|
2308
|
+
"required": ["level"],
|
|
2327
2309
|
"properties": {
|
|
2328
2310
|
"fix": {
|
|
2329
2311
|
"description": "The kind of the code actions emitted by the rule",
|
|
@@ -2332,31 +2314,26 @@
|
|
|
2332
2314
|
"level": {
|
|
2333
2315
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
2334
2316
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2335
|
-
},
|
|
2336
|
-
"options": {
|
|
2337
|
-
"description": "Rule's options",
|
|
2338
|
-
"allOf": [{ "$ref": "#/definitions/NamingConventionOptions" }]
|
|
2339
2317
|
}
|
|
2340
2318
|
},
|
|
2341
2319
|
"additionalProperties": false
|
|
2342
2320
|
},
|
|
2343
|
-
"
|
|
2321
|
+
"RuleWithHooksOptions": {
|
|
2344
2322
|
"type": "object",
|
|
2345
2323
|
"required": ["level", "options"],
|
|
2346
2324
|
"properties": {
|
|
2347
|
-
"fix": {
|
|
2348
|
-
"description": "The kind of the code actions emitted by the rule",
|
|
2349
|
-
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
2350
|
-
},
|
|
2351
2325
|
"level": {
|
|
2352
2326
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
2353
2327
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2354
2328
|
},
|
|
2355
|
-
"options": {
|
|
2329
|
+
"options": {
|
|
2330
|
+
"description": "Rule's options",
|
|
2331
|
+
"allOf": [{ "$ref": "#/definitions/HooksOptions" }]
|
|
2332
|
+
}
|
|
2356
2333
|
},
|
|
2357
2334
|
"additionalProperties": false
|
|
2358
2335
|
},
|
|
2359
|
-
"
|
|
2336
|
+
"RuleWithNamingConventionOptions": {
|
|
2360
2337
|
"type": "object",
|
|
2361
2338
|
"required": ["level", "options"],
|
|
2362
2339
|
"properties": {
|
|
@@ -2370,46 +2347,38 @@
|
|
|
2370
2347
|
},
|
|
2371
2348
|
"options": {
|
|
2372
2349
|
"description": "Rule's options",
|
|
2373
|
-
"allOf": [{ "$ref": "#/definitions/
|
|
2350
|
+
"allOf": [{ "$ref": "#/definitions/NamingConventionOptions" }]
|
|
2374
2351
|
}
|
|
2375
2352
|
},
|
|
2376
2353
|
"additionalProperties": false
|
|
2377
2354
|
},
|
|
2378
|
-
"
|
|
2355
|
+
"RuleWithNoLabelWithoutControlOptions": {
|
|
2379
2356
|
"type": "object",
|
|
2380
2357
|
"required": ["level", "options"],
|
|
2381
2358
|
"properties": {
|
|
2382
|
-
"fix": {
|
|
2383
|
-
"description": "The kind of the code actions emitted by the rule",
|
|
2384
|
-
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
2385
|
-
},
|
|
2386
2359
|
"level": {
|
|
2387
2360
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
2388
2361
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2389
2362
|
},
|
|
2390
2363
|
"options": {
|
|
2391
2364
|
"description": "Rule's options",
|
|
2392
|
-
"allOf": [{ "$ref": "#/definitions/
|
|
2365
|
+
"allOf": [{ "$ref": "#/definitions/NoLabelWithoutControlOptions" }]
|
|
2393
2366
|
}
|
|
2394
2367
|
},
|
|
2395
2368
|
"additionalProperties": false
|
|
2396
2369
|
},
|
|
2397
|
-
"
|
|
2370
|
+
"RuleWithNoOptions": {
|
|
2398
2371
|
"type": "object",
|
|
2399
|
-
"required": ["level"
|
|
2372
|
+
"required": ["level"],
|
|
2400
2373
|
"properties": {
|
|
2401
2374
|
"level": {
|
|
2402
2375
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
2403
2376
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2404
|
-
},
|
|
2405
|
-
"options": {
|
|
2406
|
-
"description": "Rule's options",
|
|
2407
|
-
"allOf": [{ "$ref": "#/definitions/HooksOptions" }]
|
|
2408
2377
|
}
|
|
2409
2378
|
},
|
|
2410
2379
|
"additionalProperties": false
|
|
2411
2380
|
},
|
|
2412
|
-
"
|
|
2381
|
+
"RuleWithRestrictedGlobalsOptions": {
|
|
2413
2382
|
"type": "object",
|
|
2414
2383
|
"required": ["level", "options"],
|
|
2415
2384
|
"properties": {
|
|
@@ -2419,48 +2388,60 @@
|
|
|
2419
2388
|
},
|
|
2420
2389
|
"options": {
|
|
2421
2390
|
"description": "Rule's options",
|
|
2422
|
-
"allOf": [{ "$ref": "#/definitions/
|
|
2391
|
+
"allOf": [{ "$ref": "#/definitions/RestrictedGlobalsOptions" }]
|
|
2423
2392
|
}
|
|
2424
2393
|
},
|
|
2425
2394
|
"additionalProperties": false
|
|
2426
2395
|
},
|
|
2427
|
-
"
|
|
2396
|
+
"RuleWithRestrictedImportsOptions": {
|
|
2428
2397
|
"type": "object",
|
|
2429
|
-
"required": ["level"],
|
|
2398
|
+
"required": ["level", "options"],
|
|
2430
2399
|
"properties": {
|
|
2431
2400
|
"level": {
|
|
2432
2401
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
2433
2402
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2403
|
+
},
|
|
2404
|
+
"options": {
|
|
2405
|
+
"description": "Rule's options",
|
|
2406
|
+
"allOf": [{ "$ref": "#/definitions/RestrictedImportsOptions" }]
|
|
2434
2407
|
}
|
|
2435
2408
|
},
|
|
2436
2409
|
"additionalProperties": false
|
|
2437
2410
|
},
|
|
2438
|
-
"
|
|
2411
|
+
"RuleWithUtilityClassSortingOptions": {
|
|
2439
2412
|
"type": "object",
|
|
2440
2413
|
"required": ["level", "options"],
|
|
2441
2414
|
"properties": {
|
|
2415
|
+
"fix": {
|
|
2416
|
+
"description": "The kind of the code actions emitted by the rule",
|
|
2417
|
+
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
2418
|
+
},
|
|
2442
2419
|
"level": {
|
|
2443
2420
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
2444
2421
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2445
2422
|
},
|
|
2446
2423
|
"options": {
|
|
2447
2424
|
"description": "Rule's options",
|
|
2448
|
-
"allOf": [{ "$ref": "#/definitions/
|
|
2425
|
+
"allOf": [{ "$ref": "#/definitions/UtilityClassSortingOptions" }]
|
|
2449
2426
|
}
|
|
2450
2427
|
},
|
|
2451
2428
|
"additionalProperties": false
|
|
2452
2429
|
},
|
|
2453
|
-
"
|
|
2430
|
+
"RuleWithValidAriaRoleOptions": {
|
|
2454
2431
|
"type": "object",
|
|
2455
2432
|
"required": ["level", "options"],
|
|
2456
2433
|
"properties": {
|
|
2434
|
+
"fix": {
|
|
2435
|
+
"description": "The kind of the code actions emitted by the rule",
|
|
2436
|
+
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
2437
|
+
},
|
|
2457
2438
|
"level": {
|
|
2458
2439
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
2459
2440
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
2460
2441
|
},
|
|
2461
2442
|
"options": {
|
|
2462
2443
|
"description": "Rule's options",
|
|
2463
|
-
"allOf": [{ "$ref": "#/definitions/
|
|
2444
|
+
"allOf": [{ "$ref": "#/definitions/ValidAriaRoleOptions" }]
|
|
2464
2445
|
}
|
|
2465
2446
|
},
|
|
2466
2447
|
"additionalProperties": false
|
|
@@ -2615,14 +2596,14 @@
|
|
|
2615
2596
|
"noImplicitBoolean": {
|
|
2616
2597
|
"description": "Disallow implicit true values on JSX boolean attributes",
|
|
2617
2598
|
"anyOf": [
|
|
2618
|
-
{ "$ref": "#/definitions/
|
|
2599
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2619
2600
|
{ "type": "null" }
|
|
2620
2601
|
]
|
|
2621
2602
|
},
|
|
2622
2603
|
"noInferrableTypes": {
|
|
2623
2604
|
"description": "Disallow type annotations for variables, parameters, and class properties initialized with a literal expression.",
|
|
2624
2605
|
"anyOf": [
|
|
2625
|
-
{ "$ref": "#/definitions/
|
|
2606
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2626
2607
|
{ "type": "null" }
|
|
2627
2608
|
]
|
|
2628
2609
|
},
|
|
@@ -2643,14 +2624,14 @@
|
|
|
2643
2624
|
"noNegationElse": {
|
|
2644
2625
|
"description": "Disallow negation in the condition of an if statement if it has an else clause.",
|
|
2645
2626
|
"anyOf": [
|
|
2646
|
-
{ "$ref": "#/definitions/
|
|
2627
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2647
2628
|
{ "type": "null" }
|
|
2648
2629
|
]
|
|
2649
2630
|
},
|
|
2650
2631
|
"noNonNullAssertion": {
|
|
2651
2632
|
"description": "Disallow non-null assertions using the ! postfix operator.",
|
|
2652
2633
|
"anyOf": [
|
|
2653
|
-
{ "$ref": "#/definitions/
|
|
2634
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2654
2635
|
{ "type": "null" }
|
|
2655
2636
|
]
|
|
2656
2637
|
},
|
|
@@ -2678,28 +2659,28 @@
|
|
|
2678
2659
|
"noShoutyConstants": {
|
|
2679
2660
|
"description": "Disallow the use of constants which its value is the upper-case version of its name.",
|
|
2680
2661
|
"anyOf": [
|
|
2681
|
-
{ "$ref": "#/definitions/
|
|
2662
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2682
2663
|
{ "type": "null" }
|
|
2683
2664
|
]
|
|
2684
2665
|
},
|
|
2685
2666
|
"noUnusedTemplateLiteral": {
|
|
2686
2667
|
"description": "Disallow template literals if interpolation and special-character handling are not needed",
|
|
2687
2668
|
"anyOf": [
|
|
2688
|
-
{ "$ref": "#/definitions/
|
|
2669
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2689
2670
|
{ "type": "null" }
|
|
2690
2671
|
]
|
|
2691
2672
|
},
|
|
2692
2673
|
"noUselessElse": {
|
|
2693
2674
|
"description": "Disallow else block when the if block breaks early.",
|
|
2694
2675
|
"anyOf": [
|
|
2695
|
-
{ "$ref": "#/definitions/
|
|
2676
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2696
2677
|
{ "type": "null" }
|
|
2697
2678
|
]
|
|
2698
2679
|
},
|
|
2699
2680
|
"noVar": {
|
|
2700
2681
|
"description": "Disallow the use of var",
|
|
2701
2682
|
"anyOf": [
|
|
2702
|
-
{ "$ref": "#/definitions/
|
|
2683
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2703
2684
|
{ "type": "null" }
|
|
2704
2685
|
]
|
|
2705
2686
|
},
|
|
@@ -2710,65 +2691,63 @@
|
|
|
2710
2691
|
"useAsConstAssertion": {
|
|
2711
2692
|
"description": "Enforce the use of as const over literal type and type annotation.",
|
|
2712
2693
|
"anyOf": [
|
|
2713
|
-
{ "$ref": "#/definitions/
|
|
2694
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2714
2695
|
{ "type": "null" }
|
|
2715
2696
|
]
|
|
2716
2697
|
},
|
|
2717
2698
|
"useBlockStatements": {
|
|
2718
2699
|
"description": "Requires following curly brace conventions.",
|
|
2719
2700
|
"anyOf": [
|
|
2720
|
-
{ "$ref": "#/definitions/
|
|
2701
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2721
2702
|
{ "type": "null" }
|
|
2722
2703
|
]
|
|
2723
2704
|
},
|
|
2724
2705
|
"useCollapsedElseIf": {
|
|
2725
2706
|
"description": "Enforce using else if instead of nested if in else clauses.",
|
|
2726
2707
|
"anyOf": [
|
|
2727
|
-
{ "$ref": "#/definitions/
|
|
2708
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2728
2709
|
{ "type": "null" }
|
|
2729
2710
|
]
|
|
2730
2711
|
},
|
|
2731
2712
|
"useConsistentArrayType": {
|
|
2732
2713
|
"description": "Require consistently using either T\\[] or Array\\<T>",
|
|
2733
2714
|
"anyOf": [
|
|
2734
|
-
{
|
|
2735
|
-
"$ref": "#/definitions/RuleFixConfiguration_for_ConsistentArrayTypeOptions"
|
|
2736
|
-
},
|
|
2715
|
+
{ "$ref": "#/definitions/ConsistentArrayTypeConfiguration" },
|
|
2737
2716
|
{ "type": "null" }
|
|
2738
2717
|
]
|
|
2739
2718
|
},
|
|
2740
2719
|
"useConst": {
|
|
2741
2720
|
"description": "Require const declarations for variables that are only assigned once.",
|
|
2742
2721
|
"anyOf": [
|
|
2743
|
-
{ "$ref": "#/definitions/
|
|
2722
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2744
2723
|
{ "type": "null" }
|
|
2745
2724
|
]
|
|
2746
2725
|
},
|
|
2747
2726
|
"useDefaultParameterLast": {
|
|
2748
2727
|
"description": "Enforce default function parameters and optional function parameters to be last.",
|
|
2749
2728
|
"anyOf": [
|
|
2750
|
-
{ "$ref": "#/definitions/
|
|
2729
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2751
2730
|
{ "type": "null" }
|
|
2752
2731
|
]
|
|
2753
2732
|
},
|
|
2754
2733
|
"useEnumInitializers": {
|
|
2755
2734
|
"description": "Require that each enum member value be explicitly initialized.",
|
|
2756
2735
|
"anyOf": [
|
|
2757
|
-
{ "$ref": "#/definitions/
|
|
2736
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2758
2737
|
{ "type": "null" }
|
|
2759
2738
|
]
|
|
2760
2739
|
},
|
|
2761
2740
|
"useExponentiationOperator": {
|
|
2762
2741
|
"description": "Disallow the use of Math.pow in favor of the ** operator.",
|
|
2763
2742
|
"anyOf": [
|
|
2764
|
-
{ "$ref": "#/definitions/
|
|
2743
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2765
2744
|
{ "type": "null" }
|
|
2766
2745
|
]
|
|
2767
2746
|
},
|
|
2768
2747
|
"useExportType": {
|
|
2769
2748
|
"description": "Promotes the use of export type for types.",
|
|
2770
2749
|
"anyOf": [
|
|
2771
|
-
{ "$ref": "#/definitions/
|
|
2750
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2772
2751
|
{ "type": "null" }
|
|
2773
2752
|
]
|
|
2774
2753
|
},
|
|
@@ -2789,14 +2768,14 @@
|
|
|
2789
2768
|
"useFragmentSyntax": {
|
|
2790
2769
|
"description": "This rule enforces the use of \\<>...\\</> over \\<Fragment>...\\</Fragment>.",
|
|
2791
2770
|
"anyOf": [
|
|
2792
|
-
{ "$ref": "#/definitions/
|
|
2771
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2793
2772
|
{ "type": "null" }
|
|
2794
2773
|
]
|
|
2795
2774
|
},
|
|
2796
2775
|
"useImportType": {
|
|
2797
2776
|
"description": "Promotes the use of import type for types.",
|
|
2798
2777
|
"anyOf": [
|
|
2799
|
-
{ "$ref": "#/definitions/
|
|
2778
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2800
2779
|
{ "type": "null" }
|
|
2801
2780
|
]
|
|
2802
2781
|
},
|
|
@@ -2810,93 +2789,91 @@
|
|
|
2810
2789
|
"useNamingConvention": {
|
|
2811
2790
|
"description": "Enforce naming conventions for everything across a codebase.",
|
|
2812
2791
|
"anyOf": [
|
|
2813
|
-
{
|
|
2814
|
-
"$ref": "#/definitions/RuleFixConfiguration_for_NamingConventionOptions"
|
|
2815
|
-
},
|
|
2792
|
+
{ "$ref": "#/definitions/NamingConventionConfiguration" },
|
|
2816
2793
|
{ "type": "null" }
|
|
2817
2794
|
]
|
|
2818
2795
|
},
|
|
2819
2796
|
"useNodeAssertStrict": {
|
|
2820
2797
|
"description": "Promotes the usage of node:assert/strict over node:assert.",
|
|
2821
2798
|
"anyOf": [
|
|
2822
|
-
{ "$ref": "#/definitions/
|
|
2799
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2823
2800
|
{ "type": "null" }
|
|
2824
2801
|
]
|
|
2825
2802
|
},
|
|
2826
2803
|
"useNodejsImportProtocol": {
|
|
2827
2804
|
"description": "Enforces using the node: protocol for Node.js builtin modules.",
|
|
2828
2805
|
"anyOf": [
|
|
2829
|
-
{ "$ref": "#/definitions/
|
|
2806
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2830
2807
|
{ "type": "null" }
|
|
2831
2808
|
]
|
|
2832
2809
|
},
|
|
2833
2810
|
"useNumberNamespace": {
|
|
2834
2811
|
"description": "Use the Number properties instead of global ones.",
|
|
2835
2812
|
"anyOf": [
|
|
2836
|
-
{ "$ref": "#/definitions/
|
|
2813
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2837
2814
|
{ "type": "null" }
|
|
2838
2815
|
]
|
|
2839
2816
|
},
|
|
2840
2817
|
"useNumericLiterals": {
|
|
2841
2818
|
"description": "Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals",
|
|
2842
2819
|
"anyOf": [
|
|
2843
|
-
{ "$ref": "#/definitions/
|
|
2820
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2844
2821
|
{ "type": "null" }
|
|
2845
2822
|
]
|
|
2846
2823
|
},
|
|
2847
2824
|
"useSelfClosingElements": {
|
|
2848
2825
|
"description": "Prevent extra closing tags for components without children",
|
|
2849
2826
|
"anyOf": [
|
|
2850
|
-
{ "$ref": "#/definitions/
|
|
2827
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2851
2828
|
{ "type": "null" }
|
|
2852
2829
|
]
|
|
2853
2830
|
},
|
|
2854
2831
|
"useShorthandArrayType": {
|
|
2855
2832
|
"description": "When expressing array types, this rule promotes the usage of T\\[] shorthand instead of Array\\<T>.",
|
|
2856
2833
|
"anyOf": [
|
|
2857
|
-
{ "$ref": "#/definitions/
|
|
2834
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2858
2835
|
{ "type": "null" }
|
|
2859
2836
|
]
|
|
2860
2837
|
},
|
|
2861
2838
|
"useShorthandAssign": {
|
|
2862
2839
|
"description": "Require assignment operator shorthand where possible.",
|
|
2863
2840
|
"anyOf": [
|
|
2864
|
-
{ "$ref": "#/definitions/
|
|
2841
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2865
2842
|
{ "type": "null" }
|
|
2866
2843
|
]
|
|
2867
2844
|
},
|
|
2868
2845
|
"useShorthandFunctionType": {
|
|
2869
2846
|
"description": "Enforce using function types instead of object type with call signatures.",
|
|
2870
2847
|
"anyOf": [
|
|
2871
|
-
{ "$ref": "#/definitions/
|
|
2848
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2872
2849
|
{ "type": "null" }
|
|
2873
2850
|
]
|
|
2874
2851
|
},
|
|
2875
2852
|
"useSingleCaseStatement": {
|
|
2876
2853
|
"description": "Enforces switch clauses have a single statement, emits a quick fix wrapping the statements in a block.",
|
|
2877
2854
|
"anyOf": [
|
|
2878
|
-
{ "$ref": "#/definitions/
|
|
2855
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2879
2856
|
{ "type": "null" }
|
|
2880
2857
|
]
|
|
2881
2858
|
},
|
|
2882
2859
|
"useSingleVarDeclarator": {
|
|
2883
2860
|
"description": "Disallow multiple variable declarations in the same variable statement",
|
|
2884
2861
|
"anyOf": [
|
|
2885
|
-
{ "$ref": "#/definitions/
|
|
2862
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2886
2863
|
{ "type": "null" }
|
|
2887
2864
|
]
|
|
2888
2865
|
},
|
|
2889
2866
|
"useTemplate": {
|
|
2890
2867
|
"description": "Prefer template literals over string concatenation.",
|
|
2891
2868
|
"anyOf": [
|
|
2892
|
-
{ "$ref": "#/definitions/
|
|
2869
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2893
2870
|
{ "type": "null" }
|
|
2894
2871
|
]
|
|
2895
2872
|
},
|
|
2896
2873
|
"useWhile": {
|
|
2897
2874
|
"description": "Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed.",
|
|
2898
2875
|
"anyOf": [
|
|
2899
|
-
{ "$ref": "#/definitions/
|
|
2876
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2900
2877
|
{ "type": "null" }
|
|
2901
2878
|
]
|
|
2902
2879
|
}
|
|
@@ -2914,7 +2891,7 @@
|
|
|
2914
2891
|
"noApproximativeNumericConstant": {
|
|
2915
2892
|
"description": "Use standard constants instead of approximated literals.",
|
|
2916
2893
|
"anyOf": [
|
|
2917
|
-
{ "$ref": "#/definitions/
|
|
2894
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2918
2895
|
{ "type": "null" }
|
|
2919
2896
|
]
|
|
2920
2897
|
},
|
|
@@ -2956,14 +2933,14 @@
|
|
|
2956
2933
|
"noCommentText": {
|
|
2957
2934
|
"description": "Prevent comments from being inserted as text nodes",
|
|
2958
2935
|
"anyOf": [
|
|
2959
|
-
{ "$ref": "#/definitions/
|
|
2936
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2960
2937
|
{ "type": "null" }
|
|
2961
2938
|
]
|
|
2962
2939
|
},
|
|
2963
2940
|
"noCompareNegZero": {
|
|
2964
2941
|
"description": "Disallow comparing against -0",
|
|
2965
2942
|
"anyOf": [
|
|
2966
|
-
{ "$ref": "#/definitions/
|
|
2943
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2967
2944
|
{ "type": "null" }
|
|
2968
2945
|
]
|
|
2969
2946
|
},
|
|
@@ -2977,21 +2954,21 @@
|
|
|
2977
2954
|
"noConfusingVoidType": {
|
|
2978
2955
|
"description": "Disallow void type outside of generic or return types.",
|
|
2979
2956
|
"anyOf": [
|
|
2980
|
-
{ "$ref": "#/definitions/
|
|
2957
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2981
2958
|
{ "type": "null" }
|
|
2982
2959
|
]
|
|
2983
2960
|
},
|
|
2984
2961
|
"noConsoleLog": {
|
|
2985
2962
|
"description": "Disallow the use of console.log",
|
|
2986
2963
|
"anyOf": [
|
|
2987
|
-
{ "$ref": "#/definitions/
|
|
2964
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2988
2965
|
{ "type": "null" }
|
|
2989
2966
|
]
|
|
2990
2967
|
},
|
|
2991
2968
|
"noConstEnum": {
|
|
2992
2969
|
"description": "Disallow TypeScript const enum",
|
|
2993
2970
|
"anyOf": [
|
|
2994
|
-
{ "$ref": "#/definitions/
|
|
2971
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2995
2972
|
{ "type": "null" }
|
|
2996
2973
|
]
|
|
2997
2974
|
},
|
|
@@ -3005,14 +2982,14 @@
|
|
|
3005
2982
|
"noDebugger": {
|
|
3006
2983
|
"description": "Disallow the use of debugger",
|
|
3007
2984
|
"anyOf": [
|
|
3008
|
-
{ "$ref": "#/definitions/
|
|
2985
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3009
2986
|
{ "type": "null" }
|
|
3010
2987
|
]
|
|
3011
2988
|
},
|
|
3012
2989
|
"noDoubleEquals": {
|
|
3013
2990
|
"description": "Require the use of === and !==",
|
|
3014
2991
|
"anyOf": [
|
|
3015
|
-
{ "$ref": "#/definitions/
|
|
2992
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3016
2993
|
{ "type": "null" }
|
|
3017
2994
|
]
|
|
3018
2995
|
},
|
|
@@ -3040,7 +3017,7 @@
|
|
|
3040
3017
|
"noDuplicateObjectKeys": {
|
|
3041
3018
|
"description": "Prevents object literals having more than one property declaration for the same name.",
|
|
3042
3019
|
"anyOf": [
|
|
3043
|
-
{ "$ref": "#/definitions/
|
|
3020
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3044
3021
|
{ "type": "null" }
|
|
3045
3022
|
]
|
|
3046
3023
|
},
|
|
@@ -3068,7 +3045,7 @@
|
|
|
3068
3045
|
"noEmptyInterface": {
|
|
3069
3046
|
"description": "Disallow the declaration of empty interfaces.",
|
|
3070
3047
|
"anyOf": [
|
|
3071
|
-
{ "$ref": "#/definitions/
|
|
3048
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3072
3049
|
{ "type": "null" }
|
|
3073
3050
|
]
|
|
3074
3051
|
},
|
|
@@ -3089,7 +3066,7 @@
|
|
|
3089
3066
|
"noExtraNonNullAssertion": {
|
|
3090
3067
|
"description": "Prevents the wrong usage of the non-null assertion operator (!) in TypeScript files.",
|
|
3091
3068
|
"anyOf": [
|
|
3092
|
-
{ "$ref": "#/definitions/
|
|
3069
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3093
3070
|
{ "type": "null" }
|
|
3094
3071
|
]
|
|
3095
3072
|
},
|
|
@@ -3103,7 +3080,7 @@
|
|
|
3103
3080
|
"noFocusedTests": {
|
|
3104
3081
|
"description": "Disallow focused tests.",
|
|
3105
3082
|
"anyOf": [
|
|
3106
|
-
{ "$ref": "#/definitions/
|
|
3083
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3107
3084
|
{ "type": "null" }
|
|
3108
3085
|
]
|
|
3109
3086
|
},
|
|
@@ -3124,14 +3101,14 @@
|
|
|
3124
3101
|
"noGlobalIsFinite": {
|
|
3125
3102
|
"description": "Use Number.isFinite instead of global isFinite.",
|
|
3126
3103
|
"anyOf": [
|
|
3127
|
-
{ "$ref": "#/definitions/
|
|
3104
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3128
3105
|
{ "type": "null" }
|
|
3129
3106
|
]
|
|
3130
3107
|
},
|
|
3131
3108
|
"noGlobalIsNan": {
|
|
3132
3109
|
"description": "Use Number.isNaN instead of global isNaN.",
|
|
3133
3110
|
"anyOf": [
|
|
3134
|
-
{ "$ref": "#/definitions/
|
|
3111
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3135
3112
|
{ "type": "null" }
|
|
3136
3113
|
]
|
|
3137
3114
|
},
|
|
@@ -3159,7 +3136,7 @@
|
|
|
3159
3136
|
"noMisleadingCharacterClass": {
|
|
3160
3137
|
"description": "Disallow characters made with multiple code points in character class syntax.",
|
|
3161
3138
|
"anyOf": [
|
|
3162
|
-
{ "$ref": "#/definitions/
|
|
3139
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3163
3140
|
{ "type": "null" }
|
|
3164
3141
|
]
|
|
3165
3142
|
},
|
|
@@ -3173,7 +3150,7 @@
|
|
|
3173
3150
|
"noMisrefactoredShorthandAssign": {
|
|
3174
3151
|
"description": "Disallow shorthand assign when variable appears on both sides.",
|
|
3175
3152
|
"anyOf": [
|
|
3176
|
-
{ "$ref": "#/definitions/
|
|
3153
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3177
3154
|
{ "type": "null" }
|
|
3178
3155
|
]
|
|
3179
3156
|
},
|
|
@@ -3194,7 +3171,7 @@
|
|
|
3194
3171
|
"noRedundantUseStrict": {
|
|
3195
3172
|
"description": "Prevents from having redundant \"use strict\".",
|
|
3196
3173
|
"anyOf": [
|
|
3197
|
-
{ "$ref": "#/definitions/
|
|
3174
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3198
3175
|
{ "type": "null" }
|
|
3199
3176
|
]
|
|
3200
3177
|
},
|
|
@@ -3215,14 +3192,14 @@
|
|
|
3215
3192
|
"noSkippedTests": {
|
|
3216
3193
|
"description": "Disallow disabled tests.",
|
|
3217
3194
|
"anyOf": [
|
|
3218
|
-
{ "$ref": "#/definitions/
|
|
3195
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3219
3196
|
{ "type": "null" }
|
|
3220
3197
|
]
|
|
3221
3198
|
},
|
|
3222
3199
|
"noSparseArray": {
|
|
3223
3200
|
"description": "Disallow sparse arrays",
|
|
3224
3201
|
"anyOf": [
|
|
3225
|
-
{ "$ref": "#/definitions/
|
|
3202
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3226
3203
|
{ "type": "null" }
|
|
3227
3204
|
]
|
|
3228
3205
|
},
|
|
@@ -3250,7 +3227,7 @@
|
|
|
3250
3227
|
"noUnsafeNegation": {
|
|
3251
3228
|
"description": "Disallow using unsafe negation.",
|
|
3252
3229
|
"anyOf": [
|
|
3253
|
-
{ "$ref": "#/definitions/
|
|
3230
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3254
3231
|
{ "type": "null" }
|
|
3255
3232
|
]
|
|
3256
3233
|
},
|
|
@@ -3282,21 +3259,21 @@
|
|
|
3282
3259
|
"useIsArray": {
|
|
3283
3260
|
"description": "Use Array.isArray() instead of instanceof Array.",
|
|
3284
3261
|
"anyOf": [
|
|
3285
|
-
{ "$ref": "#/definitions/
|
|
3262
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3286
3263
|
{ "type": "null" }
|
|
3287
3264
|
]
|
|
3288
3265
|
},
|
|
3289
3266
|
"useNamespaceKeyword": {
|
|
3290
3267
|
"description": "Require using the namespace keyword over the module keyword to declare TypeScript namespaces.",
|
|
3291
3268
|
"anyOf": [
|
|
3292
|
-
{ "$ref": "#/definitions/
|
|
3269
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3293
3270
|
{ "type": "null" }
|
|
3294
3271
|
]
|
|
3295
3272
|
},
|
|
3296
3273
|
"useValidTypeof": {
|
|
3297
3274
|
"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
3275
|
"anyOf": [
|
|
3299
|
-
{ "$ref": "#/definitions/
|
|
3276
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3300
3277
|
{ "type": "null" }
|
|
3301
3278
|
]
|
|
3302
3279
|
}
|
|
@@ -3337,6 +3314,12 @@
|
|
|
3337
3314
|
}
|
|
3338
3315
|
]
|
|
3339
3316
|
},
|
|
3317
|
+
"UtilityClassSortingConfiguration": {
|
|
3318
|
+
"anyOf": [
|
|
3319
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
3320
|
+
{ "$ref": "#/definitions/RuleWithUtilityClassSortingOptions" }
|
|
3321
|
+
]
|
|
3322
|
+
},
|
|
3340
3323
|
"UtilityClassSortingOptions": {
|
|
3341
3324
|
"type": "object",
|
|
3342
3325
|
"properties": {
|
|
@@ -3353,6 +3336,12 @@
|
|
|
3353
3336
|
},
|
|
3354
3337
|
"additionalProperties": false
|
|
3355
3338
|
},
|
|
3339
|
+
"ValidAriaRoleConfiguration": {
|
|
3340
|
+
"anyOf": [
|
|
3341
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
3342
|
+
{ "$ref": "#/definitions/RuleWithValidAriaRoleOptions" }
|
|
3343
|
+
]
|
|
3344
|
+
},
|
|
3356
3345
|
"ValidAriaRoleOptions": {
|
|
3357
3346
|
"type": "object",
|
|
3358
3347
|
"required": ["allowInvalidRoles", "ignoreNonDom"],
|