@biomejs/biome 2.4.15 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.es.md +1 -1
- package/README.fr.md +1 -1
- package/README.md +1 -1
- package/README.pl.md +1 -1
- package/README.pt-BR.md +1 -1
- package/README.ru.md +1 -1
- package/README.uk.md +1 -1
- package/README.zh-CN.md +1 -1
- package/README.zh-TW.md +1 -1
- package/bin/biome +1 -0
- package/configuration_schema.json +1177 -578
- package/package.json +9 -9
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"$schema": {
|
|
8
|
-
"description": "A field for the
|
|
8
|
+
"description": "A field for the JSON schema specification: https://json-schema.org/",
|
|
9
9
|
"anyOf": [{ "$ref": "#/$defs/Schema" }, { "type": "null" }]
|
|
10
10
|
},
|
|
11
11
|
"assist": {
|
|
@@ -85,6 +85,13 @@
|
|
|
85
85
|
{ "type": "null" }
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
|
+
"noAmbiguousAnchorText": {
|
|
89
|
+
"description": "Disallow ambiguous anchor descriptions.\nSee https://biomejs.dev/linter/rules/no-ambiguous-anchor-text",
|
|
90
|
+
"anyOf": [
|
|
91
|
+
{ "$ref": "#/$defs/NoAmbiguousAnchorTextConfiguration" },
|
|
92
|
+
{ "type": "null" }
|
|
93
|
+
]
|
|
94
|
+
},
|
|
88
95
|
"noAriaHiddenOnFocusable": {
|
|
89
96
|
"description": "Enforce that aria-hidden=\"true\" is not set on focusable elements.\nSee https://biomejs.dev/linter/rules/no-aria-hidden-on-focusable",
|
|
90
97
|
"anyOf": [
|
|
@@ -155,7 +162,7 @@
|
|
|
155
162
|
]
|
|
156
163
|
},
|
|
157
164
|
"noNoninteractiveTabindex": {
|
|
158
|
-
"description": "Enforce that
|
|
165
|
+
"description": "Enforce that tabindex is not assigned to non-interactive HTML elements.\nSee https://biomejs.dev/linter/rules/no-noninteractive-tabindex",
|
|
159
166
|
"anyOf": [
|
|
160
167
|
{ "$ref": "#/$defs/NoNoninteractiveTabindexConfiguration" },
|
|
161
168
|
{ "type": "null" }
|
|
@@ -196,6 +203,10 @@
|
|
|
196
203
|
{ "type": "null" }
|
|
197
204
|
]
|
|
198
205
|
},
|
|
206
|
+
"preset": {
|
|
207
|
+
"description": "Enables a particular rule preset",
|
|
208
|
+
"anyOf": [{ "$ref": "#/$defs/PresetConfig" }, { "type": "null" }]
|
|
209
|
+
},
|
|
199
210
|
"recommended": {
|
|
200
211
|
"description": "Enables the recommended rules for this group",
|
|
201
212
|
"type": ["boolean", "null"]
|
|
@@ -215,7 +226,7 @@
|
|
|
215
226
|
]
|
|
216
227
|
},
|
|
217
228
|
"useAriaActivedescendantWithTabindex": {
|
|
218
|
-
"description": "Enforce that
|
|
229
|
+
"description": "Enforce that tabindex is assigned to non-interactive HTML elements with aria-activedescendant.\nSee https://biomejs.dev/linter/rules/use-aria-activedescendant-with-tabindex",
|
|
219
230
|
"anyOf": [
|
|
220
231
|
{
|
|
221
232
|
"$ref": "#/$defs/UseAriaActivedescendantWithTabindexConfiguration"
|
|
@@ -259,7 +270,7 @@
|
|
|
259
270
|
]
|
|
260
271
|
},
|
|
261
272
|
"useHeadingContent": {
|
|
262
|
-
"description": "Enforce that heading elements (h1, h2, etc.) have content and that the content is accessible to screen readers
|
|
273
|
+
"description": "Enforce that heading elements (h1, h2, etc.) have content and that the content is accessible to screen readers.\nSee https://biomejs.dev/linter/rules/use-heading-content",
|
|
263
274
|
"anyOf": [
|
|
264
275
|
{ "$ref": "#/$defs/UseHeadingContentConfiguration" },
|
|
265
276
|
{ "type": "null" }
|
|
@@ -280,14 +291,14 @@
|
|
|
280
291
|
]
|
|
281
292
|
},
|
|
282
293
|
"useKeyWithClickEvents": {
|
|
283
|
-
"description": "Enforce
|
|
294
|
+
"description": "Enforce elements with a click event handler to also have at least one keyboard event handler.\nSee https://biomejs.dev/linter/rules/use-key-with-click-events",
|
|
284
295
|
"anyOf": [
|
|
285
296
|
{ "$ref": "#/$defs/UseKeyWithClickEventsConfiguration" },
|
|
286
297
|
{ "type": "null" }
|
|
287
298
|
]
|
|
288
299
|
},
|
|
289
300
|
"useKeyWithMouseEvents": {
|
|
290
|
-
"description": "Enforce
|
|
301
|
+
"description": "Enforce that onmouseover is accompanied by onfocus and onmouseout by onblur.\nSee https://biomejs.dev/linter/rules/use-key-with-mouse-events",
|
|
291
302
|
"anyOf": [
|
|
292
303
|
{ "$ref": "#/$defs/UseKeyWithMouseEventsConfiguration" },
|
|
293
304
|
{ "type": "null" }
|
|
@@ -301,7 +312,7 @@
|
|
|
301
312
|
]
|
|
302
313
|
},
|
|
303
314
|
"useSemanticElements": {
|
|
304
|
-
"description": "
|
|
315
|
+
"description": "Enforces using semantic DOM elements over the ARIA role property.\nSee https://biomejs.dev/linter/rules/use-semantic-elements",
|
|
305
316
|
"anyOf": [
|
|
306
317
|
{ "$ref": "#/$defs/UseSemanticElementsConfiguration" },
|
|
307
318
|
{ "type": "null" }
|
|
@@ -359,6 +370,10 @@
|
|
|
359
370
|
"Actions": {
|
|
360
371
|
"type": "object",
|
|
361
372
|
"properties": {
|
|
373
|
+
"preset": {
|
|
374
|
+
"description": "The actions preset to use.",
|
|
375
|
+
"anyOf": [{ "$ref": "#/$defs/PresetConfig" }, { "type": "null" }]
|
|
376
|
+
},
|
|
362
377
|
"recommended": {
|
|
363
378
|
"description": "It enables the assist actions recommended by Biome. `true` by default.",
|
|
364
379
|
"type": ["boolean", "null"]
|
|
@@ -478,6 +493,13 @@
|
|
|
478
493
|
{ "type": "null" }
|
|
479
494
|
]
|
|
480
495
|
},
|
|
496
|
+
"noDivRegex": {
|
|
497
|
+
"description": "Disallow equal signs explicitly at the beginning of regular expressions.\nSee https://biomejs.dev/linter/rules/no-div-regex",
|
|
498
|
+
"anyOf": [
|
|
499
|
+
{ "$ref": "#/$defs/NoDivRegexConfiguration" },
|
|
500
|
+
{ "type": "null" }
|
|
501
|
+
]
|
|
502
|
+
},
|
|
481
503
|
"noEmptyTypeParameters": {
|
|
482
504
|
"description": "Disallow empty type parameters in type aliases and interfaces.\nSee https://biomejs.dev/linter/rules/no-empty-type-parameters",
|
|
483
505
|
"anyOf": [
|
|
@@ -528,7 +550,7 @@
|
|
|
528
550
|
]
|
|
529
551
|
},
|
|
530
552
|
"noImplicitCoercions": {
|
|
531
|
-
"description": "
|
|
553
|
+
"description": "Encourage use of explicit type conversion functions over their shorthand counterparts.\nSee https://biomejs.dev/linter/rules/no-implicit-coercions",
|
|
532
554
|
"anyOf": [
|
|
533
555
|
{ "$ref": "#/$defs/NoImplicitCoercionsConfiguration" },
|
|
534
556
|
{ "type": "null" }
|
|
@@ -541,6 +563,13 @@
|
|
|
541
563
|
{ "type": "null" }
|
|
542
564
|
]
|
|
543
565
|
},
|
|
566
|
+
"noRedundantDefaultExport": {
|
|
567
|
+
"description": "Checks if a default export exports the same symbol as a named export.\nSee https://biomejs.dev/linter/rules/no-redundant-default-export",
|
|
568
|
+
"anyOf": [
|
|
569
|
+
{ "$ref": "#/$defs/NoRedundantDefaultExportConfiguration" },
|
|
570
|
+
{ "type": "null" }
|
|
571
|
+
]
|
|
572
|
+
},
|
|
544
573
|
"noStaticOnlyClass": {
|
|
545
574
|
"description": "This rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace.\nSee https://biomejs.dev/linter/rules/no-static-only-class",
|
|
546
575
|
"anyOf": [
|
|
@@ -625,6 +654,13 @@
|
|
|
625
654
|
{ "type": "null" }
|
|
626
655
|
]
|
|
627
656
|
},
|
|
657
|
+
"noUselessReturn": {
|
|
658
|
+
"description": "Disallow redundant return statements.\nSee https://biomejs.dev/linter/rules/no-useless-return",
|
|
659
|
+
"anyOf": [
|
|
660
|
+
{ "$ref": "#/$defs/NoUselessReturnConfiguration" },
|
|
661
|
+
{ "type": "null" }
|
|
662
|
+
]
|
|
663
|
+
},
|
|
628
664
|
"noUselessStringConcat": {
|
|
629
665
|
"description": "Disallow unnecessary concatenation of string or template literals.\nSee https://biomejs.dev/linter/rules/no-useless-string-concat",
|
|
630
666
|
"anyOf": [
|
|
@@ -688,10 +724,21 @@
|
|
|
688
724
|
{ "type": "null" }
|
|
689
725
|
]
|
|
690
726
|
},
|
|
727
|
+
"preset": {
|
|
728
|
+
"description": "Enables a particular rule preset",
|
|
729
|
+
"anyOf": [{ "$ref": "#/$defs/PresetConfig" }, { "type": "null" }]
|
|
730
|
+
},
|
|
691
731
|
"recommended": {
|
|
692
732
|
"description": "Enables the recommended rules for this group",
|
|
693
733
|
"type": ["boolean", "null"]
|
|
694
734
|
},
|
|
735
|
+
"useArrayFind": {
|
|
736
|
+
"description": "Enforce the use of Array.prototype.find() over Array.prototype.filter() followed by [0] when looking for a single result.\nSee https://biomejs.dev/linter/rules/use-array-find",
|
|
737
|
+
"anyOf": [
|
|
738
|
+
{ "$ref": "#/$defs/UseArrayFindConfiguration" },
|
|
739
|
+
{ "type": "null" }
|
|
740
|
+
]
|
|
741
|
+
},
|
|
695
742
|
"useArrowFunction": {
|
|
696
743
|
"description": "Use arrow functions over function expressions.\nSee https://biomejs.dev/linter/rules/use-arrow-function",
|
|
697
744
|
"anyOf": [
|
|
@@ -779,6 +826,25 @@
|
|
|
779
826
|
},
|
|
780
827
|
"additionalProperties": false
|
|
781
828
|
},
|
|
829
|
+
"ComponentDefinitionStyle": {
|
|
830
|
+
"oneOf": [
|
|
831
|
+
{
|
|
832
|
+
"description": "Enforce function declarations.",
|
|
833
|
+
"type": "string",
|
|
834
|
+
"const": "functionDeclaration"
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
"description": "Enforce function expressions assigned to a component binding.",
|
|
838
|
+
"type": "string",
|
|
839
|
+
"const": "functionExpression"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"description": "Enforce arrow functions assigned to a component binding.",
|
|
843
|
+
"type": "string",
|
|
844
|
+
"const": "arrowFunction"
|
|
845
|
+
}
|
|
846
|
+
]
|
|
847
|
+
},
|
|
782
848
|
"ConsistentArrayType": {
|
|
783
849
|
"oneOf": [
|
|
784
850
|
{
|
|
@@ -829,6 +895,15 @@
|
|
|
829
895
|
"description": "A list of rules that belong to this group",
|
|
830
896
|
"type": "object",
|
|
831
897
|
"properties": {
|
|
898
|
+
"noBeforeInteractiveScriptOutsideDocument": {
|
|
899
|
+
"description": "Prevent usage of next/script's beforeInteractive strategy outside of pages/_document.js in a Next.js project.\nSee https://biomejs.dev/linter/rules/no-before-interactive-script-outside-document",
|
|
900
|
+
"anyOf": [
|
|
901
|
+
{
|
|
902
|
+
"$ref": "#/$defs/NoBeforeInteractiveScriptOutsideDocumentConfiguration"
|
|
903
|
+
},
|
|
904
|
+
{ "type": "null" }
|
|
905
|
+
]
|
|
906
|
+
},
|
|
832
907
|
"noChildrenProp": {
|
|
833
908
|
"description": "Prevent passing of children as props.\nSee https://biomejs.dev/linter/rules/no-children-prop",
|
|
834
909
|
"anyOf": [
|
|
@@ -864,6 +939,41 @@
|
|
|
864
939
|
{ "type": "null" }
|
|
865
940
|
]
|
|
866
941
|
},
|
|
942
|
+
"noDuplicateArgumentNames": {
|
|
943
|
+
"description": "Require all argument names for fields & directives to be unique.\nSee https://biomejs.dev/linter/rules/no-duplicate-argument-names",
|
|
944
|
+
"anyOf": [
|
|
945
|
+
{ "$ref": "#/$defs/NoDuplicateArgumentNamesConfiguration" },
|
|
946
|
+
{ "type": "null" }
|
|
947
|
+
]
|
|
948
|
+
},
|
|
949
|
+
"noDuplicateAttributes": {
|
|
950
|
+
"description": "Disallow duplication of attributes.\nSee https://biomejs.dev/linter/rules/no-duplicate-attributes",
|
|
951
|
+
"anyOf": [
|
|
952
|
+
{ "$ref": "#/$defs/NoDuplicateAttributesConfiguration" },
|
|
953
|
+
{ "type": "null" }
|
|
954
|
+
]
|
|
955
|
+
},
|
|
956
|
+
"noDuplicateEnumValueNames": {
|
|
957
|
+
"description": "Require all enum value names to be unique.\nSee https://biomejs.dev/linter/rules/no-duplicate-enum-value-names",
|
|
958
|
+
"anyOf": [
|
|
959
|
+
{ "$ref": "#/$defs/NoDuplicateEnumValueNamesConfiguration" },
|
|
960
|
+
{ "type": "null" }
|
|
961
|
+
]
|
|
962
|
+
},
|
|
963
|
+
"noDuplicateInputFieldNames": {
|
|
964
|
+
"description": "Require fields within an input object to be unique.\nSee https://biomejs.dev/linter/rules/no-duplicate-input-field-names",
|
|
965
|
+
"anyOf": [
|
|
966
|
+
{ "$ref": "#/$defs/NoDuplicateInputFieldNamesConfiguration" },
|
|
967
|
+
{ "type": "null" }
|
|
968
|
+
]
|
|
969
|
+
},
|
|
970
|
+
"noDuplicateVariableNames": {
|
|
971
|
+
"description": "Require all variable definitions to be unique.\nSee https://biomejs.dev/linter/rules/no-duplicate-variable-names",
|
|
972
|
+
"anyOf": [
|
|
973
|
+
{ "$ref": "#/$defs/NoDuplicateVariableNamesConfiguration" },
|
|
974
|
+
{ "type": "null" }
|
|
975
|
+
]
|
|
976
|
+
},
|
|
867
977
|
"noEmptyCharacterClassInRegex": {
|
|
868
978
|
"description": "Disallow empty character classes in regular expression literals.\nSee https://biomejs.dev/linter/rules/no-empty-character-class-in-regex",
|
|
869
979
|
"anyOf": [
|
|
@@ -1181,6 +1291,13 @@
|
|
|
1181
1291
|
{ "type": "null" }
|
|
1182
1292
|
]
|
|
1183
1293
|
},
|
|
1294
|
+
"noUnusedInstantiation": {
|
|
1295
|
+
"description": "Disallow new operators outside of assignments or comparisons.\nSee https://biomejs.dev/linter/rules/no-unused-instantiation",
|
|
1296
|
+
"anyOf": [
|
|
1297
|
+
{ "$ref": "#/$defs/NoUnusedInstantiationConfiguration" },
|
|
1298
|
+
{ "type": "null" }
|
|
1299
|
+
]
|
|
1300
|
+
},
|
|
1184
1301
|
"noUnusedLabels": {
|
|
1185
1302
|
"description": "Disallow unused labels.\nSee https://biomejs.dev/linter/rules/no-unused-labels",
|
|
1186
1303
|
"anyOf": [
|
|
@@ -1251,6 +1368,17 @@
|
|
|
1251
1368
|
{ "type": "null" }
|
|
1252
1369
|
]
|
|
1253
1370
|
},
|
|
1371
|
+
"noVueVIfWithVFor": {
|
|
1372
|
+
"description": "Disallow using v-if and v-for directives on the same element.\nSee https://biomejs.dev/linter/rules/no-vue-v-if-with-v-for",
|
|
1373
|
+
"anyOf": [
|
|
1374
|
+
{ "$ref": "#/$defs/NoVueVIfWithVForConfiguration" },
|
|
1375
|
+
{ "type": "null" }
|
|
1376
|
+
]
|
|
1377
|
+
},
|
|
1378
|
+
"preset": {
|
|
1379
|
+
"description": "Enables a particular rule preset",
|
|
1380
|
+
"anyOf": [{ "$ref": "#/$defs/PresetConfig" }, { "type": "null" }]
|
|
1381
|
+
},
|
|
1254
1382
|
"recommended": {
|
|
1255
1383
|
"description": "Enables the recommended rules for this group",
|
|
1256
1384
|
"type": ["boolean", "null"]
|
|
@@ -1290,6 +1418,13 @@
|
|
|
1290
1418
|
{ "type": "null" }
|
|
1291
1419
|
]
|
|
1292
1420
|
},
|
|
1421
|
+
"useInlineScriptId": {
|
|
1422
|
+
"description": "Enforce id attribute on next/script components with inline content or dangerouslySetInnerHTML.\nSee https://biomejs.dev/linter/rules/use-inline-script-id",
|
|
1423
|
+
"anyOf": [
|
|
1424
|
+
{ "$ref": "#/$defs/UseInlineScriptIdConfiguration" },
|
|
1425
|
+
{ "type": "null" }
|
|
1426
|
+
]
|
|
1427
|
+
},
|
|
1293
1428
|
"useIsNan": {
|
|
1294
1429
|
"description": "Require calls to isNaN() when checking for NaN.\nSee https://biomejs.dev/linter/rules/use-is-nan",
|
|
1295
1430
|
"anyOf": [
|
|
@@ -1311,6 +1446,13 @@
|
|
|
1311
1446
|
{ "type": "null" }
|
|
1312
1447
|
]
|
|
1313
1448
|
},
|
|
1449
|
+
"useLoneAnonymousOperation": {
|
|
1450
|
+
"description": "Disallow anonymous operations when more than one operation specified in document.\nSee https://biomejs.dev/linter/rules/use-lone-anonymous-operation",
|
|
1451
|
+
"anyOf": [
|
|
1452
|
+
{ "$ref": "#/$defs/UseLoneAnonymousOperationConfiguration" },
|
|
1453
|
+
{ "type": "null" }
|
|
1454
|
+
]
|
|
1455
|
+
},
|
|
1314
1456
|
"useParseIntRadix": {
|
|
1315
1457
|
"description": "Enforce the consistent use of the radix argument when using parseInt().\nSee https://biomejs.dev/linter/rules/use-parse-int-radix",
|
|
1316
1458
|
"anyOf": [
|
|
@@ -1367,6 +1509,90 @@
|
|
|
1367
1509
|
{ "type": "null" }
|
|
1368
1510
|
]
|
|
1369
1511
|
},
|
|
1512
|
+
"useVueVForKey": {
|
|
1513
|
+
"description": "Enforce that elements using v-for also specify a unique key.\nSee https://biomejs.dev/linter/rules/use-vue-v-for-key",
|
|
1514
|
+
"anyOf": [
|
|
1515
|
+
{ "$ref": "#/$defs/UseVueVForKeyConfiguration" },
|
|
1516
|
+
{ "type": "null" }
|
|
1517
|
+
]
|
|
1518
|
+
},
|
|
1519
|
+
"useVueValidTemplateRoot": {
|
|
1520
|
+
"description": "Enforce valid Vue \\<template> root usage.\nSee https://biomejs.dev/linter/rules/use-vue-valid-template-root",
|
|
1521
|
+
"anyOf": [
|
|
1522
|
+
{ "$ref": "#/$defs/UseVueValidTemplateRootConfiguration" },
|
|
1523
|
+
{ "type": "null" }
|
|
1524
|
+
]
|
|
1525
|
+
},
|
|
1526
|
+
"useVueValidVBind": {
|
|
1527
|
+
"description": "Forbids v-bind directives with missing values or invalid modifiers.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-bind",
|
|
1528
|
+
"anyOf": [
|
|
1529
|
+
{ "$ref": "#/$defs/UseVueValidVBindConfiguration" },
|
|
1530
|
+
{ "type": "null" }
|
|
1531
|
+
]
|
|
1532
|
+
},
|
|
1533
|
+
"useVueValidVCloak": {
|
|
1534
|
+
"description": "Enforce valid v-cloak Vue directives.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-cloak",
|
|
1535
|
+
"anyOf": [
|
|
1536
|
+
{ "$ref": "#/$defs/UseVueValidVCloakConfiguration" },
|
|
1537
|
+
{ "type": "null" }
|
|
1538
|
+
]
|
|
1539
|
+
},
|
|
1540
|
+
"useVueValidVElse": {
|
|
1541
|
+
"description": "Enforce valid usage of v-else.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-else",
|
|
1542
|
+
"anyOf": [
|
|
1543
|
+
{ "$ref": "#/$defs/UseVueValidVElseConfiguration" },
|
|
1544
|
+
{ "type": "null" }
|
|
1545
|
+
]
|
|
1546
|
+
},
|
|
1547
|
+
"useVueValidVElseIf": {
|
|
1548
|
+
"description": "Enforce valid v-else-if directives.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-else-if",
|
|
1549
|
+
"anyOf": [
|
|
1550
|
+
{ "$ref": "#/$defs/UseVueValidVElseIfConfiguration" },
|
|
1551
|
+
{ "type": "null" }
|
|
1552
|
+
]
|
|
1553
|
+
},
|
|
1554
|
+
"useVueValidVHtml": {
|
|
1555
|
+
"description": "Enforce valid v-html directives.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-html",
|
|
1556
|
+
"anyOf": [
|
|
1557
|
+
{ "$ref": "#/$defs/UseVueValidVHtmlConfiguration" },
|
|
1558
|
+
{ "type": "null" }
|
|
1559
|
+
]
|
|
1560
|
+
},
|
|
1561
|
+
"useVueValidVIf": {
|
|
1562
|
+
"description": "Enforces valid v-if usage for Vue templates.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-if",
|
|
1563
|
+
"anyOf": [
|
|
1564
|
+
{ "$ref": "#/$defs/UseVueValidVIfConfiguration" },
|
|
1565
|
+
{ "type": "null" }
|
|
1566
|
+
]
|
|
1567
|
+
},
|
|
1568
|
+
"useVueValidVOn": {
|
|
1569
|
+
"description": "Enforce valid v-on directives with proper arguments, modifiers, and handlers.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-on",
|
|
1570
|
+
"anyOf": [
|
|
1571
|
+
{ "$ref": "#/$defs/UseVueValidVOnConfiguration" },
|
|
1572
|
+
{ "type": "null" }
|
|
1573
|
+
]
|
|
1574
|
+
},
|
|
1575
|
+
"useVueValidVOnce": {
|
|
1576
|
+
"description": "Enforce valid v-once Vue directives.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-once",
|
|
1577
|
+
"anyOf": [
|
|
1578
|
+
{ "$ref": "#/$defs/UseVueValidVOnceConfiguration" },
|
|
1579
|
+
{ "type": "null" }
|
|
1580
|
+
]
|
|
1581
|
+
},
|
|
1582
|
+
"useVueValidVPre": {
|
|
1583
|
+
"description": "Enforce valid v-pre Vue directives.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-pre",
|
|
1584
|
+
"anyOf": [
|
|
1585
|
+
{ "$ref": "#/$defs/UseVueValidVPreConfiguration" },
|
|
1586
|
+
{ "type": "null" }
|
|
1587
|
+
]
|
|
1588
|
+
},
|
|
1589
|
+
"useVueValidVText": {
|
|
1590
|
+
"description": "Enforce valid v-text Vue directives.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-text",
|
|
1591
|
+
"anyOf": [
|
|
1592
|
+
{ "$ref": "#/$defs/UseVueValidVTextConfiguration" },
|
|
1593
|
+
{ "type": "null" }
|
|
1594
|
+
]
|
|
1595
|
+
},
|
|
1370
1596
|
"useYield": {
|
|
1371
1597
|
"description": "Require generator functions to contain yield.\nSee https://biomejs.dev/linter/rules/use-yield",
|
|
1372
1598
|
"anyOf": [
|
|
@@ -1437,6 +1663,10 @@
|
|
|
1437
1663
|
"description": "Options that changes how the CSS formatter behaves",
|
|
1438
1664
|
"type": "object",
|
|
1439
1665
|
"properties": {
|
|
1666
|
+
"delimiterSpacing": {
|
|
1667
|
+
"description": "Whether to insert spaces inside delimiters (after the opening delimiter and before the\nclosing delimiter). Only applies when the content fits on a single line, and empty\ndelimiters are not affected. For CSS, affects parentheses (e.g., `rgb( 0, 0, 0 )`) and\nsquare brackets (e.g., `[ data-attr ]`). Defaults to false.",
|
|
1668
|
+
"anyOf": [{ "$ref": "#/$defs/DelimiterSpacing" }, { "type": "null" }]
|
|
1669
|
+
},
|
|
1440
1670
|
"enabled": {
|
|
1441
1671
|
"description": "Control the formatter for CSS (and its super languages) files.",
|
|
1442
1672
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
@@ -1533,6 +1763,10 @@
|
|
|
1533
1763
|
}
|
|
1534
1764
|
]
|
|
1535
1765
|
},
|
|
1766
|
+
"DelimiterSpacing": {
|
|
1767
|
+
"description": "Whether to insert spaces inside delimiters (after the opening delimiter and before the closing\ndelimiter), such as parentheses, brackets, angle brackets, and template literal interpolations.\nSpaces are not added before the opening delimiter, and empty delimiters are not affected.\nOnly applies when the content fits on a single line; when content breaks across multiple lines,\nno extra spaces are added. The specific delimiters affected depend on the language.",
|
|
1768
|
+
"type": "boolean"
|
|
1769
|
+
},
|
|
1536
1770
|
"DependencyAvailability": {
|
|
1537
1771
|
"oneOf": [
|
|
1538
1772
|
{
|
|
@@ -1547,6 +1781,14 @@
|
|
|
1547
1781
|
}
|
|
1548
1782
|
]
|
|
1549
1783
|
},
|
|
1784
|
+
"DestructuringConfig": {
|
|
1785
|
+
"type": "object",
|
|
1786
|
+
"properties": {
|
|
1787
|
+
"array": { "type": ["boolean", "null"] },
|
|
1788
|
+
"object": { "type": ["boolean", "null"] }
|
|
1789
|
+
},
|
|
1790
|
+
"additionalProperties": false
|
|
1791
|
+
},
|
|
1550
1792
|
"Expand": {
|
|
1551
1793
|
"oneOf": [
|
|
1552
1794
|
{
|
|
@@ -1670,6 +1912,10 @@
|
|
|
1670
1912
|
"description": "Whether to insert spaces around brackets in object literals. Defaults to true.",
|
|
1671
1913
|
"anyOf": [{ "$ref": "#/$defs/BracketSpacing" }, { "type": "null" }]
|
|
1672
1914
|
},
|
|
1915
|
+
"delimiterSpacing": {
|
|
1916
|
+
"description": "Whether to insert spaces inside delimiters (after the opening delimiter and before the\nclosing delimiter), such as parentheses, brackets, angle brackets, and template literal\ninterpolations. Spaces are not added before the opening delimiter, and empty delimiters\nare not affected. Only applies when the content fits on a single line. The specific\ndelimiters affected depend on the language. Defaults to false.",
|
|
1917
|
+
"anyOf": [{ "$ref": "#/$defs/DelimiterSpacing" }, { "type": "null" }]
|
|
1918
|
+
},
|
|
1673
1919
|
"enabled": {
|
|
1674
1920
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
1675
1921
|
},
|
|
@@ -2083,6 +2329,10 @@
|
|
|
2083
2329
|
"interpolation": {
|
|
2084
2330
|
"description": "Enables the parsing of double text expressions such as `{{ expression }}` inside `.html` files",
|
|
2085
2331
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2332
|
+
},
|
|
2333
|
+
"vue": {
|
|
2334
|
+
"description": "Enables parsing of Vue syntax (v-if, v-bind, etc.) in `.html` files. If this option is enabled, it also enables `interpolation` implicitly.\n\nBiome will already automatically enable Vue parsing in `.vue` files, so you probably don't need\nto enable this option. This only affects `.html` files, and does not change how `.vue`, `.svelte`,\nor `.astro` files are parsed.",
|
|
2335
|
+
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2086
2336
|
}
|
|
2087
2337
|
},
|
|
2088
2338
|
"additionalProperties": false
|
|
@@ -2121,6 +2371,12 @@
|
|
|
2121
2371
|
"ImportMatcher": {
|
|
2122
2372
|
"type": "object",
|
|
2123
2373
|
"properties": {
|
|
2374
|
+
"kind": {
|
|
2375
|
+
"anyOf": [
|
|
2376
|
+
{ "$ref": "#/$defs/NegatableImportKindMatcher" },
|
|
2377
|
+
{ "type": "null" }
|
|
2378
|
+
]
|
|
2379
|
+
},
|
|
2124
2380
|
"source": {
|
|
2125
2381
|
"anyOf": [{ "$ref": "#/$defs/SourcesMatcher" }, { "type": "null" }]
|
|
2126
2382
|
},
|
|
@@ -2207,6 +2463,13 @@
|
|
|
2207
2463
|
{ "$ref": "#/$defs/JsParserConfiguration" },
|
|
2208
2464
|
{ "type": "null" }
|
|
2209
2465
|
]
|
|
2466
|
+
},
|
|
2467
|
+
"resolver": {
|
|
2468
|
+
"description": "Module/dependency resolver options",
|
|
2469
|
+
"anyOf": [
|
|
2470
|
+
{ "$ref": "#/$defs/JsResolverConfiguration" },
|
|
2471
|
+
{ "type": "null" }
|
|
2472
|
+
]
|
|
2210
2473
|
}
|
|
2211
2474
|
},
|
|
2212
2475
|
"additionalProperties": false
|
|
@@ -2231,6 +2494,10 @@
|
|
|
2231
2494
|
"description": "Whether to insert spaces around brackets in object literals. Defaults to true.",
|
|
2232
2495
|
"anyOf": [{ "$ref": "#/$defs/BracketSpacing" }, { "type": "null" }]
|
|
2233
2496
|
},
|
|
2497
|
+
"delimiterSpacing": {
|
|
2498
|
+
"description": "Whether to insert spaces inside delimiters (after the opening delimiter and before the\nclosing delimiter). Only applies when the content fits on a single line. Spaces are not\nadded before the opening delimiter (e.g., `function f()` stays `function f()`, not\n`function f ()`), and empty delimiters are not affected (e.g., `fn()` stays `fn()`).\nFor JavaScript and TypeScript, affects parentheses (e.g., `foo( a, b )`), square brackets\n(e.g., `[ a, b ]`), template literal interpolations (e.g., `${ expr }`), TypeScript angle\nbrackets (e.g., `foo< T >()`), JSX expression braces (e.g., `{ value }`), and the logical\nNOT operator (e.g., `! x`, but in chains only after the last one: `!! x`). Defaults to\nfalse.",
|
|
2499
|
+
"anyOf": [{ "$ref": "#/$defs/DelimiterSpacing" }, { "type": "null" }]
|
|
2500
|
+
},
|
|
2234
2501
|
"enabled": {
|
|
2235
2502
|
"description": "Control the formatter for JavaScript (and its super languages) files.",
|
|
2236
2503
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
@@ -2316,6 +2583,17 @@
|
|
|
2316
2583
|
},
|
|
2317
2584
|
"additionalProperties": false
|
|
2318
2585
|
},
|
|
2586
|
+
"JsResolverConfiguration": {
|
|
2587
|
+
"description": "Resolver options specific to JavaScript files",
|
|
2588
|
+
"type": "object",
|
|
2589
|
+
"properties": {
|
|
2590
|
+
"experimentalPnpmCatalogs": {
|
|
2591
|
+
"description": "Enables pnpm workspace catalog resolution for JavaScript package manifests.\n\nOpt-in:\n- Set `javascript.resolver.experimentalPnpmCatalogs` to `true`.\n\nScope:\n- Resolves `catalog:` and `catalog:<name>` dependency versions from\n `package.json`.\n- Applies to `dependencies`, `devDependencies`, and `peerDependencies`.\n\nFail-safe behavior:\n- If `pnpm-workspace.yaml` is missing, unreadable, or cannot be parsed,\n Biome silently falls back to the default behavior (as if this option\n were disabled).\n- Unknown keys and unsupported value shapes in `pnpm-workspace.yaml` are\n ignored.\n\nLimitations:\n- Only `pnpm-workspace.yaml` is read.\n- Biome only reads top-level `catalog` / `catalogs` mappings and scalar\n string entries.\n\nDefault: `false`.",
|
|
2592
|
+
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2593
|
+
}
|
|
2594
|
+
},
|
|
2595
|
+
"additionalProperties": false
|
|
2596
|
+
},
|
|
2319
2597
|
"JsTrailingCommas": {
|
|
2320
2598
|
"description": "Print trailing commas wherever possible in multi-line comma-separated syntactic structures for JavaScript/TypeScript files.",
|
|
2321
2599
|
"type": "string",
|
|
@@ -2374,6 +2652,10 @@
|
|
|
2374
2652
|
"description": "Whether to insert spaces around brackets in object literals. Defaults to true.",
|
|
2375
2653
|
"anyOf": [{ "$ref": "#/$defs/BracketSpacing" }, { "type": "null" }]
|
|
2376
2654
|
},
|
|
2655
|
+
"delimiterSpacing": {
|
|
2656
|
+
"description": "Whether to insert spaces inside delimiters (after the opening delimiter and before the\nclosing delimiter). Only applies when the content fits on a single line, and empty\nbrackets are not affected. For JSON, affects square brackets (e.g., `[ 1, 2, 3 ]`).\nDefaults to false.",
|
|
2657
|
+
"anyOf": [{ "$ref": "#/$defs/DelimiterSpacing" }, { "type": "null" }]
|
|
2658
|
+
},
|
|
2377
2659
|
"enabled": {
|
|
2378
2660
|
"description": "Control the formatter for JSON (and its super languages) files.",
|
|
2379
2661
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
@@ -2635,6 +2917,10 @@
|
|
|
2635
2917
|
"items": { "$ref": "#/$defs/RestrictedModifier" },
|
|
2636
2918
|
"uniqueItems": true
|
|
2637
2919
|
},
|
|
2920
|
+
"NegatableImportKindMatcher": {
|
|
2921
|
+
"type": "string",
|
|
2922
|
+
"enum": ["bare", "!bare"]
|
|
2923
|
+
},
|
|
2638
2924
|
"NegatablePredefinedSourceMatcher": {
|
|
2639
2925
|
"type": "string",
|
|
2640
2926
|
"enum": [
|
|
@@ -2644,6 +2930,7 @@
|
|
|
2644
2930
|
":PACKAGE:",
|
|
2645
2931
|
":PACKAGE_WITH_PROTOCOL:",
|
|
2646
2932
|
":PATH:",
|
|
2933
|
+
":STYLE:",
|
|
2647
2934
|
":URL:",
|
|
2648
2935
|
"!:ALIAS:",
|
|
2649
2936
|
"!:BUN:",
|
|
@@ -2651,6 +2938,7 @@
|
|
|
2651
2938
|
"!:PACKAGE:",
|
|
2652
2939
|
"!:PACKAGE_WITH_PROTOCOL:",
|
|
2653
2940
|
"!:PATH:",
|
|
2941
|
+
"!:STYLE:",
|
|
2654
2942
|
"!:URL:"
|
|
2655
2943
|
]
|
|
2656
2944
|
},
|
|
@@ -3838,16 +4126,6 @@
|
|
|
3838
4126
|
"type": "object",
|
|
3839
4127
|
"additionalProperties": false
|
|
3840
4128
|
},
|
|
3841
|
-
"NoFloatingClassesConfiguration": {
|
|
3842
|
-
"oneOf": [
|
|
3843
|
-
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
3844
|
-
{ "$ref": "#/$defs/RuleWithNoFloatingClassesOptions" }
|
|
3845
|
-
]
|
|
3846
|
-
},
|
|
3847
|
-
"NoFloatingClassesOptions": {
|
|
3848
|
-
"type": "object",
|
|
3849
|
-
"additionalProperties": false
|
|
3850
|
-
},
|
|
3851
4129
|
"NoFloatingPromisesConfiguration": {
|
|
3852
4130
|
"oneOf": [
|
|
3853
4131
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -4032,6 +4310,12 @@
|
|
|
4032
4310
|
},
|
|
4033
4311
|
"NoImplicitCoercionsOptions": {
|
|
4034
4312
|
"type": "object",
|
|
4313
|
+
"properties": {
|
|
4314
|
+
"allowDoubleNegation": {
|
|
4315
|
+
"description": "Whether to allow implicitly coercing values to booleans via `!!value`.",
|
|
4316
|
+
"type": ["boolean", "null"]
|
|
4317
|
+
}
|
|
4318
|
+
},
|
|
4035
4319
|
"additionalProperties": false
|
|
4036
4320
|
},
|
|
4037
4321
|
"NoImpliedEvalConfiguration": {
|
|
@@ -4405,13 +4689,16 @@
|
|
|
4405
4689
|
]
|
|
4406
4690
|
},
|
|
4407
4691
|
"NoMultiAssignOptions": { "type": "object", "additionalProperties": false },
|
|
4408
|
-
"
|
|
4692
|
+
"NoMultilineStringConfiguration": {
|
|
4409
4693
|
"oneOf": [
|
|
4410
4694
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
4411
|
-
{ "$ref": "#/$defs/
|
|
4695
|
+
{ "$ref": "#/$defs/RuleWithNoMultilineStringOptions" }
|
|
4412
4696
|
]
|
|
4413
4697
|
},
|
|
4414
|
-
"
|
|
4698
|
+
"NoMultilineStringOptions": {
|
|
4699
|
+
"type": "object",
|
|
4700
|
+
"additionalProperties": false
|
|
4701
|
+
},
|
|
4415
4702
|
"NoNamespaceConfiguration": {
|
|
4416
4703
|
"oneOf": [
|
|
4417
4704
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -4936,6 +5223,16 @@
|
|
|
4936
5223
|
"type": "object",
|
|
4937
5224
|
"additionalProperties": false
|
|
4938
5225
|
},
|
|
5226
|
+
"NoRestrictedDependenciesConfiguration": {
|
|
5227
|
+
"oneOf": [
|
|
5228
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
5229
|
+
{ "$ref": "#/$defs/RuleWithNoRestrictedDependenciesOptions" }
|
|
5230
|
+
]
|
|
5231
|
+
},
|
|
5232
|
+
"NoRestrictedDependenciesOptions": {
|
|
5233
|
+
"type": "object",
|
|
5234
|
+
"additionalProperties": false
|
|
5235
|
+
},
|
|
4939
5236
|
"NoRestrictedElementsConfiguration": {
|
|
4940
5237
|
"oneOf": [
|
|
4941
5238
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -5302,15 +5599,33 @@
|
|
|
5302
5599
|
"type": "object",
|
|
5303
5600
|
"additionalProperties": false
|
|
5304
5601
|
},
|
|
5305
|
-
"
|
|
5602
|
+
"NoUndeclaredClassesConfiguration": {
|
|
5306
5603
|
"oneOf": [
|
|
5307
5604
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
5308
|
-
{ "$ref": "#/$defs/
|
|
5605
|
+
{ "$ref": "#/$defs/RuleWithNoUndeclaredClassesOptions" }
|
|
5309
5606
|
]
|
|
5310
5607
|
},
|
|
5311
|
-
"
|
|
5608
|
+
"NoUndeclaredClassesOptions": {
|
|
5609
|
+
"description": "Options for the `noUndeclaredClasses` rule.",
|
|
5312
5610
|
"type": "object",
|
|
5313
|
-
"
|
|
5611
|
+
"additionalProperties": false
|
|
5612
|
+
},
|
|
5613
|
+
"NoUndeclaredDependenciesConfiguration": {
|
|
5614
|
+
"oneOf": [
|
|
5615
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
5616
|
+
{ "$ref": "#/$defs/RuleWithNoUndeclaredDependenciesOptions" }
|
|
5617
|
+
]
|
|
5618
|
+
},
|
|
5619
|
+
"NoUndeclaredDependenciesOptions": {
|
|
5620
|
+
"type": "object",
|
|
5621
|
+
"properties": {
|
|
5622
|
+
"bundleDependencies": {
|
|
5623
|
+
"description": "If set to `false`, then the rule will show an error when `bundleDependencies` are imported. Defaults to `true`.",
|
|
5624
|
+
"anyOf": [
|
|
5625
|
+
{ "$ref": "#/$defs/DependencyAvailability" },
|
|
5626
|
+
{ "type": "null" }
|
|
5627
|
+
]
|
|
5628
|
+
},
|
|
5314
5629
|
"devDependencies": {
|
|
5315
5630
|
"description": "If set to `false`, then the rule will show an error when `devDependencies` are imported. Defaults to `true`.",
|
|
5316
5631
|
"anyOf": [
|
|
@@ -5634,6 +5949,16 @@
|
|
|
5634
5949
|
},
|
|
5635
5950
|
"additionalProperties": false
|
|
5636
5951
|
},
|
|
5952
|
+
"NoUnusedClassesConfiguration": {
|
|
5953
|
+
"oneOf": [
|
|
5954
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
5955
|
+
{ "$ref": "#/$defs/RuleWithNoUnusedClassesOptions" }
|
|
5956
|
+
]
|
|
5957
|
+
},
|
|
5958
|
+
"NoUnusedClassesOptions": {
|
|
5959
|
+
"type": "object",
|
|
5960
|
+
"additionalProperties": false
|
|
5961
|
+
},
|
|
5637
5962
|
"NoUnusedExpressionsConfiguration": {
|
|
5638
5963
|
"oneOf": [
|
|
5639
5964
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -5670,6 +5995,16 @@
|
|
|
5670
5995
|
"type": "object",
|
|
5671
5996
|
"additionalProperties": false
|
|
5672
5997
|
},
|
|
5998
|
+
"NoUnusedInstantiationConfiguration": {
|
|
5999
|
+
"oneOf": [
|
|
6000
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
6001
|
+
{ "$ref": "#/$defs/RuleWithNoUnusedInstantiationOptions" }
|
|
6002
|
+
]
|
|
6003
|
+
},
|
|
6004
|
+
"NoUnusedInstantiationOptions": {
|
|
6005
|
+
"type": "object",
|
|
6006
|
+
"additionalProperties": false
|
|
6007
|
+
},
|
|
5673
6008
|
"NoUnusedLabelsConfiguration": {
|
|
5674
6009
|
"oneOf": [
|
|
5675
6010
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -5709,6 +6044,13 @@
|
|
|
5709
6044
|
"NoUnusedVariablesOptions": {
|
|
5710
6045
|
"type": "object",
|
|
5711
6046
|
"properties": {
|
|
6047
|
+
"ignore": {
|
|
6048
|
+
"description": "An object defining ignored identifiers for different language constructs.",
|
|
6049
|
+
"anyOf": [
|
|
6050
|
+
{ "$ref": "#/$defs/NoUnusedVariablesOptionsIgnore" },
|
|
6051
|
+
{ "type": "null" }
|
|
6052
|
+
]
|
|
6053
|
+
},
|
|
5712
6054
|
"ignoreRestSiblings": {
|
|
5713
6055
|
"description": "Whether to ignore unused variables from an object destructuring with a spread.",
|
|
5714
6056
|
"type": ["boolean", "null"]
|
|
@@ -5716,6 +6058,47 @@
|
|
|
5716
6058
|
},
|
|
5717
6059
|
"additionalProperties": false
|
|
5718
6060
|
},
|
|
6061
|
+
"NoUnusedVariablesOptionsIgnore": {
|
|
6062
|
+
"type": "object",
|
|
6063
|
+
"properties": {
|
|
6064
|
+
"*": {
|
|
6065
|
+
"description": "An array of identifiers to ignore. Use \"*\" to ignore all identifiers.",
|
|
6066
|
+
"type": ["array", "null"],
|
|
6067
|
+
"items": { "type": "string" }
|
|
6068
|
+
},
|
|
6069
|
+
"class": {
|
|
6070
|
+
"description": "An array of class names to ignore. Use \"*\" to ignore all identifiers.",
|
|
6071
|
+
"type": ["array", "null"],
|
|
6072
|
+
"items": { "type": "string" }
|
|
6073
|
+
},
|
|
6074
|
+
"function": {
|
|
6075
|
+
"description": "An array of function names to ignore. Use \"*\" to ignore all identifiers.",
|
|
6076
|
+
"type": ["array", "null"],
|
|
6077
|
+
"items": { "type": "string" }
|
|
6078
|
+
},
|
|
6079
|
+
"interface": {
|
|
6080
|
+
"description": "An array of interface names to ignore. Use \"*\" to ignore all identifiers.",
|
|
6081
|
+
"type": ["array", "null"],
|
|
6082
|
+
"items": { "type": "string" }
|
|
6083
|
+
},
|
|
6084
|
+
"typeAlias": {
|
|
6085
|
+
"description": "An array of type aliases to ignore. Use \"*\" to ignore all identifiers.",
|
|
6086
|
+
"type": ["array", "null"],
|
|
6087
|
+
"items": { "type": "string" }
|
|
6088
|
+
},
|
|
6089
|
+
"typeParameter": {
|
|
6090
|
+
"description": "An array of type parameters to ignore. Use \"*\" to ignore all identifiers.",
|
|
6091
|
+
"type": ["array", "null"],
|
|
6092
|
+
"items": { "type": "string" }
|
|
6093
|
+
},
|
|
6094
|
+
"variable": {
|
|
6095
|
+
"description": "An array of variable names to ignore. Use \"*\" to ignore all identifiers.",
|
|
6096
|
+
"type": ["array", "null"],
|
|
6097
|
+
"items": { "type": "string" }
|
|
6098
|
+
}
|
|
6099
|
+
},
|
|
6100
|
+
"additionalProperties": false
|
|
6101
|
+
},
|
|
5719
6102
|
"NoUnwantedPolyfillioConfiguration": {
|
|
5720
6103
|
"oneOf": [
|
|
5721
6104
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -6126,17 +6509,30 @@
|
|
|
6126
6509
|
"description": "Normalized Biome glob pattern that strips `./` from the pattern.",
|
|
6127
6510
|
"type": "string"
|
|
6128
6511
|
},
|
|
6512
|
+
"NumericLiteralSeparatorOptions": {
|
|
6513
|
+
"type": "object",
|
|
6514
|
+
"properties": {
|
|
6515
|
+
"groupLength": {
|
|
6516
|
+
"description": "Number of digits between separators.",
|
|
6517
|
+
"type": ["integer", "null"],
|
|
6518
|
+
"format": "uint8",
|
|
6519
|
+
"maximum": 255,
|
|
6520
|
+
"minimum": 1
|
|
6521
|
+
},
|
|
6522
|
+
"minimumDigits": {
|
|
6523
|
+
"description": "Minimum number of digits required before adding separators.",
|
|
6524
|
+
"type": ["integer", "null"],
|
|
6525
|
+
"format": "uint8",
|
|
6526
|
+
"maximum": 255,
|
|
6527
|
+
"minimum": 0
|
|
6528
|
+
}
|
|
6529
|
+
},
|
|
6530
|
+
"additionalProperties": false
|
|
6531
|
+
},
|
|
6129
6532
|
"Nursery": {
|
|
6130
6533
|
"description": "A list of rules that belong to this group",
|
|
6131
6534
|
"type": "object",
|
|
6132
6535
|
"properties": {
|
|
6133
|
-
"noAmbiguousAnchorText": {
|
|
6134
|
-
"description": "Disallow ambiguous anchor descriptions.\nSee https://biomejs.dev/linter/rules/no-ambiguous-anchor-text",
|
|
6135
|
-
"anyOf": [
|
|
6136
|
-
{ "$ref": "#/$defs/NoAmbiguousAnchorTextConfiguration" },
|
|
6137
|
-
{ "type": "null" }
|
|
6138
|
-
]
|
|
6139
|
-
},
|
|
6140
6536
|
"noBaseToString": {
|
|
6141
6537
|
"description": "Require stringification to avoid values that only use the default object representation.\nSee https://biomejs.dev/linter/rules/no-base-to-string",
|
|
6142
6538
|
"anyOf": [
|
|
@@ -6144,15 +6540,6 @@
|
|
|
6144
6540
|
{ "type": "null" }
|
|
6145
6541
|
]
|
|
6146
6542
|
},
|
|
6147
|
-
"noBeforeInteractiveScriptOutsideDocument": {
|
|
6148
|
-
"description": "Prevent usage of next/script's beforeInteractive strategy outside of pages/_document.js in a Next.js project.\nSee https://biomejs.dev/linter/rules/no-before-interactive-script-outside-document",
|
|
6149
|
-
"anyOf": [
|
|
6150
|
-
{
|
|
6151
|
-
"$ref": "#/$defs/NoBeforeInteractiveScriptOutsideDocumentConfiguration"
|
|
6152
|
-
},
|
|
6153
|
-
{ "type": "null" }
|
|
6154
|
-
]
|
|
6155
|
-
},
|
|
6156
6543
|
"noComponentHookFactories": {
|
|
6157
6544
|
"description": "Disallows defining React components or custom hooks inside other functions.\nSee https://biomejs.dev/linter/rules/no-component-hook-factories",
|
|
6158
6545
|
"anyOf": [
|
|
@@ -6167,27 +6554,6 @@
|
|
|
6167
6554
|
{ "type": "null" }
|
|
6168
6555
|
]
|
|
6169
6556
|
},
|
|
6170
|
-
"noContinue": {
|
|
6171
|
-
"description": "Disallow continue statements.\nSee https://biomejs.dev/linter/rules/no-continue",
|
|
6172
|
-
"anyOf": [
|
|
6173
|
-
{ "$ref": "#/$defs/NoContinueConfiguration" },
|
|
6174
|
-
{ "type": "null" }
|
|
6175
|
-
]
|
|
6176
|
-
},
|
|
6177
|
-
"noDeprecatedMediaType": {
|
|
6178
|
-
"description": "Disallow deprecated media types.\nSee https://biomejs.dev/linter/rules/no-deprecated-media-type",
|
|
6179
|
-
"anyOf": [
|
|
6180
|
-
{ "$ref": "#/$defs/NoDeprecatedMediaTypeConfiguration" },
|
|
6181
|
-
{ "type": "null" }
|
|
6182
|
-
]
|
|
6183
|
-
},
|
|
6184
|
-
"noDivRegex": {
|
|
6185
|
-
"description": "Disallow equal signs explicitly at the beginning of regular expressions.\nSee https://biomejs.dev/linter/rules/no-div-regex",
|
|
6186
|
-
"anyOf": [
|
|
6187
|
-
{ "$ref": "#/$defs/NoDivRegexConfiguration" },
|
|
6188
|
-
{ "type": "null" }
|
|
6189
|
-
]
|
|
6190
|
-
},
|
|
6191
6557
|
"noDrizzleDeleteWithoutWhere": {
|
|
6192
6558
|
"description": "Require .where() to be called when using .delete() with Drizzle ORM.\nSee https://biomejs.dev/linter/rules/no-drizzle-delete-without-where",
|
|
6193
6559
|
"anyOf": [
|
|
@@ -6202,34 +6568,6 @@
|
|
|
6202
6568
|
{ "type": "null" }
|
|
6203
6569
|
]
|
|
6204
6570
|
},
|
|
6205
|
-
"noDuplicateArgumentNames": {
|
|
6206
|
-
"description": "Require all argument names for fields & directives to be unique.\nSee https://biomejs.dev/linter/rules/no-duplicate-argument-names",
|
|
6207
|
-
"anyOf": [
|
|
6208
|
-
{ "$ref": "#/$defs/NoDuplicateArgumentNamesConfiguration" },
|
|
6209
|
-
{ "type": "null" }
|
|
6210
|
-
]
|
|
6211
|
-
},
|
|
6212
|
-
"noDuplicateAttributes": {
|
|
6213
|
-
"description": "Disallow duplication of attributes.\nSee https://biomejs.dev/linter/rules/no-duplicate-attributes",
|
|
6214
|
-
"anyOf": [
|
|
6215
|
-
{ "$ref": "#/$defs/NoDuplicateAttributesConfiguration" },
|
|
6216
|
-
{ "type": "null" }
|
|
6217
|
-
]
|
|
6218
|
-
},
|
|
6219
|
-
"noDuplicateEnumValueNames": {
|
|
6220
|
-
"description": "Require all enum value names to be unique.\nSee https://biomejs.dev/linter/rules/no-duplicate-enum-value-names",
|
|
6221
|
-
"anyOf": [
|
|
6222
|
-
{ "$ref": "#/$defs/NoDuplicateEnumValueNamesConfiguration" },
|
|
6223
|
-
{ "type": "null" }
|
|
6224
|
-
]
|
|
6225
|
-
},
|
|
6226
|
-
"noDuplicateEnumValues": {
|
|
6227
|
-
"description": "Disallow duplicate enum member values.\nSee https://biomejs.dev/linter/rules/no-duplicate-enum-values",
|
|
6228
|
-
"anyOf": [
|
|
6229
|
-
{ "$ref": "#/$defs/NoDuplicateEnumValuesConfiguration" },
|
|
6230
|
-
{ "type": "null" }
|
|
6231
|
-
]
|
|
6232
|
-
},
|
|
6233
6571
|
"noDuplicateFieldDefinitionNames": {
|
|
6234
6572
|
"description": "Require all fields of a type to be unique.\nSee https://biomejs.dev/linter/rules/no-duplicate-field-definition-names",
|
|
6235
6573
|
"anyOf": [
|
|
@@ -6237,20 +6575,6 @@
|
|
|
6237
6575
|
{ "type": "null" }
|
|
6238
6576
|
]
|
|
6239
6577
|
},
|
|
6240
|
-
"noDuplicateGraphqlOperationName": {
|
|
6241
|
-
"description": "Enforce unique operation names across a GraphQL document.\nSee https://biomejs.dev/linter/rules/no-duplicate-graphql-operation-name",
|
|
6242
|
-
"anyOf": [
|
|
6243
|
-
{ "$ref": "#/$defs/NoDuplicateGraphqlOperationNameConfiguration" },
|
|
6244
|
-
{ "type": "null" }
|
|
6245
|
-
]
|
|
6246
|
-
},
|
|
6247
|
-
"noDuplicateInputFieldNames": {
|
|
6248
|
-
"description": "Require fields within an input object to be unique.\nSee https://biomejs.dev/linter/rules/no-duplicate-input-field-names",
|
|
6249
|
-
"anyOf": [
|
|
6250
|
-
{ "$ref": "#/$defs/NoDuplicateInputFieldNamesConfiguration" },
|
|
6251
|
-
{ "type": "null" }
|
|
6252
|
-
]
|
|
6253
|
-
},
|
|
6254
6578
|
"noDuplicateSelectors": {
|
|
6255
6579
|
"description": "Disallow duplicate selectors.\nSee https://biomejs.dev/linter/rules/no-duplicate-selectors",
|
|
6256
6580
|
"anyOf": [
|
|
@@ -6258,20 +6582,6 @@
|
|
|
6258
6582
|
{ "type": "null" }
|
|
6259
6583
|
]
|
|
6260
6584
|
},
|
|
6261
|
-
"noDuplicateVariableNames": {
|
|
6262
|
-
"description": "Require all variable definitions to be unique.\nSee https://biomejs.dev/linter/rules/no-duplicate-variable-names",
|
|
6263
|
-
"anyOf": [
|
|
6264
|
-
{ "$ref": "#/$defs/NoDuplicateVariableNamesConfiguration" },
|
|
6265
|
-
{ "type": "null" }
|
|
6266
|
-
]
|
|
6267
|
-
},
|
|
6268
|
-
"noDuplicatedSpreadProps": {
|
|
6269
|
-
"description": "Disallow JSX prop spreading the same identifier multiple times.\nSee https://biomejs.dev/linter/rules/no-duplicated-spread-props",
|
|
6270
|
-
"anyOf": [
|
|
6271
|
-
{ "$ref": "#/$defs/NoDuplicatedSpreadPropsConfiguration" },
|
|
6272
|
-
{ "type": "null" }
|
|
6273
|
-
]
|
|
6274
|
-
},
|
|
6275
6585
|
"noEmptyObjectKeys": {
|
|
6276
6586
|
"description": "Disallow empty keys in JSON objects.\nSee https://biomejs.dev/linter/rules/no-empty-object-keys",
|
|
6277
6587
|
"anyOf": [
|
|
@@ -6279,27 +6589,6 @@
|
|
|
6279
6589
|
{ "type": "null" }
|
|
6280
6590
|
]
|
|
6281
6591
|
},
|
|
6282
|
-
"noEqualsToNull": {
|
|
6283
|
-
"description": "Require the use of === or !== for comparison with null.\nSee https://biomejs.dev/linter/rules/no-equals-to-null",
|
|
6284
|
-
"anyOf": [
|
|
6285
|
-
{ "$ref": "#/$defs/NoEqualsToNullConfiguration" },
|
|
6286
|
-
{ "type": "null" }
|
|
6287
|
-
]
|
|
6288
|
-
},
|
|
6289
|
-
"noExcessiveClassesPerFile": {
|
|
6290
|
-
"description": "Enforce a maximum number of classes per file.\nSee https://biomejs.dev/linter/rules/no-excessive-classes-per-file",
|
|
6291
|
-
"anyOf": [
|
|
6292
|
-
{ "$ref": "#/$defs/NoExcessiveClassesPerFileConfiguration" },
|
|
6293
|
-
{ "type": "null" }
|
|
6294
|
-
]
|
|
6295
|
-
},
|
|
6296
|
-
"noExcessiveLinesPerFile": {
|
|
6297
|
-
"description": "Restrict the number of lines in a file.\nSee https://biomejs.dev/linter/rules/no-excessive-lines-per-file",
|
|
6298
|
-
"anyOf": [
|
|
6299
|
-
{ "$ref": "#/$defs/NoExcessiveLinesPerFileConfiguration" },
|
|
6300
|
-
{ "type": "null" }
|
|
6301
|
-
]
|
|
6302
|
-
},
|
|
6303
6592
|
"noExcessiveNestedCallbacks": {
|
|
6304
6593
|
"description": "Enforce a maximum depth that callbacks can be nested.\nSee https://biomejs.dev/linter/rules/no-excessive-nested-callbacks",
|
|
6305
6594
|
"anyOf": [
|
|
@@ -6314,13 +6603,6 @@
|
|
|
6314
6603
|
{ "type": "null" }
|
|
6315
6604
|
]
|
|
6316
6605
|
},
|
|
6317
|
-
"noFloatingClasses": {
|
|
6318
|
-
"description": "Disallow new operators outside of assignments or comparisons.\nSee https://biomejs.dev/linter/rules/no-floating-classes",
|
|
6319
|
-
"anyOf": [
|
|
6320
|
-
{ "$ref": "#/$defs/NoFloatingClassesConfiguration" },
|
|
6321
|
-
{ "type": "null" }
|
|
6322
|
-
]
|
|
6323
|
-
},
|
|
6324
6606
|
"noFloatingPromises": {
|
|
6325
6607
|
"description": "Require Promise-like statements to be handled appropriately.\nSee https://biomejs.dev/linter/rules/no-floating-promises",
|
|
6326
6608
|
"anyOf": [
|
|
@@ -6328,20 +6610,6 @@
|
|
|
6328
6610
|
{ "type": "null" }
|
|
6329
6611
|
]
|
|
6330
6612
|
},
|
|
6331
|
-
"noForIn": {
|
|
6332
|
-
"description": "Disallow iterating using a for-in loop.\nSee https://biomejs.dev/linter/rules/no-for-in",
|
|
6333
|
-
"anyOf": [
|
|
6334
|
-
{ "$ref": "#/$defs/NoForInConfiguration" },
|
|
6335
|
-
{ "type": "null" }
|
|
6336
|
-
]
|
|
6337
|
-
},
|
|
6338
|
-
"noHexColors": {
|
|
6339
|
-
"description": "Disallow hex colors.\nSee https://biomejs.dev/linter/rules/no-hex-colors",
|
|
6340
|
-
"anyOf": [
|
|
6341
|
-
{ "$ref": "#/$defs/NoHexColorsConfiguration" },
|
|
6342
|
-
{ "type": "null" }
|
|
6343
|
-
]
|
|
6344
|
-
},
|
|
6345
6613
|
"noIdenticalTestTitle": {
|
|
6346
6614
|
"description": "Disallow identical titles in test suites and test cases.\nSee https://biomejs.dev/linter/rules/no-identical-test-title",
|
|
6347
6615
|
"anyOf": [
|
|
@@ -6356,13 +6624,6 @@
|
|
|
6356
6624
|
{ "type": "null" }
|
|
6357
6625
|
]
|
|
6358
6626
|
},
|
|
6359
|
-
"noIncrementDecrement": {
|
|
6360
|
-
"description": "Disallows the usage of the unary operators ++ and --.\nSee https://biomejs.dev/linter/rules/no-increment-decrement",
|
|
6361
|
-
"anyOf": [
|
|
6362
|
-
{ "$ref": "#/$defs/NoIncrementDecrementConfiguration" },
|
|
6363
|
-
{ "type": "null" }
|
|
6364
|
-
]
|
|
6365
|
-
},
|
|
6366
6627
|
"noInlineStyles": {
|
|
6367
6628
|
"description": "Disallow the use of inline styles.\nSee https://biomejs.dev/linter/rules/no-inline-styles",
|
|
6368
6629
|
"anyOf": [
|
|
@@ -6384,20 +6645,6 @@
|
|
|
6384
6645
|
{ "type": "null" }
|
|
6385
6646
|
]
|
|
6386
6647
|
},
|
|
6387
|
-
"noJsxPropsBind": {
|
|
6388
|
-
"description": "Disallow .bind(), arrow functions, or function expressions in JSX props.\nSee https://biomejs.dev/linter/rules/no-jsx-props-bind",
|
|
6389
|
-
"anyOf": [
|
|
6390
|
-
{ "$ref": "#/$defs/NoJsxPropsBindConfiguration" },
|
|
6391
|
-
{ "type": "null" }
|
|
6392
|
-
]
|
|
6393
|
-
},
|
|
6394
|
-
"noLeakedRender": {
|
|
6395
|
-
"description": "Prevent problematic leaked values from being rendered.\nSee https://biomejs.dev/linter/rules/no-leaked-render",
|
|
6396
|
-
"anyOf": [
|
|
6397
|
-
{ "$ref": "#/$defs/NoLeakedRenderConfiguration" },
|
|
6398
|
-
{ "type": "null" }
|
|
6399
|
-
]
|
|
6400
|
-
},
|
|
6401
6648
|
"noLoopFunc": {
|
|
6402
6649
|
"description": "Disallow functions declared inside loops that capture unsafe outer variables.\nSee https://biomejs.dev/linter/rules/no-loop-func",
|
|
6403
6650
|
"anyOf": [
|
|
@@ -6419,34 +6666,6 @@
|
|
|
6419
6666
|
{ "type": "null" }
|
|
6420
6667
|
]
|
|
6421
6668
|
},
|
|
6422
|
-
"noMultiAssign": {
|
|
6423
|
-
"description": "Disallow use of chained assignment expressions.\nSee https://biomejs.dev/linter/rules/no-multi-assign",
|
|
6424
|
-
"anyOf": [
|
|
6425
|
-
{ "$ref": "#/$defs/NoMultiAssignConfiguration" },
|
|
6426
|
-
{ "type": "null" }
|
|
6427
|
-
]
|
|
6428
|
-
},
|
|
6429
|
-
"noMultiStr": {
|
|
6430
|
-
"description": "Disallow creating multiline strings by escaping newlines.\nSee https://biomejs.dev/linter/rules/no-multi-str",
|
|
6431
|
-
"anyOf": [
|
|
6432
|
-
{ "$ref": "#/$defs/NoMultiStrConfiguration" },
|
|
6433
|
-
{ "type": "null" }
|
|
6434
|
-
]
|
|
6435
|
-
},
|
|
6436
|
-
"noNestedPromises": {
|
|
6437
|
-
"description": "Disallow nested .then() or .catch() promise calls.\nSee https://biomejs.dev/linter/rules/no-nested-promises",
|
|
6438
|
-
"anyOf": [
|
|
6439
|
-
{ "$ref": "#/$defs/NoNestedPromisesConfiguration" },
|
|
6440
|
-
{ "type": "null" }
|
|
6441
|
-
]
|
|
6442
|
-
},
|
|
6443
|
-
"noParametersOnlyUsedInRecursion": {
|
|
6444
|
-
"description": "Disallow function parameters that are only used in recursive calls.\nSee https://biomejs.dev/linter/rules/no-parameters-only-used-in-recursion",
|
|
6445
|
-
"anyOf": [
|
|
6446
|
-
{ "$ref": "#/$defs/NoParametersOnlyUsedInRecursionConfiguration" },
|
|
6447
|
-
{ "type": "null" }
|
|
6448
|
-
]
|
|
6449
|
-
},
|
|
6450
6669
|
"noPlaywrightElementHandle": {
|
|
6451
6670
|
"description": "Disallow usage of element handles (page.$() and page.$$()).\nSee https://biomejs.dev/linter/rules/no-playwright-element-handle",
|
|
6452
6671
|
"anyOf": [
|
|
@@ -6517,13 +6736,6 @@
|
|
|
6517
6736
|
{ "type": "null" }
|
|
6518
6737
|
]
|
|
6519
6738
|
},
|
|
6520
|
-
"noProto": {
|
|
6521
|
-
"description": "Disallow the use of the deprecated __proto__ object property.\nSee https://biomejs.dev/linter/rules/no-proto",
|
|
6522
|
-
"anyOf": [
|
|
6523
|
-
{ "$ref": "#/$defs/NoProtoConfiguration" },
|
|
6524
|
-
{ "type": "null" }
|
|
6525
|
-
]
|
|
6526
|
-
},
|
|
6527
6739
|
"noReactNativeDeepImports": {
|
|
6528
6740
|
"description": "Disallow deep imports from the react-native package.\nSee https://biomejs.dev/linter/rules/no-react-native-deep-imports",
|
|
6529
6741
|
"anyOf": [
|
|
@@ -6552,52 +6764,10 @@
|
|
|
6552
6764
|
{ "type": "null" }
|
|
6553
6765
|
]
|
|
6554
6766
|
},
|
|
6555
|
-
"
|
|
6556
|
-
"description": "
|
|
6557
|
-
"anyOf": [
|
|
6558
|
-
{ "$ref": "#/$defs/NoRedundantDefaultExportConfiguration" },
|
|
6559
|
-
{ "type": "null" }
|
|
6560
|
-
]
|
|
6561
|
-
},
|
|
6562
|
-
"noReturnAssign": {
|
|
6563
|
-
"description": "Disallow assignments in return statements.\nSee https://biomejs.dev/linter/rules/no-return-assign",
|
|
6564
|
-
"anyOf": [
|
|
6565
|
-
{ "$ref": "#/$defs/NoReturnAssignConfiguration" },
|
|
6566
|
-
{ "type": "null" }
|
|
6567
|
-
]
|
|
6568
|
-
},
|
|
6569
|
-
"noRootType": {
|
|
6570
|
-
"description": "Disallow the usage of specified root types.\nSee https://biomejs.dev/linter/rules/no-root-type",
|
|
6571
|
-
"anyOf": [
|
|
6572
|
-
{ "$ref": "#/$defs/NoRootTypeConfiguration" },
|
|
6573
|
-
{ "type": "null" }
|
|
6574
|
-
]
|
|
6575
|
-
},
|
|
6576
|
-
"noScriptUrl": {
|
|
6577
|
-
"description": "Disallow javascript: URLs in HTML.\nSee https://biomejs.dev/linter/rules/no-script-url",
|
|
6578
|
-
"anyOf": [
|
|
6579
|
-
{ "$ref": "#/$defs/NoScriptUrlConfiguration" },
|
|
6580
|
-
{ "type": "null" }
|
|
6581
|
-
]
|
|
6582
|
-
},
|
|
6583
|
-
"noShadow": {
|
|
6584
|
-
"description": "Disallow variable declarations from shadowing variables declared in the outer scope.\nSee https://biomejs.dev/linter/rules/no-shadow",
|
|
6585
|
-
"anyOf": [
|
|
6586
|
-
{ "$ref": "#/$defs/NoShadowConfiguration" },
|
|
6587
|
-
{ "type": "null" }
|
|
6588
|
-
]
|
|
6589
|
-
},
|
|
6590
|
-
"noSyncScripts": {
|
|
6591
|
-
"description": "Prevent the usage of synchronous scripts.\nSee https://biomejs.dev/linter/rules/no-sync-scripts",
|
|
6592
|
-
"anyOf": [
|
|
6593
|
-
{ "$ref": "#/$defs/NoSyncScriptsConfiguration" },
|
|
6594
|
-
{ "type": "null" }
|
|
6595
|
-
]
|
|
6596
|
-
},
|
|
6597
|
-
"noTernary": {
|
|
6598
|
-
"description": "Disallow ternary operators.\nSee https://biomejs.dev/linter/rules/no-ternary",
|
|
6767
|
+
"noRestrictedDependencies": {
|
|
6768
|
+
"description": "Disallow dependencies that are known to have better alternatives.\nSee https://biomejs.dev/linter/rules/no-restricted-dependencies",
|
|
6599
6769
|
"anyOf": [
|
|
6600
|
-
{ "$ref": "#/$defs/
|
|
6770
|
+
{ "$ref": "#/$defs/NoRestrictedDependenciesConfiguration" },
|
|
6601
6771
|
{ "type": "null" }
|
|
6602
6772
|
]
|
|
6603
6773
|
},
|
|
@@ -6608,24 +6778,10 @@
|
|
|
6608
6778
|
{ "type": "null" }
|
|
6609
6779
|
]
|
|
6610
6780
|
},
|
|
6611
|
-
"
|
|
6612
|
-
"description": "
|
|
6613
|
-
"anyOf": [
|
|
6614
|
-
{ "$ref": "#/$defs/NoUndeclaredEnvVarsConfiguration" },
|
|
6615
|
-
{ "type": "null" }
|
|
6616
|
-
]
|
|
6617
|
-
},
|
|
6618
|
-
"noUnknownAttribute": {
|
|
6619
|
-
"description": "Disallow unknown DOM properties.\nSee https://biomejs.dev/linter/rules/no-unknown-attribute",
|
|
6620
|
-
"anyOf": [
|
|
6621
|
-
{ "$ref": "#/$defs/NoUnknownAttributeConfiguration" },
|
|
6622
|
-
{ "type": "null" }
|
|
6623
|
-
]
|
|
6624
|
-
},
|
|
6625
|
-
"noUnnecessaryConditions": {
|
|
6626
|
-
"description": "Disallow unnecessary type-based conditions that can be statically determined as redundant.\nSee https://biomejs.dev/linter/rules/no-unnecessary-conditions",
|
|
6781
|
+
"noUndeclaredClasses": {
|
|
6782
|
+
"description": "Reports CSS class names in HTML class attributes that are not defined in any \\<style> block or linked stylesheet available to the file.\nSee https://biomejs.dev/linter/rules/no-undeclared-classes",
|
|
6627
6783
|
"anyOf": [
|
|
6628
|
-
{ "$ref": "#/$defs/
|
|
6784
|
+
{ "$ref": "#/$defs/NoUndeclaredClassesConfiguration" },
|
|
6629
6785
|
{ "type": "null" }
|
|
6630
6786
|
]
|
|
6631
6787
|
},
|
|
@@ -6650,10 +6806,10 @@
|
|
|
6650
6806
|
{ "type": "null" }
|
|
6651
6807
|
]
|
|
6652
6808
|
},
|
|
6653
|
-
"
|
|
6654
|
-
"description": "
|
|
6809
|
+
"noUnusedClasses": {
|
|
6810
|
+
"description": "Reports CSS class selectors that are never referenced in any JSX or HTML file.\nSee https://biomejs.dev/linter/rules/no-unused-classes",
|
|
6655
6811
|
"anyOf": [
|
|
6656
|
-
{ "$ref": "#/$defs/
|
|
6812
|
+
{ "$ref": "#/$defs/NoUnusedClassesConfiguration" },
|
|
6657
6813
|
{ "type": "null" }
|
|
6658
6814
|
]
|
|
6659
6815
|
},
|
|
@@ -6664,13 +6820,6 @@
|
|
|
6664
6820
|
{ "type": "null" }
|
|
6665
6821
|
]
|
|
6666
6822
|
},
|
|
6667
|
-
"noVueArrowFuncInWatch": {
|
|
6668
|
-
"description": "Disallows using arrow functions when defining a watcher.\nSee https://biomejs.dev/linter/rules/no-vue-arrow-func-in-watch",
|
|
6669
|
-
"anyOf": [
|
|
6670
|
-
{ "$ref": "#/$defs/NoVueArrowFuncInWatchConfiguration" },
|
|
6671
|
-
{ "type": "null" }
|
|
6672
|
-
]
|
|
6673
|
-
},
|
|
6674
6823
|
"noVueImportCompilerMacros": {
|
|
6675
6824
|
"description": "Disallow importing Vue compiler macros.\nSee https://biomejs.dev/linter/rules/no-vue-import-compiler-macros",
|
|
6676
6825
|
"anyOf": [
|
|
@@ -6678,13 +6827,6 @@
|
|
|
6678
6827
|
{ "type": "null" }
|
|
6679
6828
|
]
|
|
6680
6829
|
},
|
|
6681
|
-
"noVueOptionsApi": {
|
|
6682
|
-
"description": "Disallow the use of Vue Options API.\nSee https://biomejs.dev/linter/rules/no-vue-options-api",
|
|
6683
|
-
"anyOf": [
|
|
6684
|
-
{ "$ref": "#/$defs/NoVueOptionsApiConfiguration" },
|
|
6685
|
-
{ "type": "null" }
|
|
6686
|
-
]
|
|
6687
|
-
},
|
|
6688
6830
|
"noVueRefAsOperand": {
|
|
6689
6831
|
"description": "Disallow the use of value wrapped by ref()(Composition API) as operand.\nSee https://biomejs.dev/linter/rules/no-vue-ref-as-operand",
|
|
6690
6832
|
"anyOf": [
|
|
@@ -6692,13 +6834,6 @@
|
|
|
6692
6834
|
{ "type": "null" }
|
|
6693
6835
|
]
|
|
6694
6836
|
},
|
|
6695
|
-
"noVueVIfWithVFor": {
|
|
6696
|
-
"description": "Disallow using v-if and v-for directives on the same element.\nSee https://biomejs.dev/linter/rules/no-vue-v-if-with-v-for",
|
|
6697
|
-
"anyOf": [
|
|
6698
|
-
{ "$ref": "#/$defs/NoVueVIfWithVForConfiguration" },
|
|
6699
|
-
{ "type": "null" }
|
|
6700
|
-
]
|
|
6701
|
-
},
|
|
6702
6837
|
"noVueVOnNumberValues": {
|
|
6703
6838
|
"description": "Disallow deprecated number modifiers on Vue v-on directives.\nSee https://biomejs.dev/linter/rules/no-vue-v-on-number-values",
|
|
6704
6839
|
"anyOf": [
|
|
@@ -6706,6 +6841,10 @@
|
|
|
6706
6841
|
{ "type": "null" }
|
|
6707
6842
|
]
|
|
6708
6843
|
},
|
|
6844
|
+
"preset": {
|
|
6845
|
+
"description": "Enables a particular rule preset",
|
|
6846
|
+
"anyOf": [{ "$ref": "#/$defs/PresetConfig" }, { "type": "null" }]
|
|
6847
|
+
},
|
|
6709
6848
|
"recommended": {
|
|
6710
6849
|
"description": "Enables the recommended rules for this group",
|
|
6711
6850
|
"type": ["boolean", "null"]
|
|
@@ -6717,13 +6856,6 @@
|
|
|
6717
6856
|
{ "type": "null" }
|
|
6718
6857
|
]
|
|
6719
6858
|
},
|
|
6720
|
-
"useArraySortCompare": {
|
|
6721
|
-
"description": "Require Array#sort and Array#toSorted calls to always provide a compareFunction.\nSee https://biomejs.dev/linter/rules/use-array-sort-compare",
|
|
6722
|
-
"anyOf": [
|
|
6723
|
-
{ "$ref": "#/$defs/UseArraySortCompareConfiguration" },
|
|
6724
|
-
{ "type": "null" }
|
|
6725
|
-
]
|
|
6726
|
-
},
|
|
6727
6859
|
"useAwaitThenable": {
|
|
6728
6860
|
"description": "Enforce that await is only used on Promise values.\nSee https://biomejs.dev/linter/rules/use-await-thenable",
|
|
6729
6861
|
"anyOf": [
|
|
@@ -6738,27 +6870,6 @@
|
|
|
6738
6870
|
{ "type": "null" }
|
|
6739
6871
|
]
|
|
6740
6872
|
},
|
|
6741
|
-
"useConsistentEnumValueType": {
|
|
6742
|
-
"description": "Disallow enums from having both number and string members.\nSee https://biomejs.dev/linter/rules/use-consistent-enum-value-type",
|
|
6743
|
-
"anyOf": [
|
|
6744
|
-
{ "$ref": "#/$defs/UseConsistentEnumValueTypeConfiguration" },
|
|
6745
|
-
{ "type": "null" }
|
|
6746
|
-
]
|
|
6747
|
-
},
|
|
6748
|
-
"useConsistentGraphqlDescriptions": {
|
|
6749
|
-
"description": "Require all descriptions to follow the same style (either block or inline) to maintain consistency and improve readability across the schema.\nSee https://biomejs.dev/linter/rules/use-consistent-graphql-descriptions",
|
|
6750
|
-
"anyOf": [
|
|
6751
|
-
{ "$ref": "#/$defs/UseConsistentGraphqlDescriptionsConfiguration" },
|
|
6752
|
-
{ "type": "null" }
|
|
6753
|
-
]
|
|
6754
|
-
},
|
|
6755
|
-
"useConsistentMethodSignatures": {
|
|
6756
|
-
"description": "Enforce consistent use of either method signatures or function properties within interfaces and type aliases.\nSee https://biomejs.dev/linter/rules/use-consistent-method-signatures",
|
|
6757
|
-
"anyOf": [
|
|
6758
|
-
{ "$ref": "#/$defs/UseConsistentMethodSignaturesConfiguration" },
|
|
6759
|
-
{ "type": "null" }
|
|
6760
|
-
]
|
|
6761
|
-
},
|
|
6762
6873
|
"useConsistentTestIt": {
|
|
6763
6874
|
"description": "Enforce consistent use of it or test for test functions.\nSee https://biomejs.dev/linter/rules/use-consistent-test-it",
|
|
6764
6875
|
"anyOf": [
|
|
@@ -6766,13 +6877,6 @@
|
|
|
6766
6877
|
{ "type": "null" }
|
|
6767
6878
|
]
|
|
6768
6879
|
},
|
|
6769
|
-
"useDestructuring": {
|
|
6770
|
-
"description": "Require destructuring from arrays and/or objects.\nSee https://biomejs.dev/linter/rules/use-destructuring",
|
|
6771
|
-
"anyOf": [
|
|
6772
|
-
{ "$ref": "#/$defs/UseDestructuringConfiguration" },
|
|
6773
|
-
{ "type": "null" }
|
|
6774
|
-
]
|
|
6775
|
-
},
|
|
6776
6880
|
"useDisposables": {
|
|
6777
6881
|
"description": "Detects a disposable object assigned to a variable without using or await using syntax.\nSee https://biomejs.dev/linter/rules/use-disposables",
|
|
6778
6882
|
"anyOf": [
|
|
@@ -6794,13 +6898,6 @@
|
|
|
6794
6898
|
{ "type": "null" }
|
|
6795
6899
|
]
|
|
6796
6900
|
},
|
|
6797
|
-
"useErrorCause": {
|
|
6798
|
-
"description": "Enforce that new Error() is thrown with the original error as cause.\nSee https://biomejs.dev/linter/rules/use-error-cause",
|
|
6799
|
-
"anyOf": [
|
|
6800
|
-
{ "$ref": "#/$defs/UseErrorCauseConfiguration" },
|
|
6801
|
-
{ "type": "null" }
|
|
6802
|
-
]
|
|
6803
|
-
},
|
|
6804
6901
|
"useExhaustiveSwitchCases": {
|
|
6805
6902
|
"description": "Require switch-case statements to be exhaustive.\nSee https://biomejs.dev/linter/rules/use-exhaustive-switch-cases",
|
|
6806
6903
|
"anyOf": [
|
|
@@ -6815,31 +6912,17 @@
|
|
|
6815
6912
|
{ "type": "null" }
|
|
6816
6913
|
]
|
|
6817
6914
|
},
|
|
6818
|
-
"useExplicitReturnType": {
|
|
6819
|
-
"description": "Require explicit return types on functions and class methods.\nSee https://biomejs.dev/linter/rules/use-explicit-return-type",
|
|
6820
|
-
"anyOf": [
|
|
6821
|
-
{ "$ref": "#/$defs/UseExplicitReturnTypeConfiguration" },
|
|
6822
|
-
{ "type": "null" }
|
|
6823
|
-
]
|
|
6824
|
-
},
|
|
6825
|
-
"useExplicitType": {
|
|
6826
|
-
"description": "Enforce types in functions, methods, variables, and parameters.\nSee https://biomejs.dev/linter/rules/use-explicit-type",
|
|
6827
|
-
"anyOf": [
|
|
6828
|
-
{ "$ref": "#/$defs/UseExplicitTypeConfiguration" },
|
|
6829
|
-
{ "type": "null" }
|
|
6830
|
-
]
|
|
6831
|
-
},
|
|
6832
|
-
"useFind": {
|
|
6833
|
-
"description": "Enforce the use of Array.prototype.find() over Array.prototype.filter() followed by [0] when looking for a single result.\nSee https://biomejs.dev/linter/rules/use-find",
|
|
6915
|
+
"useExplicitReturnType": {
|
|
6916
|
+
"description": "Require explicit return types on functions and class methods.\nSee https://biomejs.dev/linter/rules/use-explicit-return-type",
|
|
6834
6917
|
"anyOf": [
|
|
6835
|
-
{ "$ref": "#/$defs/
|
|
6918
|
+
{ "$ref": "#/$defs/UseExplicitReturnTypeConfiguration" },
|
|
6836
6919
|
{ "type": "null" }
|
|
6837
6920
|
]
|
|
6838
6921
|
},
|
|
6839
|
-
"
|
|
6840
|
-
"description": "Enforce
|
|
6922
|
+
"useExplicitType": {
|
|
6923
|
+
"description": "Enforce types in functions, methods, variables, and parameters.\nSee https://biomejs.dev/linter/rules/use-explicit-type",
|
|
6841
6924
|
"anyOf": [
|
|
6842
|
-
{ "$ref": "#/$defs/
|
|
6925
|
+
{ "$ref": "#/$defs/UseExplicitTypeConfiguration" },
|
|
6843
6926
|
{ "type": "null" }
|
|
6844
6927
|
]
|
|
6845
6928
|
},
|
|
@@ -6857,31 +6940,10 @@
|
|
|
6857
6940
|
{ "type": "null" }
|
|
6858
6941
|
]
|
|
6859
6942
|
},
|
|
6860
|
-
"
|
|
6861
|
-
"description": "
|
|
6862
|
-
"anyOf": [
|
|
6863
|
-
{ "$ref": "#/$defs/UseInlineScriptIdConfiguration" },
|
|
6864
|
-
{ "type": "null" }
|
|
6865
|
-
]
|
|
6866
|
-
},
|
|
6867
|
-
"useInputName": {
|
|
6868
|
-
"description": "Require mutation argument to be always called \"input\".\nSee https://biomejs.dev/linter/rules/use-input-name",
|
|
6869
|
-
"anyOf": [
|
|
6870
|
-
{ "$ref": "#/$defs/UseInputNameConfiguration" },
|
|
6871
|
-
{ "type": "null" }
|
|
6872
|
-
]
|
|
6873
|
-
},
|
|
6874
|
-
"useLoneAnonymousOperation": {
|
|
6875
|
-
"description": "Disallow anonymous operations when more than one operation specified in document.\nSee https://biomejs.dev/linter/rules/use-lone-anonymous-operation",
|
|
6876
|
-
"anyOf": [
|
|
6877
|
-
{ "$ref": "#/$defs/UseLoneAnonymousOperationConfiguration" },
|
|
6878
|
-
{ "type": "null" }
|
|
6879
|
-
]
|
|
6880
|
-
},
|
|
6881
|
-
"useLoneExecutableDefinition": {
|
|
6882
|
-
"description": "Require queries, mutations, subscriptions or fragments each to be located in separate files.\nSee https://biomejs.dev/linter/rules/use-lone-executable-definition",
|
|
6943
|
+
"useIncludes": {
|
|
6944
|
+
"description": "Prefer Array#includes() over Array#indexOf() checks.\nSee https://biomejs.dev/linter/rules/use-includes",
|
|
6883
6945
|
"anyOf": [
|
|
6884
|
-
{ "$ref": "#/$defs/
|
|
6946
|
+
{ "$ref": "#/$defs/UseIncludesConfiguration" },
|
|
6885
6947
|
{ "type": "null" }
|
|
6886
6948
|
]
|
|
6887
6949
|
},
|
|
@@ -6929,6 +6991,15 @@
|
|
|
6929
6991
|
{ "type": "null" }
|
|
6930
6992
|
]
|
|
6931
6993
|
},
|
|
6994
|
+
"useReactFunctionComponentDefinition": {
|
|
6995
|
+
"description": "Enforce a specific function type for React function components.\nSee https://biomejs.dev/linter/rules/use-react-function-component-definition",
|
|
6996
|
+
"anyOf": [
|
|
6997
|
+
{
|
|
6998
|
+
"$ref": "#/$defs/UseReactFunctionComponentDefinitionConfiguration"
|
|
6999
|
+
},
|
|
7000
|
+
{ "type": "null" }
|
|
7001
|
+
]
|
|
7002
|
+
},
|
|
6932
7003
|
"useReactNativePlatformComponents": {
|
|
6933
7004
|
"description": "Ensure that platform-specific React Native components are only imported in files named for that platform.\nSee https://biomejs.dev/linter/rules/use-react-native-platform-components",
|
|
6934
7005
|
"anyOf": [
|
|
@@ -6957,13 +7028,6 @@
|
|
|
6957
7028
|
{ "type": "null" }
|
|
6958
7029
|
]
|
|
6959
7030
|
},
|
|
6960
|
-
"useRequiredScripts": {
|
|
6961
|
-
"description": "Enforce the presence of required scripts in package.json.\nSee https://biomejs.dev/linter/rules/use-required-scripts",
|
|
6962
|
-
"anyOf": [
|
|
6963
|
-
{ "$ref": "#/$defs/UseRequiredScriptsConfiguration" },
|
|
6964
|
-
{ "type": "null" }
|
|
6965
|
-
]
|
|
6966
|
-
},
|
|
6967
7031
|
"useScopedStyles": {
|
|
6968
7032
|
"description": "Enforce that \\<style> blocks in Vue SFCs have the scoped attribute and that \\<style> blocks in Astro components do not have the is:global directive.\nSee https://biomejs.dev/linter/rules/use-scoped-styles",
|
|
6969
7033
|
"anyOf": [
|
|
@@ -6978,17 +7042,17 @@
|
|
|
6978
7042
|
{ "type": "null" }
|
|
6979
7043
|
]
|
|
6980
7044
|
},
|
|
6981
|
-
"
|
|
6982
|
-
"description": "
|
|
7045
|
+
"useStringStartsEndsWith": {
|
|
7046
|
+
"description": "Prefer String#startsWith() and String#endsWith() over verbose prefix and suffix checks.\nSee https://biomejs.dev/linter/rules/use-string-starts-ends-with",
|
|
6983
7047
|
"anyOf": [
|
|
6984
|
-
{ "$ref": "#/$defs/
|
|
7048
|
+
{ "$ref": "#/$defs/UseStringStartsEndsWithConfiguration" },
|
|
6985
7049
|
{ "type": "null" }
|
|
6986
7050
|
]
|
|
6987
7051
|
},
|
|
6988
|
-
"
|
|
6989
|
-
"description": "
|
|
7052
|
+
"useSvelteRequireEachKey": {
|
|
7053
|
+
"description": "Require keyed {#each} blocks in Svelte templates.\nSee https://biomejs.dev/linter/rules/use-svelte-require-each-key",
|
|
6990
7054
|
"anyOf": [
|
|
6991
|
-
{ "$ref": "#/$defs/
|
|
7055
|
+
{ "$ref": "#/$defs/UseSvelteRequireEachKeyConfiguration" },
|
|
6992
7056
|
{ "type": "null" }
|
|
6993
7057
|
]
|
|
6994
7058
|
},
|
|
@@ -7036,41 +7100,6 @@
|
|
|
7036
7100
|
{ "type": "null" }
|
|
7037
7101
|
]
|
|
7038
7102
|
},
|
|
7039
|
-
"useVueConsistentVBindStyle": {
|
|
7040
|
-
"description": "Enforce a consistent style for v-bind in Vue templates.\nSee https://biomejs.dev/linter/rules/use-vue-consistent-v-bind-style",
|
|
7041
|
-
"anyOf": [
|
|
7042
|
-
{ "$ref": "#/$defs/UseVueConsistentVBindStyleConfiguration" },
|
|
7043
|
-
{ "type": "null" }
|
|
7044
|
-
]
|
|
7045
|
-
},
|
|
7046
|
-
"useVueConsistentVOnStyle": {
|
|
7047
|
-
"description": "Enforce a consistent style for v-on in Vue templates.\nSee https://biomejs.dev/linter/rules/use-vue-consistent-v-on-style",
|
|
7048
|
-
"anyOf": [
|
|
7049
|
-
{ "$ref": "#/$defs/UseVueConsistentVOnStyleConfiguration" },
|
|
7050
|
-
{ "type": "null" }
|
|
7051
|
-
]
|
|
7052
|
-
},
|
|
7053
|
-
"useVueDefineMacrosOrder": {
|
|
7054
|
-
"description": "Enforce specific order of Vue compiler macros.\nSee https://biomejs.dev/linter/rules/use-vue-define-macros-order",
|
|
7055
|
-
"anyOf": [
|
|
7056
|
-
{ "$ref": "#/$defs/UseVueDefineMacrosOrderConfiguration" },
|
|
7057
|
-
{ "type": "null" }
|
|
7058
|
-
]
|
|
7059
|
-
},
|
|
7060
|
-
"useVueHyphenatedAttributes": {
|
|
7061
|
-
"description": "Enforce hyphenated (kebab-case) attribute names in Vue templates.\nSee https://biomejs.dev/linter/rules/use-vue-hyphenated-attributes",
|
|
7062
|
-
"anyOf": [
|
|
7063
|
-
{ "$ref": "#/$defs/UseVueHyphenatedAttributesConfiguration" },
|
|
7064
|
-
{ "type": "null" }
|
|
7065
|
-
]
|
|
7066
|
-
},
|
|
7067
|
-
"useVueMultiWordComponentNames": {
|
|
7068
|
-
"description": "Enforce multi-word component names in Vue components.\nSee https://biomejs.dev/linter/rules/use-vue-multi-word-component-names",
|
|
7069
|
-
"anyOf": [
|
|
7070
|
-
{ "$ref": "#/$defs/UseVueMultiWordComponentNamesConfiguration" },
|
|
7071
|
-
{ "type": "null" }
|
|
7072
|
-
]
|
|
7073
|
-
},
|
|
7074
7103
|
"useVueNextTickPromise": {
|
|
7075
7104
|
"description": "Enforces Promise syntax when using Vue nextTick.\nSee https://biomejs.dev/linter/rules/use-vue-next-tick-promise",
|
|
7076
7105
|
"anyOf": [
|
|
@@ -7078,103 +7107,12 @@
|
|
|
7078
7107
|
{ "type": "null" }
|
|
7079
7108
|
]
|
|
7080
7109
|
},
|
|
7081
|
-
"useVueVForKey": {
|
|
7082
|
-
"description": "Enforce that elements using v-for also specify a unique key.\nSee https://biomejs.dev/linter/rules/use-vue-v-for-key",
|
|
7083
|
-
"anyOf": [
|
|
7084
|
-
{ "$ref": "#/$defs/UseVueVForKeyConfiguration" },
|
|
7085
|
-
{ "type": "null" }
|
|
7086
|
-
]
|
|
7087
|
-
},
|
|
7088
|
-
"useVueValidTemplateRoot": {
|
|
7089
|
-
"description": "Enforce valid Vue \\<template> root usage.\nSee https://biomejs.dev/linter/rules/use-vue-valid-template-root",
|
|
7090
|
-
"anyOf": [
|
|
7091
|
-
{ "$ref": "#/$defs/UseVueValidTemplateRootConfiguration" },
|
|
7092
|
-
{ "type": "null" }
|
|
7093
|
-
]
|
|
7094
|
-
},
|
|
7095
|
-
"useVueValidVBind": {
|
|
7096
|
-
"description": "Forbids v-bind directives with missing values or invalid modifiers.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-bind",
|
|
7097
|
-
"anyOf": [
|
|
7098
|
-
{ "$ref": "#/$defs/UseVueValidVBindConfiguration" },
|
|
7099
|
-
{ "type": "null" }
|
|
7100
|
-
]
|
|
7101
|
-
},
|
|
7102
|
-
"useVueValidVCloak": {
|
|
7103
|
-
"description": "Enforce valid v-cloak Vue directives.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-cloak",
|
|
7104
|
-
"anyOf": [
|
|
7105
|
-
{ "$ref": "#/$defs/UseVueValidVCloakConfiguration" },
|
|
7106
|
-
{ "type": "null" }
|
|
7107
|
-
]
|
|
7108
|
-
},
|
|
7109
|
-
"useVueValidVElse": {
|
|
7110
|
-
"description": "Enforce valid usage of v-else.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-else",
|
|
7111
|
-
"anyOf": [
|
|
7112
|
-
{ "$ref": "#/$defs/UseVueValidVElseConfiguration" },
|
|
7113
|
-
{ "type": "null" }
|
|
7114
|
-
]
|
|
7115
|
-
},
|
|
7116
|
-
"useVueValidVElseIf": {
|
|
7117
|
-
"description": "Enforce valid v-else-if directives.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-else-if",
|
|
7118
|
-
"anyOf": [
|
|
7119
|
-
{ "$ref": "#/$defs/UseVueValidVElseIfConfiguration" },
|
|
7120
|
-
{ "type": "null" }
|
|
7121
|
-
]
|
|
7122
|
-
},
|
|
7123
7110
|
"useVueValidVFor": {
|
|
7124
7111
|
"description": "Enforces valid v-for directives in Vue templates.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-for",
|
|
7125
7112
|
"anyOf": [
|
|
7126
7113
|
{ "$ref": "#/$defs/UseVueValidVForConfiguration" },
|
|
7127
7114
|
{ "type": "null" }
|
|
7128
7115
|
]
|
|
7129
|
-
},
|
|
7130
|
-
"useVueValidVHtml": {
|
|
7131
|
-
"description": "Enforce valid v-html directives.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-html",
|
|
7132
|
-
"anyOf": [
|
|
7133
|
-
{ "$ref": "#/$defs/UseVueValidVHtmlConfiguration" },
|
|
7134
|
-
{ "type": "null" }
|
|
7135
|
-
]
|
|
7136
|
-
},
|
|
7137
|
-
"useVueValidVIf": {
|
|
7138
|
-
"description": "Enforces valid v-if usage for Vue templates.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-if",
|
|
7139
|
-
"anyOf": [
|
|
7140
|
-
{ "$ref": "#/$defs/UseVueValidVIfConfiguration" },
|
|
7141
|
-
{ "type": "null" }
|
|
7142
|
-
]
|
|
7143
|
-
},
|
|
7144
|
-
"useVueValidVOn": {
|
|
7145
|
-
"description": "Enforce valid v-on directives with proper arguments, modifiers, and handlers.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-on",
|
|
7146
|
-
"anyOf": [
|
|
7147
|
-
{ "$ref": "#/$defs/UseVueValidVOnConfiguration" },
|
|
7148
|
-
{ "type": "null" }
|
|
7149
|
-
]
|
|
7150
|
-
},
|
|
7151
|
-
"useVueValidVOnce": {
|
|
7152
|
-
"description": "Enforce valid v-once Vue directives.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-once",
|
|
7153
|
-
"anyOf": [
|
|
7154
|
-
{ "$ref": "#/$defs/UseVueValidVOnceConfiguration" },
|
|
7155
|
-
{ "type": "null" }
|
|
7156
|
-
]
|
|
7157
|
-
},
|
|
7158
|
-
"useVueValidVPre": {
|
|
7159
|
-
"description": "Enforce valid v-pre Vue directives.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-pre",
|
|
7160
|
-
"anyOf": [
|
|
7161
|
-
{ "$ref": "#/$defs/UseVueValidVPreConfiguration" },
|
|
7162
|
-
{ "type": "null" }
|
|
7163
|
-
]
|
|
7164
|
-
},
|
|
7165
|
-
"useVueValidVText": {
|
|
7166
|
-
"description": "Enforce valid v-text Vue directives.\nSee https://biomejs.dev/linter/rules/use-vue-valid-v-text",
|
|
7167
|
-
"anyOf": [
|
|
7168
|
-
{ "$ref": "#/$defs/UseVueValidVTextConfiguration" },
|
|
7169
|
-
{ "type": "null" }
|
|
7170
|
-
]
|
|
7171
|
-
},
|
|
7172
|
-
"useVueVapor": {
|
|
7173
|
-
"description": "Enforce opting in to Vue Vapor mode in \\<script setup> blocks.\nSee https://biomejs.dev/linter/rules/use-vue-vapor",
|
|
7174
|
-
"anyOf": [
|
|
7175
|
-
{ "$ref": "#/$defs/UseVueVaporConfiguration" },
|
|
7176
|
-
{ "type": "null" }
|
|
7177
|
-
]
|
|
7178
7116
|
}
|
|
7179
7117
|
},
|
|
7180
7118
|
"additionalProperties": false
|
|
@@ -7213,10 +7151,16 @@
|
|
|
7213
7151
|
"type": "object",
|
|
7214
7152
|
"properties": {
|
|
7215
7153
|
"groups": {
|
|
7154
|
+
"description": "Groups to change how imports and exports are sorted.",
|
|
7216
7155
|
"anyOf": [{ "$ref": "#/$defs/ImportGroups" }, { "type": "null" }]
|
|
7217
7156
|
},
|
|
7218
7157
|
"identifierOrder": {
|
|
7158
|
+
"description": "Order used for sorting identifiers within imports and exports.\n\nDefault: `natural`.",
|
|
7219
7159
|
"anyOf": [{ "$ref": "#/$defs/SortOrder" }, { "type": "null" }]
|
|
7160
|
+
},
|
|
7161
|
+
"sortBareImports": {
|
|
7162
|
+
"description": "If `true`, bare imports such as `import \"module\"` are sorted with other imports.",
|
|
7163
|
+
"type": ["boolean", "null"]
|
|
7220
7164
|
}
|
|
7221
7165
|
},
|
|
7222
7166
|
"additionalProperties": false
|
|
@@ -7260,6 +7204,10 @@
|
|
|
7260
7204
|
"description": "Whether to insert spaces around brackets in object literals. Defaults to true.",
|
|
7261
7205
|
"anyOf": [{ "$ref": "#/$defs/BracketSpacing" }, { "type": "null" }]
|
|
7262
7206
|
},
|
|
7207
|
+
"delimiterSpacing": {
|
|
7208
|
+
"description": "Whether to insert spaces inside delimiters (after the opening delimiter and before the\nclosing delimiter), such as parentheses, brackets, angle brackets, and template literal\ninterpolations. Spaces are not added before the opening delimiter, and empty delimiters\nare not affected. Only applies when the content fits on a single line. The specific\ndelimiters affected depend on the language. Defaults to false.",
|
|
7209
|
+
"anyOf": [{ "$ref": "#/$defs/DelimiterSpacing" }, { "type": "null" }]
|
|
7210
|
+
},
|
|
7263
7211
|
"enabled": {
|
|
7264
7212
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
7265
7213
|
},
|
|
@@ -7291,6 +7239,10 @@
|
|
|
7291
7239
|
"description": "What's the max width of a line. Defaults to 80.",
|
|
7292
7240
|
"anyOf": [{ "$ref": "#/$defs/LineWidth" }, { "type": "null" }]
|
|
7293
7241
|
},
|
|
7242
|
+
"trailingCommas": {
|
|
7243
|
+
"description": "Print trailing commas wherever possible in multi-line comma-separated syntactic structures.",
|
|
7244
|
+
"anyOf": [{ "$ref": "#/$defs/JsTrailingCommas" }, { "type": "null" }]
|
|
7245
|
+
},
|
|
7294
7246
|
"trailingNewline": {
|
|
7295
7247
|
"description": "Whether to add a trailing newline at the end of the file.\n\nSetting this option to `false` is **highly discouraged** because it could cause many problems with other tools:\n- https://thoughtbot.com/blog/no-newline-at-end-of-file\n- https://callmeryan.medium.com/no-newline-at-end-of-file-navigating-gits-warning-for-android-developers-af14e73dd804\n- https://unix.stackexchange.com/questions/345548/how-to-cat-files-together-adding-missing-newlines-at-end-of-some-files\n\nDisable the option at your own risk.\n\nDefaults to true.",
|
|
7296
7248
|
"anyOf": [{ "$ref": "#/$defs/TrailingNewline" }, { "type": "null" }]
|
|
@@ -7492,6 +7444,13 @@
|
|
|
7492
7444
|
{ "type": "null" }
|
|
7493
7445
|
]
|
|
7494
7446
|
},
|
|
7447
|
+
"noJsxPropsBind": {
|
|
7448
|
+
"description": "Disallow .bind(), arrow functions, or function expressions in JSX props.\nSee https://biomejs.dev/linter/rules/no-jsx-props-bind",
|
|
7449
|
+
"anyOf": [
|
|
7450
|
+
{ "$ref": "#/$defs/NoJsxPropsBindConfiguration" },
|
|
7451
|
+
{ "type": "null" }
|
|
7452
|
+
]
|
|
7453
|
+
},
|
|
7495
7454
|
"noNamespaceImport": {
|
|
7496
7455
|
"description": "Disallow the use of namespace imports.\nSee https://biomejs.dev/linter/rules/no-namespace-import",
|
|
7497
7456
|
"anyOf": [
|
|
@@ -7506,6 +7465,13 @@
|
|
|
7506
7465
|
{ "type": "null" }
|
|
7507
7466
|
]
|
|
7508
7467
|
},
|
|
7468
|
+
"noSyncScripts": {
|
|
7469
|
+
"description": "Prevent the usage of synchronous scripts.\nSee https://biomejs.dev/linter/rules/no-sync-scripts",
|
|
7470
|
+
"anyOf": [
|
|
7471
|
+
{ "$ref": "#/$defs/NoSyncScriptsConfiguration" },
|
|
7472
|
+
{ "type": "null" }
|
|
7473
|
+
]
|
|
7474
|
+
},
|
|
7509
7475
|
"noUnwantedPolyfillio": {
|
|
7510
7476
|
"description": "Prevent duplicate polyfills from Polyfill.io.\nSee https://biomejs.dev/linter/rules/no-unwanted-polyfillio",
|
|
7511
7477
|
"anyOf": [
|
|
@@ -7513,6 +7479,10 @@
|
|
|
7513
7479
|
{ "type": "null" }
|
|
7514
7480
|
]
|
|
7515
7481
|
},
|
|
7482
|
+
"preset": {
|
|
7483
|
+
"description": "Enables a particular rule preset",
|
|
7484
|
+
"anyOf": [{ "$ref": "#/$defs/PresetConfig" }, { "type": "null" }]
|
|
7485
|
+
},
|
|
7516
7486
|
"recommended": {
|
|
7517
7487
|
"description": "Enables the recommended rules for this group",
|
|
7518
7488
|
"type": ["boolean", "null"]
|
|
@@ -7537,15 +7507,50 @@
|
|
|
7537
7507
|
{ "$ref": "#/$defs/UseTopLevelRegexConfiguration" },
|
|
7538
7508
|
{ "type": "null" }
|
|
7539
7509
|
]
|
|
7510
|
+
},
|
|
7511
|
+
"useVueVapor": {
|
|
7512
|
+
"description": "Enforce opting in to Vue Vapor mode in \\<script setup> blocks.\nSee https://biomejs.dev/linter/rules/use-vue-vapor",
|
|
7513
|
+
"anyOf": [
|
|
7514
|
+
{ "$ref": "#/$defs/UseVueVaporConfiguration" },
|
|
7515
|
+
{ "type": "null" }
|
|
7516
|
+
]
|
|
7540
7517
|
}
|
|
7541
7518
|
},
|
|
7542
7519
|
"additionalProperties": false
|
|
7543
7520
|
},
|
|
7544
|
-
"PluginConfiguration": {
|
|
7521
|
+
"PluginConfiguration": {
|
|
7522
|
+
"description": "Configuration for a single plugin entry.\n\nCan be either a plain path string or an object with path and options:\n\n```json\n{\n \"plugins\": [\n \"simple-plugin.grit\",\n { \"path\": \"scoped-plugin.grit\", \"includes\": [\"src/**/*.ts\"] }\n ]\n}\n```",
|
|
7523
|
+
"anyOf": [
|
|
7524
|
+
{ "description": "A plain path to the plugin.", "type": "string" },
|
|
7525
|
+
{
|
|
7526
|
+
"description": "A path with additional options.",
|
|
7527
|
+
"$ref": "#/$defs/PluginWithOptions"
|
|
7528
|
+
}
|
|
7529
|
+
]
|
|
7530
|
+
},
|
|
7531
|
+
"PluginWithOptions": {
|
|
7532
|
+
"description": "Plugin path with additional options.",
|
|
7533
|
+
"type": "object",
|
|
7534
|
+
"properties": {
|
|
7535
|
+
"includes": {
|
|
7536
|
+
"description": "A list of glob patterns. The plugin will only run on files matching\nthese patterns. Use negated globs (e.g., `!**/*.test.ts`) for exclusions.",
|
|
7537
|
+
"type": ["array", "null"],
|
|
7538
|
+
"items": { "$ref": "#/$defs/NormalizedGlob" }
|
|
7539
|
+
},
|
|
7540
|
+
"path": { "description": "The path to the plugin.", "type": "string" }
|
|
7541
|
+
},
|
|
7542
|
+
"additionalProperties": false,
|
|
7543
|
+
"required": ["path"]
|
|
7544
|
+
},
|
|
7545
7545
|
"Plugins": {
|
|
7546
7546
|
"type": "array",
|
|
7547
7547
|
"items": { "$ref": "#/$defs/PluginConfiguration" }
|
|
7548
7548
|
},
|
|
7549
|
+
"PresetConfig": {
|
|
7550
|
+
"description": "A preset configuration for enabling a set of rules.",
|
|
7551
|
+
"type": "string",
|
|
7552
|
+
"enum": ["recommended", "all", "none"]
|
|
7553
|
+
},
|
|
7549
7554
|
"PropertyAssignmentMode": {
|
|
7550
7555
|
"description": "Specifies whether property assignments on function parameters are allowed or denied.",
|
|
7551
7556
|
"oneOf": [
|
|
@@ -7593,6 +7598,14 @@
|
|
|
7593
7598
|
},
|
|
7594
7599
|
"required": ["level", "options"]
|
|
7595
7600
|
},
|
|
7601
|
+
"RuleAssistWithUseSortedEnumMembersOptions": {
|
|
7602
|
+
"type": "object",
|
|
7603
|
+
"properties": {
|
|
7604
|
+
"level": { "$ref": "#/$defs/RuleAssistPlainConfiguration" },
|
|
7605
|
+
"options": { "$ref": "#/$defs/UseSortedEnumMembersOptions" }
|
|
7606
|
+
},
|
|
7607
|
+
"required": ["level", "options"]
|
|
7608
|
+
},
|
|
7596
7609
|
"RuleAssistWithUseSortedInterfaceMembersOptions": {
|
|
7597
7610
|
"type": "object",
|
|
7598
7611
|
"properties": {
|
|
@@ -7609,6 +7622,14 @@
|
|
|
7609
7622
|
},
|
|
7610
7623
|
"required": ["level", "options"]
|
|
7611
7624
|
},
|
|
7625
|
+
"RuleAssistWithUseSortedPackageJsonOptions": {
|
|
7626
|
+
"type": "object",
|
|
7627
|
+
"properties": {
|
|
7628
|
+
"level": { "$ref": "#/$defs/RuleAssistPlainConfiguration" },
|
|
7629
|
+
"options": { "$ref": "#/$defs/UseSortedPackageJsonOptions" }
|
|
7630
|
+
},
|
|
7631
|
+
"required": ["level", "options"]
|
|
7632
|
+
},
|
|
7612
7633
|
"RuleAssistWithUseSortedPropertiesOptions": {
|
|
7613
7634
|
"type": "object",
|
|
7614
7635
|
"properties": {
|
|
@@ -7617,6 +7638,22 @@
|
|
|
7617
7638
|
},
|
|
7618
7639
|
"required": ["level", "options"]
|
|
7619
7640
|
},
|
|
7641
|
+
"RuleAssistWithUseSortedSelectionSetOptions": {
|
|
7642
|
+
"type": "object",
|
|
7643
|
+
"properties": {
|
|
7644
|
+
"level": { "$ref": "#/$defs/RuleAssistPlainConfiguration" },
|
|
7645
|
+
"options": { "$ref": "#/$defs/UseSortedSelectionSetOptions" }
|
|
7646
|
+
},
|
|
7647
|
+
"required": ["level", "options"]
|
|
7648
|
+
},
|
|
7649
|
+
"RuleAssistWithUseSortedTypeFieldsOptions": {
|
|
7650
|
+
"type": "object",
|
|
7651
|
+
"properties": {
|
|
7652
|
+
"level": { "$ref": "#/$defs/RuleAssistPlainConfiguration" },
|
|
7653
|
+
"options": { "$ref": "#/$defs/UseSortedTypeFieldsOptions" }
|
|
7654
|
+
},
|
|
7655
|
+
"required": ["level", "options"]
|
|
7656
|
+
},
|
|
7620
7657
|
"RuleDomain": {
|
|
7621
7658
|
"description": "Rule domains",
|
|
7622
7659
|
"oneOf": [
|
|
@@ -7651,6 +7688,11 @@
|
|
|
7651
7688
|
"type": "string",
|
|
7652
7689
|
"const": "qwik"
|
|
7653
7690
|
},
|
|
7691
|
+
{
|
|
7692
|
+
"description": "Svelte framework rules",
|
|
7693
|
+
"type": "string",
|
|
7694
|
+
"const": "svelte"
|
|
7695
|
+
},
|
|
7654
7696
|
{
|
|
7655
7697
|
"description": "Vue.js framework rules",
|
|
7656
7698
|
"type": "string",
|
|
@@ -8727,15 +8769,6 @@
|
|
|
8727
8769
|
"additionalProperties": false,
|
|
8728
8770
|
"required": ["level"]
|
|
8729
8771
|
},
|
|
8730
|
-
"RuleWithNoFloatingClassesOptions": {
|
|
8731
|
-
"type": "object",
|
|
8732
|
-
"properties": {
|
|
8733
|
-
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
8734
|
-
"options": { "$ref": "#/$defs/NoFloatingClassesOptions" }
|
|
8735
|
-
},
|
|
8736
|
-
"additionalProperties": false,
|
|
8737
|
-
"required": ["level"]
|
|
8738
|
-
},
|
|
8739
8772
|
"RuleWithNoFloatingPromisesOptions": {
|
|
8740
8773
|
"type": "object",
|
|
8741
8774
|
"properties": {
|
|
@@ -9243,11 +9276,11 @@
|
|
|
9243
9276
|
"additionalProperties": false,
|
|
9244
9277
|
"required": ["level"]
|
|
9245
9278
|
},
|
|
9246
|
-
"
|
|
9279
|
+
"RuleWithNoMultilineStringOptions": {
|
|
9247
9280
|
"type": "object",
|
|
9248
9281
|
"properties": {
|
|
9249
9282
|
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
9250
|
-
"options": { "$ref": "#/$defs/
|
|
9283
|
+
"options": { "$ref": "#/$defs/NoMultilineStringOptions" }
|
|
9251
9284
|
},
|
|
9252
9285
|
"additionalProperties": false,
|
|
9253
9286
|
"required": ["level"]
|
|
@@ -9734,6 +9767,15 @@
|
|
|
9734
9767
|
"additionalProperties": false,
|
|
9735
9768
|
"required": ["level"]
|
|
9736
9769
|
},
|
|
9770
|
+
"RuleWithNoRestrictedDependenciesOptions": {
|
|
9771
|
+
"type": "object",
|
|
9772
|
+
"properties": {
|
|
9773
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
9774
|
+
"options": { "$ref": "#/$defs/NoRestrictedDependenciesOptions" }
|
|
9775
|
+
},
|
|
9776
|
+
"additionalProperties": false,
|
|
9777
|
+
"required": ["level"]
|
|
9778
|
+
},
|
|
9737
9779
|
"RuleWithNoRestrictedElementsOptions": {
|
|
9738
9780
|
"type": "object",
|
|
9739
9781
|
"properties": {
|
|
@@ -10040,6 +10082,15 @@
|
|
|
10040
10082
|
"additionalProperties": false,
|
|
10041
10083
|
"required": ["level"]
|
|
10042
10084
|
},
|
|
10085
|
+
"RuleWithNoUndeclaredClassesOptions": {
|
|
10086
|
+
"type": "object",
|
|
10087
|
+
"properties": {
|
|
10088
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
10089
|
+
"options": { "$ref": "#/$defs/NoUndeclaredClassesOptions" }
|
|
10090
|
+
},
|
|
10091
|
+
"additionalProperties": false,
|
|
10092
|
+
"required": ["level"]
|
|
10093
|
+
},
|
|
10043
10094
|
"RuleWithNoUndeclaredDependenciesOptions": {
|
|
10044
10095
|
"type": "object",
|
|
10045
10096
|
"properties": {
|
|
@@ -10258,6 +10309,15 @@
|
|
|
10258
10309
|
"additionalProperties": false,
|
|
10259
10310
|
"required": ["level"]
|
|
10260
10311
|
},
|
|
10312
|
+
"RuleWithNoUnusedClassesOptions": {
|
|
10313
|
+
"type": "object",
|
|
10314
|
+
"properties": {
|
|
10315
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
10316
|
+
"options": { "$ref": "#/$defs/NoUnusedClassesOptions" }
|
|
10317
|
+
},
|
|
10318
|
+
"additionalProperties": false,
|
|
10319
|
+
"required": ["level"]
|
|
10320
|
+
},
|
|
10261
10321
|
"RuleWithNoUnusedExpressionsOptions": {
|
|
10262
10322
|
"type": "object",
|
|
10263
10323
|
"properties": {
|
|
@@ -10287,6 +10347,15 @@
|
|
|
10287
10347
|
"additionalProperties": false,
|
|
10288
10348
|
"required": ["level"]
|
|
10289
10349
|
},
|
|
10350
|
+
"RuleWithNoUnusedInstantiationOptions": {
|
|
10351
|
+
"type": "object",
|
|
10352
|
+
"properties": {
|
|
10353
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
10354
|
+
"options": { "$ref": "#/$defs/NoUnusedInstantiationOptions" }
|
|
10355
|
+
},
|
|
10356
|
+
"additionalProperties": false,
|
|
10357
|
+
"required": ["level"]
|
|
10358
|
+
},
|
|
10290
10359
|
"RuleWithNoUnusedLabelsOptions": {
|
|
10291
10360
|
"type": "object",
|
|
10292
10361
|
"properties": {
|
|
@@ -10761,7 +10830,6 @@
|
|
|
10761
10830
|
"RuleWithUseAriaActivedescendantWithTabindexOptions": {
|
|
10762
10831
|
"type": "object",
|
|
10763
10832
|
"properties": {
|
|
10764
|
-
"fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
|
|
10765
10833
|
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
10766
10834
|
"options": {
|
|
10767
10835
|
"$ref": "#/$defs/UseAriaActivedescendantWithTabindexOptions"
|
|
@@ -10788,6 +10856,15 @@
|
|
|
10788
10856
|
"additionalProperties": false,
|
|
10789
10857
|
"required": ["level"]
|
|
10790
10858
|
},
|
|
10859
|
+
"RuleWithUseArrayFindOptions": {
|
|
10860
|
+
"type": "object",
|
|
10861
|
+
"properties": {
|
|
10862
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
10863
|
+
"options": { "$ref": "#/$defs/UseArrayFindOptions" }
|
|
10864
|
+
},
|
|
10865
|
+
"additionalProperties": false,
|
|
10866
|
+
"required": ["level"]
|
|
10867
|
+
},
|
|
10791
10868
|
"RuleWithUseArrayLiteralsOptions": {
|
|
10792
10869
|
"type": "object",
|
|
10793
10870
|
"properties": {
|
|
@@ -11269,15 +11346,6 @@
|
|
|
11269
11346
|
"additionalProperties": false,
|
|
11270
11347
|
"required": ["level"]
|
|
11271
11348
|
},
|
|
11272
|
-
"RuleWithUseFindOptions": {
|
|
11273
|
-
"type": "object",
|
|
11274
|
-
"properties": {
|
|
11275
|
-
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
11276
|
-
"options": { "$ref": "#/$defs/UseFindOptions" }
|
|
11277
|
-
},
|
|
11278
|
-
"additionalProperties": false,
|
|
11279
|
-
"required": ["level"]
|
|
11280
|
-
},
|
|
11281
11349
|
"RuleWithUseFlatMapOptions": {
|
|
11282
11350
|
"type": "object",
|
|
11283
11351
|
"properties": {
|
|
@@ -11482,6 +11550,16 @@
|
|
|
11482
11550
|
"additionalProperties": false,
|
|
11483
11551
|
"required": ["level"]
|
|
11484
11552
|
},
|
|
11553
|
+
"RuleWithUseIncludesOptions": {
|
|
11554
|
+
"type": "object",
|
|
11555
|
+
"properties": {
|
|
11556
|
+
"fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
|
|
11557
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
11558
|
+
"options": { "$ref": "#/$defs/UseIncludesOptions" }
|
|
11559
|
+
},
|
|
11560
|
+
"additionalProperties": false,
|
|
11561
|
+
"required": ["level"]
|
|
11562
|
+
},
|
|
11485
11563
|
"RuleWithUseIndexOfOptions": {
|
|
11486
11564
|
"type": "object",
|
|
11487
11565
|
"properties": {
|
|
@@ -11827,6 +11905,18 @@
|
|
|
11827
11905
|
"additionalProperties": false,
|
|
11828
11906
|
"required": ["level"]
|
|
11829
11907
|
},
|
|
11908
|
+
"RuleWithUseReactFunctionComponentDefinitionOptions": {
|
|
11909
|
+
"type": "object",
|
|
11910
|
+
"properties": {
|
|
11911
|
+
"fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
|
|
11912
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
11913
|
+
"options": {
|
|
11914
|
+
"$ref": "#/$defs/UseReactFunctionComponentDefinitionOptions"
|
|
11915
|
+
}
|
|
11916
|
+
},
|
|
11917
|
+
"additionalProperties": false,
|
|
11918
|
+
"required": ["level"]
|
|
11919
|
+
},
|
|
11830
11920
|
"RuleWithUseReactFunctionComponentsOptions": {
|
|
11831
11921
|
"type": "object",
|
|
11832
11922
|
"properties": {
|
|
@@ -12011,12 +12101,12 @@
|
|
|
12011
12101
|
"additionalProperties": false,
|
|
12012
12102
|
"required": ["level"]
|
|
12013
12103
|
},
|
|
12014
|
-
"
|
|
12104
|
+
"RuleWithUseSpreadOverApplyOptions": {
|
|
12015
12105
|
"type": "object",
|
|
12016
12106
|
"properties": {
|
|
12017
12107
|
"fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
|
|
12018
12108
|
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
12019
|
-
"options": { "$ref": "#/$defs/
|
|
12109
|
+
"options": { "$ref": "#/$defs/UseSpreadOverApplyOptions" }
|
|
12020
12110
|
},
|
|
12021
12111
|
"additionalProperties": false,
|
|
12022
12112
|
"required": ["level"]
|
|
@@ -12051,6 +12141,15 @@
|
|
|
12051
12141
|
"additionalProperties": false,
|
|
12052
12142
|
"required": ["level"]
|
|
12053
12143
|
},
|
|
12144
|
+
"RuleWithUseSvelteRequireEachKeyOptions": {
|
|
12145
|
+
"type": "object",
|
|
12146
|
+
"properties": {
|
|
12147
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
12148
|
+
"options": { "$ref": "#/$defs/UseSvelteRequireEachKeyOptions" }
|
|
12149
|
+
},
|
|
12150
|
+
"additionalProperties": false,
|
|
12151
|
+
"required": ["level"]
|
|
12152
|
+
},
|
|
12054
12153
|
"RuleWithUseSymbolDescriptionOptions": {
|
|
12055
12154
|
"type": "object",
|
|
12056
12155
|
"properties": {
|
|
@@ -12494,6 +12593,10 @@
|
|
|
12494
12593
|
{ "type": "null" }
|
|
12495
12594
|
]
|
|
12496
12595
|
},
|
|
12596
|
+
"preset": {
|
|
12597
|
+
"description": "The rule presets to use.",
|
|
12598
|
+
"anyOf": [{ "$ref": "#/$defs/PresetConfig" }, { "type": "null" }]
|
|
12599
|
+
},
|
|
12497
12600
|
"recommended": {
|
|
12498
12601
|
"description": "It enables the lint rules recommended by Biome. `true` by default.",
|
|
12499
12602
|
"type": ["boolean", "null"]
|
|
@@ -12552,6 +12655,13 @@
|
|
|
12552
12655
|
{ "type": "null" }
|
|
12553
12656
|
]
|
|
12554
12657
|
},
|
|
12658
|
+
"noScriptUrl": {
|
|
12659
|
+
"description": "Disallow javascript: URLs in HTML.\nSee https://biomejs.dev/linter/rules/no-script-url",
|
|
12660
|
+
"anyOf": [
|
|
12661
|
+
{ "$ref": "#/$defs/NoScriptUrlConfiguration" },
|
|
12662
|
+
{ "type": "null" }
|
|
12663
|
+
]
|
|
12664
|
+
},
|
|
12555
12665
|
"noSecrets": {
|
|
12556
12666
|
"description": "Disallow usage of sensitive data such as API keys and tokens.\nSee https://biomejs.dev/linter/rules/no-secrets",
|
|
12557
12667
|
"anyOf": [
|
|
@@ -12559,6 +12669,10 @@
|
|
|
12559
12669
|
{ "type": "null" }
|
|
12560
12670
|
]
|
|
12561
12671
|
},
|
|
12672
|
+
"preset": {
|
|
12673
|
+
"description": "Enables a particular rule preset",
|
|
12674
|
+
"anyOf": [{ "$ref": "#/$defs/PresetConfig" }, { "type": "null" }]
|
|
12675
|
+
},
|
|
12562
12676
|
"recommended": {
|
|
12563
12677
|
"description": "Enables the recommended rules for this group",
|
|
12564
12678
|
"type": ["boolean", "null"]
|
|
@@ -12664,17 +12778,28 @@
|
|
|
12664
12778
|
{ "type": "null" }
|
|
12665
12779
|
]
|
|
12666
12780
|
},
|
|
12781
|
+
"preset": {
|
|
12782
|
+
"description": "Enables a particular rule preset",
|
|
12783
|
+
"anyOf": [{ "$ref": "#/$defs/PresetConfig" }, { "type": "null" }]
|
|
12784
|
+
},
|
|
12667
12785
|
"recommended": {
|
|
12668
12786
|
"description": "Enables the recommended rules for this group",
|
|
12669
12787
|
"type": ["boolean", "null"]
|
|
12670
12788
|
},
|
|
12671
12789
|
"useSortedAttributes": {
|
|
12672
|
-
"description": "Enforce attribute sorting in
|
|
12790
|
+
"description": "Enforce attribute sorting in HTML elements.\nSee https://biomejs.dev/assist/actions/use-sorted-attributes",
|
|
12673
12791
|
"anyOf": [
|
|
12674
12792
|
{ "$ref": "#/$defs/UseSortedAttributesConfiguration" },
|
|
12675
12793
|
{ "type": "null" }
|
|
12676
12794
|
]
|
|
12677
12795
|
},
|
|
12796
|
+
"useSortedEnumMembers": {
|
|
12797
|
+
"description": "Sort the members of an enum in natural order.\nSee https://biomejs.dev/assist/actions/use-sorted-enum-members",
|
|
12798
|
+
"anyOf": [
|
|
12799
|
+
{ "$ref": "#/$defs/UseSortedEnumMembersConfiguration" },
|
|
12800
|
+
{ "type": "null" }
|
|
12801
|
+
]
|
|
12802
|
+
},
|
|
12678
12803
|
"useSortedInterfaceMembers": {
|
|
12679
12804
|
"description": "Sort interface members by key.\nSee https://biomejs.dev/assist/actions/use-sorted-interface-members",
|
|
12680
12805
|
"anyOf": [
|
|
@@ -12689,12 +12814,33 @@
|
|
|
12689
12814
|
{ "type": "null" }
|
|
12690
12815
|
]
|
|
12691
12816
|
},
|
|
12817
|
+
"useSortedPackageJson": {
|
|
12818
|
+
"description": "Organize package.json fields according to established conventions.\nSee https://biomejs.dev/assist/actions/use-sorted-package-json",
|
|
12819
|
+
"anyOf": [
|
|
12820
|
+
{ "$ref": "#/$defs/UseSortedPackageJsonConfiguration" },
|
|
12821
|
+
{ "type": "null" }
|
|
12822
|
+
]
|
|
12823
|
+
},
|
|
12692
12824
|
"useSortedProperties": {
|
|
12693
12825
|
"description": "Enforce ordering of CSS properties and nested rules.\nSee https://biomejs.dev/assist/actions/use-sorted-properties",
|
|
12694
12826
|
"anyOf": [
|
|
12695
12827
|
{ "$ref": "#/$defs/UseSortedPropertiesConfiguration" },
|
|
12696
12828
|
{ "type": "null" }
|
|
12697
12829
|
]
|
|
12830
|
+
},
|
|
12831
|
+
"useSortedSelectionSet": {
|
|
12832
|
+
"description": "Sort GraphQL selection sets.\nSee https://biomejs.dev/assist/actions/use-sorted-selection-set",
|
|
12833
|
+
"anyOf": [
|
|
12834
|
+
{ "$ref": "#/$defs/UseSortedSelectionSetConfiguration" },
|
|
12835
|
+
{ "type": "null" }
|
|
12836
|
+
]
|
|
12837
|
+
},
|
|
12838
|
+
"useSortedTypeFields": {
|
|
12839
|
+
"description": "Sort fields in GraphQL type definitions alphabetically.\nSee https://biomejs.dev/assist/actions/use-sorted-type-fields",
|
|
12840
|
+
"anyOf": [
|
|
12841
|
+
{ "$ref": "#/$defs/UseSortedTypeFieldsConfiguration" },
|
|
12842
|
+
{ "type": "null" }
|
|
12843
|
+
]
|
|
12698
12844
|
}
|
|
12699
12845
|
},
|
|
12700
12846
|
"additionalProperties": false
|
|
@@ -12747,6 +12893,13 @@
|
|
|
12747
12893
|
{ "type": "null" }
|
|
12748
12894
|
]
|
|
12749
12895
|
},
|
|
12896
|
+
"noContinue": {
|
|
12897
|
+
"description": "Disallow continue statements.\nSee https://biomejs.dev/linter/rules/no-continue",
|
|
12898
|
+
"anyOf": [
|
|
12899
|
+
{ "$ref": "#/$defs/NoContinueConfiguration" },
|
|
12900
|
+
{ "type": "null" }
|
|
12901
|
+
]
|
|
12902
|
+
},
|
|
12750
12903
|
"noDefaultExport": {
|
|
12751
12904
|
"description": "Disallow default exports.\nSee https://biomejs.dev/linter/rules/no-default-export",
|
|
12752
12905
|
"anyOf": [
|
|
@@ -12775,6 +12928,20 @@
|
|
|
12775
12928
|
{ "type": "null" }
|
|
12776
12929
|
]
|
|
12777
12930
|
},
|
|
12931
|
+
"noExcessiveClassesPerFile": {
|
|
12932
|
+
"description": "Enforce a maximum number of classes per file.\nSee https://biomejs.dev/linter/rules/no-excessive-classes-per-file",
|
|
12933
|
+
"anyOf": [
|
|
12934
|
+
{ "$ref": "#/$defs/NoExcessiveClassesPerFileConfiguration" },
|
|
12935
|
+
{ "type": "null" }
|
|
12936
|
+
]
|
|
12937
|
+
},
|
|
12938
|
+
"noExcessiveLinesPerFile": {
|
|
12939
|
+
"description": "Restrict the number of lines in a file.\nSee https://biomejs.dev/linter/rules/no-excessive-lines-per-file",
|
|
12940
|
+
"anyOf": [
|
|
12941
|
+
{ "$ref": "#/$defs/NoExcessiveLinesPerFileConfiguration" },
|
|
12942
|
+
{ "type": "null" }
|
|
12943
|
+
]
|
|
12944
|
+
},
|
|
12778
12945
|
"noExportedImports": {
|
|
12779
12946
|
"description": "Disallow exporting an imported variable.\nSee https://biomejs.dev/linter/rules/no-exported-imports",
|
|
12780
12947
|
"anyOf": [
|
|
@@ -12789,6 +12956,13 @@
|
|
|
12789
12956
|
{ "type": "null" }
|
|
12790
12957
|
]
|
|
12791
12958
|
},
|
|
12959
|
+
"noHexColors": {
|
|
12960
|
+
"description": "Disallow hex colors.\nSee https://biomejs.dev/linter/rules/no-hex-colors",
|
|
12961
|
+
"anyOf": [
|
|
12962
|
+
{ "$ref": "#/$defs/NoHexColorsConfiguration" },
|
|
12963
|
+
{ "type": "null" }
|
|
12964
|
+
]
|
|
12965
|
+
},
|
|
12792
12966
|
"noImplicitBoolean": {
|
|
12793
12967
|
"description": "Disallow implicit true values on JSX boolean attributes.\nSee https://biomejs.dev/linter/rules/no-implicit-boolean",
|
|
12794
12968
|
"anyOf": [
|
|
@@ -12796,6 +12970,13 @@
|
|
|
12796
12970
|
{ "type": "null" }
|
|
12797
12971
|
]
|
|
12798
12972
|
},
|
|
12973
|
+
"noIncrementDecrement": {
|
|
12974
|
+
"description": "Disallows the usage of the unary operators ++ and --.\nSee https://biomejs.dev/linter/rules/no-increment-decrement",
|
|
12975
|
+
"anyOf": [
|
|
12976
|
+
{ "$ref": "#/$defs/NoIncrementDecrementConfiguration" },
|
|
12977
|
+
{ "type": "null" }
|
|
12978
|
+
]
|
|
12979
|
+
},
|
|
12799
12980
|
"noInferrableTypes": {
|
|
12800
12981
|
"description": "Disallow type annotations for variables, parameters, and class properties initialized with a literal expression.\nSee https://biomejs.dev/linter/rules/no-inferrable-types",
|
|
12801
12982
|
"anyOf": [
|
|
@@ -12817,6 +12998,20 @@
|
|
|
12817
12998
|
{ "type": "null" }
|
|
12818
12999
|
]
|
|
12819
13000
|
},
|
|
13001
|
+
"noMultiAssign": {
|
|
13002
|
+
"description": "Disallow use of chained assignment expressions.\nSee https://biomejs.dev/linter/rules/no-multi-assign",
|
|
13003
|
+
"anyOf": [
|
|
13004
|
+
{ "$ref": "#/$defs/NoMultiAssignConfiguration" },
|
|
13005
|
+
{ "type": "null" }
|
|
13006
|
+
]
|
|
13007
|
+
},
|
|
13008
|
+
"noMultilineString": {
|
|
13009
|
+
"description": "Disallow creating multiline strings by escaping newlines.\nSee https://biomejs.dev/linter/rules/no-multiline-string",
|
|
13010
|
+
"anyOf": [
|
|
13011
|
+
{ "$ref": "#/$defs/NoMultilineStringConfiguration" },
|
|
13012
|
+
{ "type": "null" }
|
|
13013
|
+
]
|
|
13014
|
+
},
|
|
12820
13015
|
"noNamespace": {
|
|
12821
13016
|
"description": "Disallow the use of TypeScript's namespaces.\nSee https://biomejs.dev/linter/rules/no-namespace",
|
|
12822
13017
|
"anyOf": [
|
|
@@ -12887,6 +13082,13 @@
|
|
|
12887
13082
|
{ "type": "null" }
|
|
12888
13083
|
]
|
|
12889
13084
|
},
|
|
13085
|
+
"noRootType": {
|
|
13086
|
+
"description": "Disallow the usage of specified root types.\nSee https://biomejs.dev/linter/rules/no-root-type",
|
|
13087
|
+
"anyOf": [
|
|
13088
|
+
{ "$ref": "#/$defs/NoRootTypeConfiguration" },
|
|
13089
|
+
{ "type": "null" }
|
|
13090
|
+
]
|
|
13091
|
+
},
|
|
12890
13092
|
"noShoutyConstants": {
|
|
12891
13093
|
"description": "Disallow the use of constants which its value is the upper-case version of its name.\nSee https://biomejs.dev/linter/rules/no-shouty-constants",
|
|
12892
13094
|
"anyOf": [
|
|
@@ -12901,6 +13103,13 @@
|
|
|
12901
13103
|
{ "type": "null" }
|
|
12902
13104
|
]
|
|
12903
13105
|
},
|
|
13106
|
+
"noTernary": {
|
|
13107
|
+
"description": "Disallow ternary operators.\nSee https://biomejs.dev/linter/rules/no-ternary",
|
|
13108
|
+
"anyOf": [
|
|
13109
|
+
{ "$ref": "#/$defs/NoTernaryConfiguration" },
|
|
13110
|
+
{ "type": "null" }
|
|
13111
|
+
]
|
|
13112
|
+
},
|
|
12904
13113
|
"noUnusedTemplateLiteral": {
|
|
12905
13114
|
"description": "Disallow template literals if interpolation and special-character handling are not needed.\nSee https://biomejs.dev/linter/rules/no-unused-template-literal",
|
|
12906
13115
|
"anyOf": [
|
|
@@ -12922,6 +13131,13 @@
|
|
|
12922
13131
|
{ "type": "null" }
|
|
12923
13132
|
]
|
|
12924
13133
|
},
|
|
13134
|
+
"noVueOptionsApi": {
|
|
13135
|
+
"description": "Disallow the use of Vue Options API.\nSee https://biomejs.dev/linter/rules/no-vue-options-api",
|
|
13136
|
+
"anyOf": [
|
|
13137
|
+
{ "$ref": "#/$defs/NoVueOptionsApiConfiguration" },
|
|
13138
|
+
{ "type": "null" }
|
|
13139
|
+
]
|
|
13140
|
+
},
|
|
12925
13141
|
"noYodaExpression": {
|
|
12926
13142
|
"description": "Disallow the use of yoda expressions.\nSee https://biomejs.dev/linter/rules/no-yoda-expression",
|
|
12927
13143
|
"anyOf": [
|
|
@@ -12929,6 +13145,10 @@
|
|
|
12929
13145
|
{ "type": "null" }
|
|
12930
13146
|
]
|
|
12931
13147
|
},
|
|
13148
|
+
"preset": {
|
|
13149
|
+
"description": "Enables a particular rule preset",
|
|
13150
|
+
"anyOf": [{ "$ref": "#/$defs/PresetConfig" }, { "type": "null" }]
|
|
13151
|
+
},
|
|
12932
13152
|
"recommended": {
|
|
12933
13153
|
"description": "Enables the recommended rules for this group",
|
|
12934
13154
|
"type": ["boolean", "null"]
|
|
@@ -13012,6 +13232,20 @@
|
|
|
13012
13232
|
{ "type": "null" }
|
|
13013
13233
|
]
|
|
13014
13234
|
},
|
|
13235
|
+
"useConsistentEnumValueType": {
|
|
13236
|
+
"description": "Disallow enums from having both number and string members.\nSee https://biomejs.dev/linter/rules/use-consistent-enum-value-type",
|
|
13237
|
+
"anyOf": [
|
|
13238
|
+
{ "$ref": "#/$defs/UseConsistentEnumValueTypeConfiguration" },
|
|
13239
|
+
{ "type": "null" }
|
|
13240
|
+
]
|
|
13241
|
+
},
|
|
13242
|
+
"useConsistentGraphqlDescriptions": {
|
|
13243
|
+
"description": "Require all descriptions to follow the same style (either block or inline) to maintain consistency and improve readability across the schema.\nSee https://biomejs.dev/linter/rules/use-consistent-graphql-descriptions",
|
|
13244
|
+
"anyOf": [
|
|
13245
|
+
{ "$ref": "#/$defs/UseConsistentGraphqlDescriptionsConfiguration" },
|
|
13246
|
+
{ "type": "null" }
|
|
13247
|
+
]
|
|
13248
|
+
},
|
|
13015
13249
|
"useConsistentMemberAccessibility": {
|
|
13016
13250
|
"description": "Require consistent accessibility modifiers on class properties and methods.\nSee https://biomejs.dev/linter/rules/use-consistent-member-accessibility",
|
|
13017
13251
|
"anyOf": [
|
|
@@ -13019,8 +13253,15 @@
|
|
|
13019
13253
|
{ "type": "null" }
|
|
13020
13254
|
]
|
|
13021
13255
|
},
|
|
13256
|
+
"useConsistentMethodSignatures": {
|
|
13257
|
+
"description": "Enforce consistent use of either method signatures or function properties within interfaces and type aliases.\nSee https://biomejs.dev/linter/rules/use-consistent-method-signatures",
|
|
13258
|
+
"anyOf": [
|
|
13259
|
+
{ "$ref": "#/$defs/UseConsistentMethodSignaturesConfiguration" },
|
|
13260
|
+
{ "type": "null" }
|
|
13261
|
+
]
|
|
13262
|
+
},
|
|
13022
13263
|
"useConsistentObjectDefinitions": {
|
|
13023
|
-
"description": "Require the consistent declaration of object literals
|
|
13264
|
+
"description": "Require the consistent declaration of object literals.\nSee https://biomejs.dev/linter/rules/use-consistent-object-definitions",
|
|
13024
13265
|
"anyOf": [
|
|
13025
13266
|
{ "$ref": "#/$defs/UseConsistentObjectDefinitionsConfiguration" },
|
|
13026
13267
|
{ "type": "null" }
|
|
@@ -13061,6 +13302,13 @@
|
|
|
13061
13302
|
{ "type": "null" }
|
|
13062
13303
|
]
|
|
13063
13304
|
},
|
|
13305
|
+
"useDestructuring": {
|
|
13306
|
+
"description": "Require destructuring from arrays and/or objects.\nSee https://biomejs.dev/linter/rules/use-destructuring",
|
|
13307
|
+
"anyOf": [
|
|
13308
|
+
{ "$ref": "#/$defs/UseDestructuringConfiguration" },
|
|
13309
|
+
{ "type": "null" }
|
|
13310
|
+
]
|
|
13311
|
+
},
|
|
13064
13312
|
"useEnumInitializers": {
|
|
13065
13313
|
"description": "Require that each enum member value be explicitly initialized.\nSee https://biomejs.dev/linter/rules/use-enum-initializers",
|
|
13066
13314
|
"anyOf": [
|
|
@@ -13068,6 +13316,13 @@
|
|
|
13068
13316
|
{ "type": "null" }
|
|
13069
13317
|
]
|
|
13070
13318
|
},
|
|
13319
|
+
"useErrorCause": {
|
|
13320
|
+
"description": "Enforce that new Error() is thrown with the original error as cause.\nSee https://biomejs.dev/linter/rules/use-error-cause",
|
|
13321
|
+
"anyOf": [
|
|
13322
|
+
{ "$ref": "#/$defs/UseErrorCauseConfiguration" },
|
|
13323
|
+
{ "type": "null" }
|
|
13324
|
+
]
|
|
13325
|
+
},
|
|
13071
13326
|
"useExplicitLengthCheck": {
|
|
13072
13327
|
"description": "Enforce explicitly comparing the length, size, byteLength or byteOffset property of a value.\nSee https://biomejs.dev/linter/rules/use-explicit-length-check",
|
|
13073
13328
|
"anyOf": [
|
|
@@ -13117,6 +13372,13 @@
|
|
|
13117
13372
|
{ "type": "null" }
|
|
13118
13373
|
]
|
|
13119
13374
|
},
|
|
13375
|
+
"useGlobalThis": {
|
|
13376
|
+
"description": "Enforce the use of globalThis over window, self, and global.\nSee https://biomejs.dev/linter/rules/use-global-this",
|
|
13377
|
+
"anyOf": [
|
|
13378
|
+
{ "$ref": "#/$defs/UseGlobalThisConfiguration" },
|
|
13379
|
+
{ "type": "null" }
|
|
13380
|
+
]
|
|
13381
|
+
},
|
|
13120
13382
|
"useGraphqlNamingConvention": {
|
|
13121
13383
|
"description": "Validates that all enum values are capitalized.\nSee https://biomejs.dev/linter/rules/use-graphql-naming-convention",
|
|
13122
13384
|
"anyOf": [
|
|
@@ -13138,6 +13400,13 @@
|
|
|
13138
13400
|
{ "type": "null" }
|
|
13139
13401
|
]
|
|
13140
13402
|
},
|
|
13403
|
+
"useInputName": {
|
|
13404
|
+
"description": "Require mutation argument to be always called \"input\".\nSee https://biomejs.dev/linter/rules/use-input-name",
|
|
13405
|
+
"anyOf": [
|
|
13406
|
+
{ "$ref": "#/$defs/UseInputNameConfiguration" },
|
|
13407
|
+
{ "type": "null" }
|
|
13408
|
+
]
|
|
13409
|
+
},
|
|
13141
13410
|
"useLiteralEnumMembers": {
|
|
13142
13411
|
"description": "Require all enum members to be literal values.\nSee https://biomejs.dev/linter/rules/use-literal-enum-members",
|
|
13143
13412
|
"anyOf": [
|
|
@@ -13145,6 +13414,13 @@
|
|
|
13145
13414
|
{ "type": "null" }
|
|
13146
13415
|
]
|
|
13147
13416
|
},
|
|
13417
|
+
"useLoneExecutableDefinition": {
|
|
13418
|
+
"description": "Require queries, mutations, subscriptions or fragments each to be located in separate files.\nSee https://biomejs.dev/linter/rules/use-lone-executable-definition",
|
|
13419
|
+
"anyOf": [
|
|
13420
|
+
{ "$ref": "#/$defs/UseLoneExecutableDefinitionConfiguration" },
|
|
13421
|
+
{ "type": "null" }
|
|
13422
|
+
]
|
|
13423
|
+
},
|
|
13148
13424
|
"useNamingConvention": {
|
|
13149
13425
|
"description": "Enforce naming conventions for everything across a codebase.\nSee https://biomejs.dev/linter/rules/use-naming-convention",
|
|
13150
13426
|
"anyOf": [
|
|
@@ -13229,6 +13505,13 @@
|
|
|
13229
13505
|
{ "type": "null" }
|
|
13230
13506
|
]
|
|
13231
13507
|
},
|
|
13508
|
+
"useSpreadOverApply": {
|
|
13509
|
+
"description": "Enforce the use of the spread operator over .apply().\nSee https://biomejs.dev/linter/rules/use-spread-over-apply",
|
|
13510
|
+
"anyOf": [
|
|
13511
|
+
{ "$ref": "#/$defs/UseSpreadOverApplyConfiguration" },
|
|
13512
|
+
{ "type": "null" }
|
|
13513
|
+
]
|
|
13514
|
+
},
|
|
13232
13515
|
"useSymbolDescription": {
|
|
13233
13516
|
"description": "Require a description parameter for the Symbol().\nSee https://biomejs.dev/linter/rules/use-symbol-description",
|
|
13234
13517
|
"anyOf": [
|
|
@@ -13257,17 +13540,52 @@
|
|
|
13257
13540
|
{ "type": "null" }
|
|
13258
13541
|
]
|
|
13259
13542
|
},
|
|
13260
|
-
"useTrimStartEnd": {
|
|
13261
|
-
"description": "Enforce the use of String.trimStart() and String.trimEnd() over String.trimLeft() and String.trimRight().\nSee https://biomejs.dev/linter/rules/use-trim-start-end",
|
|
13543
|
+
"useTrimStartEnd": {
|
|
13544
|
+
"description": "Enforce the use of String.trimStart() and String.trimEnd() over String.trimLeft() and String.trimRight().\nSee https://biomejs.dev/linter/rules/use-trim-start-end",
|
|
13545
|
+
"anyOf": [
|
|
13546
|
+
{ "$ref": "#/$defs/UseTrimStartEndConfiguration" },
|
|
13547
|
+
{ "type": "null" }
|
|
13548
|
+
]
|
|
13549
|
+
},
|
|
13550
|
+
"useUnifiedTypeSignatures": {
|
|
13551
|
+
"description": "Disallow overload signatures that can be unified into a single signature.\nSee https://biomejs.dev/linter/rules/use-unified-type-signatures",
|
|
13552
|
+
"anyOf": [
|
|
13553
|
+
{ "$ref": "#/$defs/UseUnifiedTypeSignaturesConfiguration" },
|
|
13554
|
+
{ "type": "null" }
|
|
13555
|
+
]
|
|
13556
|
+
},
|
|
13557
|
+
"useVueConsistentVBindStyle": {
|
|
13558
|
+
"description": "Enforce a consistent style for v-bind in Vue templates.\nSee https://biomejs.dev/linter/rules/use-vue-consistent-v-bind-style",
|
|
13559
|
+
"anyOf": [
|
|
13560
|
+
{ "$ref": "#/$defs/UseVueConsistentVBindStyleConfiguration" },
|
|
13561
|
+
{ "type": "null" }
|
|
13562
|
+
]
|
|
13563
|
+
},
|
|
13564
|
+
"useVueConsistentVOnStyle": {
|
|
13565
|
+
"description": "Enforce a consistent style for v-on in Vue templates.\nSee https://biomejs.dev/linter/rules/use-vue-consistent-v-on-style",
|
|
13566
|
+
"anyOf": [
|
|
13567
|
+
{ "$ref": "#/$defs/UseVueConsistentVOnStyleConfiguration" },
|
|
13568
|
+
{ "type": "null" }
|
|
13569
|
+
]
|
|
13570
|
+
},
|
|
13571
|
+
"useVueDefineMacrosOrder": {
|
|
13572
|
+
"description": "Enforce specific order of Vue compiler macros.\nSee https://biomejs.dev/linter/rules/use-vue-define-macros-order",
|
|
13573
|
+
"anyOf": [
|
|
13574
|
+
{ "$ref": "#/$defs/UseVueDefineMacrosOrderConfiguration" },
|
|
13575
|
+
{ "type": "null" }
|
|
13576
|
+
]
|
|
13577
|
+
},
|
|
13578
|
+
"useVueHyphenatedAttributes": {
|
|
13579
|
+
"description": "Enforce hyphenated (kebab-case) attribute names in Vue templates.\nSee https://biomejs.dev/linter/rules/use-vue-hyphenated-attributes",
|
|
13262
13580
|
"anyOf": [
|
|
13263
|
-
{ "$ref": "#/$defs/
|
|
13581
|
+
{ "$ref": "#/$defs/UseVueHyphenatedAttributesConfiguration" },
|
|
13264
13582
|
{ "type": "null" }
|
|
13265
13583
|
]
|
|
13266
13584
|
},
|
|
13267
|
-
"
|
|
13268
|
-
"description": "
|
|
13585
|
+
"useVueMultiWordComponentNames": {
|
|
13586
|
+
"description": "Enforce multi-word component names in Vue components.\nSee https://biomejs.dev/linter/rules/use-vue-multi-word-component-names",
|
|
13269
13587
|
"anyOf": [
|
|
13270
|
-
{ "$ref": "#/$defs/
|
|
13588
|
+
{ "$ref": "#/$defs/UseVueMultiWordComponentNamesConfiguration" },
|
|
13271
13589
|
{ "type": "null" }
|
|
13272
13590
|
]
|
|
13273
13591
|
}
|
|
@@ -13411,6 +13729,13 @@
|
|
|
13411
13729
|
{ "type": "null" }
|
|
13412
13730
|
]
|
|
13413
13731
|
},
|
|
13732
|
+
"noDeprecatedMediaType": {
|
|
13733
|
+
"description": "Disallow deprecated media types.\nSee https://biomejs.dev/linter/rules/no-deprecated-media-type",
|
|
13734
|
+
"anyOf": [
|
|
13735
|
+
{ "$ref": "#/$defs/NoDeprecatedMediaTypeConfiguration" },
|
|
13736
|
+
{ "type": "null" }
|
|
13737
|
+
]
|
|
13738
|
+
},
|
|
13414
13739
|
"noDocumentCookie": {
|
|
13415
13740
|
"description": "Disallow direct assignments to document.cookie.\nSee https://biomejs.dev/linter/rules/no-document-cookie",
|
|
13416
13741
|
"anyOf": [
|
|
@@ -13474,6 +13799,13 @@
|
|
|
13474
13799
|
{ "type": "null" }
|
|
13475
13800
|
]
|
|
13476
13801
|
},
|
|
13802
|
+
"noDuplicateEnumValues": {
|
|
13803
|
+
"description": "Disallow duplicate enum member values.\nSee https://biomejs.dev/linter/rules/no-duplicate-enum-values",
|
|
13804
|
+
"anyOf": [
|
|
13805
|
+
{ "$ref": "#/$defs/NoDuplicateEnumValuesConfiguration" },
|
|
13806
|
+
{ "type": "null" }
|
|
13807
|
+
]
|
|
13808
|
+
},
|
|
13477
13809
|
"noDuplicateFields": {
|
|
13478
13810
|
"description": "No duplicated fields in GraphQL operations.\nSee https://biomejs.dev/linter/rules/no-duplicate-fields",
|
|
13479
13811
|
"anyOf": [
|
|
@@ -13488,6 +13820,13 @@
|
|
|
13488
13820
|
{ "type": "null" }
|
|
13489
13821
|
]
|
|
13490
13822
|
},
|
|
13823
|
+
"noDuplicateGraphqlOperationName": {
|
|
13824
|
+
"description": "Enforce unique operation names across a GraphQL document.\nSee https://biomejs.dev/linter/rules/no-duplicate-graphql-operation-name",
|
|
13825
|
+
"anyOf": [
|
|
13826
|
+
{ "$ref": "#/$defs/NoDuplicateGraphqlOperationNameConfiguration" },
|
|
13827
|
+
{ "type": "null" }
|
|
13828
|
+
]
|
|
13829
|
+
},
|
|
13491
13830
|
"noDuplicateJsxProps": {
|
|
13492
13831
|
"description": "Prevents JSX properties to be assigned multiple times.\nSee https://biomejs.dev/linter/rules/no-duplicate-jsx-props",
|
|
13493
13832
|
"anyOf": [
|
|
@@ -13532,6 +13871,13 @@
|
|
|
13532
13871
|
{ "type": "null" }
|
|
13533
13872
|
]
|
|
13534
13873
|
},
|
|
13874
|
+
"noDuplicatedSpreadProps": {
|
|
13875
|
+
"description": "Disallow JSX prop spreading the same identifier multiple times.\nSee https://biomejs.dev/linter/rules/no-duplicated-spread-props",
|
|
13876
|
+
"anyOf": [
|
|
13877
|
+
{ "$ref": "#/$defs/NoDuplicatedSpreadPropsConfiguration" },
|
|
13878
|
+
{ "type": "null" }
|
|
13879
|
+
]
|
|
13880
|
+
},
|
|
13535
13881
|
"noEmptyBlock": {
|
|
13536
13882
|
"description": "Disallow CSS empty blocks.\nSee https://biomejs.dev/linter/rules/no-empty-block",
|
|
13537
13883
|
"anyOf": [
|
|
@@ -13560,6 +13906,13 @@
|
|
|
13560
13906
|
{ "type": "null" }
|
|
13561
13907
|
]
|
|
13562
13908
|
},
|
|
13909
|
+
"noEqualsToNull": {
|
|
13910
|
+
"description": "Require the use of === or !== for comparison with null.\nSee https://biomejs.dev/linter/rules/no-equals-to-null",
|
|
13911
|
+
"anyOf": [
|
|
13912
|
+
{ "$ref": "#/$defs/NoEqualsToNullConfiguration" },
|
|
13913
|
+
{ "type": "null" }
|
|
13914
|
+
]
|
|
13915
|
+
},
|
|
13563
13916
|
"noEvolvingTypes": {
|
|
13564
13917
|
"description": "Disallow variables from evolving into any type through reassignments.\nSee https://biomejs.dev/linter/rules/no-evolving-types",
|
|
13565
13918
|
"anyOf": [
|
|
@@ -13602,6 +13955,13 @@
|
|
|
13602
13955
|
{ "type": "null" }
|
|
13603
13956
|
]
|
|
13604
13957
|
},
|
|
13958
|
+
"noForIn": {
|
|
13959
|
+
"description": "Disallow iterating using a for-in loop.\nSee https://biomejs.dev/linter/rules/no-for-in",
|
|
13960
|
+
"anyOf": [
|
|
13961
|
+
{ "$ref": "#/$defs/NoForInConfiguration" },
|
|
13962
|
+
{ "type": "null" }
|
|
13963
|
+
]
|
|
13964
|
+
},
|
|
13605
13965
|
"noFunctionAssign": {
|
|
13606
13966
|
"description": "Disallow reassigning function declarations.\nSee https://biomejs.dev/linter/rules/no-function-assign",
|
|
13607
13967
|
"anyOf": [
|
|
@@ -13679,6 +14039,13 @@
|
|
|
13679
14039
|
{ "type": "null" }
|
|
13680
14040
|
]
|
|
13681
14041
|
},
|
|
14042
|
+
"noLeakedRender": {
|
|
14043
|
+
"description": "Prevent problematic leaked values from being rendered.\nSee https://biomejs.dev/linter/rules/no-leaked-render",
|
|
14044
|
+
"anyOf": [
|
|
14045
|
+
{ "$ref": "#/$defs/NoLeakedRenderConfiguration" },
|
|
14046
|
+
{ "type": "null" }
|
|
14047
|
+
]
|
|
14048
|
+
},
|
|
13682
14049
|
"noMisleadingCharacterClass": {
|
|
13683
14050
|
"description": "Disallow characters made with multiple code points in character class syntax.\nSee https://biomejs.dev/linter/rules/no-misleading-character-class",
|
|
13684
14051
|
"anyOf": [
|
|
@@ -13707,6 +14074,13 @@
|
|
|
13707
14074
|
{ "type": "null" }
|
|
13708
14075
|
]
|
|
13709
14076
|
},
|
|
14077
|
+
"noNestedPromises": {
|
|
14078
|
+
"description": "Disallow nested .then() or .catch() promise calls.\nSee https://biomejs.dev/linter/rules/no-nested-promises",
|
|
14079
|
+
"anyOf": [
|
|
14080
|
+
{ "$ref": "#/$defs/NoNestedPromisesConfiguration" },
|
|
14081
|
+
{ "type": "null" }
|
|
14082
|
+
]
|
|
14083
|
+
},
|
|
13710
14084
|
"noNonNullAssertedOptionalChain": {
|
|
13711
14085
|
"description": "Disallow non-null assertions after optional chaining expressions.\nSee https://biomejs.dev/linter/rules/no-non-null-asserted-optional-chain",
|
|
13712
14086
|
"anyOf": [
|
|
@@ -13721,6 +14095,20 @@
|
|
|
13721
14095
|
{ "type": "null" }
|
|
13722
14096
|
]
|
|
13723
14097
|
},
|
|
14098
|
+
"noParametersOnlyUsedInRecursion": {
|
|
14099
|
+
"description": "Disallow function parameters that are only used in recursive calls.\nSee https://biomejs.dev/linter/rules/no-parameters-only-used-in-recursion",
|
|
14100
|
+
"anyOf": [
|
|
14101
|
+
{ "$ref": "#/$defs/NoParametersOnlyUsedInRecursionConfiguration" },
|
|
14102
|
+
{ "type": "null" }
|
|
14103
|
+
]
|
|
14104
|
+
},
|
|
14105
|
+
"noProto": {
|
|
14106
|
+
"description": "Disallow the use of the deprecated __proto__ object property.\nSee https://biomejs.dev/linter/rules/no-proto",
|
|
14107
|
+
"anyOf": [
|
|
14108
|
+
{ "$ref": "#/$defs/NoProtoConfiguration" },
|
|
14109
|
+
{ "type": "null" }
|
|
14110
|
+
]
|
|
14111
|
+
},
|
|
13724
14112
|
"noPrototypeBuiltins": {
|
|
13725
14113
|
"description": "Disallow direct use of Object.prototype builtins.\nSee https://biomejs.dev/linter/rules/no-prototype-builtins",
|
|
13726
14114
|
"anyOf": [
|
|
@@ -13763,6 +14151,13 @@
|
|
|
13763
14151
|
{ "type": "null" }
|
|
13764
14152
|
]
|
|
13765
14153
|
},
|
|
14154
|
+
"noReturnAssign": {
|
|
14155
|
+
"description": "Disallow assignments in return statements.\nSee https://biomejs.dev/linter/rules/no-return-assign",
|
|
14156
|
+
"anyOf": [
|
|
14157
|
+
{ "$ref": "#/$defs/NoReturnAssignConfiguration" },
|
|
14158
|
+
{ "type": "null" }
|
|
14159
|
+
]
|
|
14160
|
+
},
|
|
13766
14161
|
"noSelfCompare": {
|
|
13767
14162
|
"description": "Disallow comparisons where both sides are exactly the same.\nSee https://biomejs.dev/linter/rules/no-self-compare",
|
|
13768
14163
|
"anyOf": [
|
|
@@ -13770,6 +14165,13 @@
|
|
|
13770
14165
|
{ "type": "null" }
|
|
13771
14166
|
]
|
|
13772
14167
|
},
|
|
14168
|
+
"noShadow": {
|
|
14169
|
+
"description": "Disallow variable declarations from shadowing variables declared in the outer scope.\nSee https://biomejs.dev/linter/rules/no-shadow",
|
|
14170
|
+
"anyOf": [
|
|
14171
|
+
{ "$ref": "#/$defs/NoShadowConfiguration" },
|
|
14172
|
+
{ "type": "null" }
|
|
14173
|
+
]
|
|
14174
|
+
},
|
|
13773
14175
|
"noShadowRestrictedNames": {
|
|
13774
14176
|
"description": "Disallow identifiers from shadowing restricted names.\nSee https://biomejs.dev/linter/rules/no-shadow-restricted-names",
|
|
13775
14177
|
"anyOf": [
|
|
@@ -13833,6 +14235,13 @@
|
|
|
13833
14235
|
{ "type": "null" }
|
|
13834
14236
|
]
|
|
13835
14237
|
},
|
|
14238
|
+
"noUndeclaredEnvVars": {
|
|
14239
|
+
"description": "Disallow the use of undeclared environment variables.\nSee https://biomejs.dev/linter/rules/no-undeclared-env-vars",
|
|
14240
|
+
"anyOf": [
|
|
14241
|
+
{ "$ref": "#/$defs/NoUndeclaredEnvVarsConfiguration" },
|
|
14242
|
+
{ "type": "null" }
|
|
14243
|
+
]
|
|
14244
|
+
},
|
|
13836
14245
|
"noUnknownAtRules": {
|
|
13837
14246
|
"description": "Disallow unknown at-rules.\nSee https://biomejs.dev/linter/rules/no-unknown-at-rules",
|
|
13838
14247
|
"anyOf": [
|
|
@@ -13840,6 +14249,20 @@
|
|
|
13840
14249
|
{ "type": "null" }
|
|
13841
14250
|
]
|
|
13842
14251
|
},
|
|
14252
|
+
"noUnknownAttribute": {
|
|
14253
|
+
"description": "Disallow unknown DOM properties.\nSee https://biomejs.dev/linter/rules/no-unknown-attribute",
|
|
14254
|
+
"anyOf": [
|
|
14255
|
+
{ "$ref": "#/$defs/NoUnknownAttributeConfiguration" },
|
|
14256
|
+
{ "type": "null" }
|
|
14257
|
+
]
|
|
14258
|
+
},
|
|
14259
|
+
"noUnnecessaryConditions": {
|
|
14260
|
+
"description": "Disallow conditions that always evaluate to the same value.\nSee https://biomejs.dev/linter/rules/no-unnecessary-conditions",
|
|
14261
|
+
"anyOf": [
|
|
14262
|
+
{ "$ref": "#/$defs/NoUnnecessaryConditionsConfiguration" },
|
|
14263
|
+
{ "type": "null" }
|
|
14264
|
+
]
|
|
14265
|
+
},
|
|
13843
14266
|
"noUnsafeDeclarationMerging": {
|
|
13844
14267
|
"description": "Disallow unsafe declaration merging between interfaces and classes.\nSee https://biomejs.dev/linter/rules/no-unsafe-declaration-merging",
|
|
13845
14268
|
"anyOf": [
|
|
@@ -13882,6 +14305,13 @@
|
|
|
13882
14305
|
{ "type": "null" }
|
|
13883
14306
|
]
|
|
13884
14307
|
},
|
|
14308
|
+
"noVueArrowFuncInWatch": {
|
|
14309
|
+
"description": "Disallows using arrow functions when defining a watcher.\nSee https://biomejs.dev/linter/rules/no-vue-arrow-func-in-watch",
|
|
14310
|
+
"anyOf": [
|
|
14311
|
+
{ "$ref": "#/$defs/NoVueArrowFuncInWatchConfiguration" },
|
|
14312
|
+
{ "type": "null" }
|
|
14313
|
+
]
|
|
14314
|
+
},
|
|
13885
14315
|
"noWith": {
|
|
13886
14316
|
"description": "Disallow with statements in non-strict contexts.\nSee https://biomejs.dev/linter/rules/no-with",
|
|
13887
14317
|
"anyOf": [
|
|
@@ -13889,6 +14319,10 @@
|
|
|
13889
14319
|
{ "type": "null" }
|
|
13890
14320
|
]
|
|
13891
14321
|
},
|
|
14322
|
+
"preset": {
|
|
14323
|
+
"description": "Enables a particular rule preset",
|
|
14324
|
+
"anyOf": [{ "$ref": "#/$defs/PresetConfig" }, { "type": "null" }]
|
|
14325
|
+
},
|
|
13892
14326
|
"recommended": {
|
|
13893
14327
|
"description": "Enables the recommended rules for this group",
|
|
13894
14328
|
"type": ["boolean", "null"]
|
|
@@ -13900,6 +14334,13 @@
|
|
|
13900
14334
|
{ "type": "null" }
|
|
13901
14335
|
]
|
|
13902
14336
|
},
|
|
14337
|
+
"useArraySortCompare": {
|
|
14338
|
+
"description": "Require Array#sort and Array#toSorted calls to always provide a compareFunction.\nSee https://biomejs.dev/linter/rules/use-array-sort-compare",
|
|
14339
|
+
"anyOf": [
|
|
14340
|
+
{ "$ref": "#/$defs/UseArraySortCompareConfiguration" },
|
|
14341
|
+
{ "type": "null" }
|
|
14342
|
+
]
|
|
14343
|
+
},
|
|
13903
14344
|
"useAwait": {
|
|
13904
14345
|
"description": "Ensure async functions utilize await.\nSee https://biomejs.dev/linter/rules/use-await",
|
|
13905
14346
|
"anyOf": [
|
|
@@ -13984,6 +14425,13 @@
|
|
|
13984
14425
|
{ "type": "null" }
|
|
13985
14426
|
]
|
|
13986
14427
|
},
|
|
14428
|
+
"useRequiredScripts": {
|
|
14429
|
+
"description": "Enforce the presence of required scripts in package.json.\nSee https://biomejs.dev/linter/rules/use-required-scripts",
|
|
14430
|
+
"anyOf": [
|
|
14431
|
+
{ "$ref": "#/$defs/UseRequiredScriptsConfiguration" },
|
|
14432
|
+
{ "type": "null" }
|
|
14433
|
+
]
|
|
14434
|
+
},
|
|
13987
14435
|
"useStaticResponseMethods": {
|
|
13988
14436
|
"description": "Use static Response methods instead of new Response() constructor when possible.\nSee https://biomejs.dev/linter/rules/use-static-response-methods",
|
|
13989
14437
|
"anyOf": [
|
|
@@ -14074,6 +14522,13 @@
|
|
|
14074
14522
|
"type": "object",
|
|
14075
14523
|
"additionalProperties": false
|
|
14076
14524
|
},
|
|
14525
|
+
"UseArrayFindConfiguration": {
|
|
14526
|
+
"oneOf": [
|
|
14527
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
14528
|
+
{ "$ref": "#/$defs/RuleWithUseArrayFindOptions" }
|
|
14529
|
+
]
|
|
14530
|
+
},
|
|
14531
|
+
"UseArrayFindOptions": { "type": "object", "additionalProperties": false },
|
|
14077
14532
|
"UseArrayLiteralsConfiguration": {
|
|
14078
14533
|
"oneOf": [
|
|
14079
14534
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -14547,6 +15002,20 @@
|
|
|
14547
15002
|
},
|
|
14548
15003
|
"UseDestructuringOptions": {
|
|
14549
15004
|
"type": "object",
|
|
15005
|
+
"properties": {
|
|
15006
|
+
"assignmentExpression": {
|
|
15007
|
+
"anyOf": [
|
|
15008
|
+
{ "$ref": "#/$defs/DestructuringConfig" },
|
|
15009
|
+
{ "type": "null" }
|
|
15010
|
+
]
|
|
15011
|
+
},
|
|
15012
|
+
"variableDeclarator": {
|
|
15013
|
+
"anyOf": [
|
|
15014
|
+
{ "$ref": "#/$defs/DestructuringConfig" },
|
|
15015
|
+
{ "type": "null" }
|
|
15016
|
+
]
|
|
15017
|
+
}
|
|
15018
|
+
},
|
|
14550
15019
|
"additionalProperties": false
|
|
14551
15020
|
},
|
|
14552
15021
|
"UseDisposablesConfiguration": {
|
|
@@ -14721,7 +15190,24 @@
|
|
|
14721
15190
|
{ "$ref": "#/$defs/RuleWithUseExportTypeOptions" }
|
|
14722
15191
|
]
|
|
14723
15192
|
},
|
|
14724
|
-
"UseExportTypeOptions": {
|
|
15193
|
+
"UseExportTypeOptions": {
|
|
15194
|
+
"type": "object",
|
|
15195
|
+
"properties": {
|
|
15196
|
+
"style": {
|
|
15197
|
+
"description": "The style to apply when exporting types. Default to \"auto\".",
|
|
15198
|
+
"anyOf": [
|
|
15199
|
+
{ "$ref": "#/$defs/UseExportTypeStyle" },
|
|
15200
|
+
{ "type": "null" }
|
|
15201
|
+
]
|
|
15202
|
+
}
|
|
15203
|
+
},
|
|
15204
|
+
"additionalProperties": false
|
|
15205
|
+
},
|
|
15206
|
+
"UseExportTypeStyle": {
|
|
15207
|
+
"description": "The style to apply when exporting types.",
|
|
15208
|
+
"type": "string",
|
|
15209
|
+
"enum": ["auto", "inlineType", "separatedType"]
|
|
15210
|
+
},
|
|
14725
15211
|
"UseExportsLastConfiguration": {
|
|
14726
15212
|
"oneOf": [
|
|
14727
15213
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -14760,13 +15246,6 @@
|
|
|
14760
15246
|
},
|
|
14761
15247
|
"additionalProperties": false
|
|
14762
15248
|
},
|
|
14763
|
-
"UseFindConfiguration": {
|
|
14764
|
-
"oneOf": [
|
|
14765
|
-
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
14766
|
-
{ "$ref": "#/$defs/RuleWithUseFindOptions" }
|
|
14767
|
-
]
|
|
14768
|
-
},
|
|
14769
|
-
"UseFindOptions": { "type": "object", "additionalProperties": false },
|
|
14770
15249
|
"UseFlatMapConfiguration": {
|
|
14771
15250
|
"oneOf": [
|
|
14772
15251
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -14978,7 +15457,7 @@
|
|
|
14978
15457
|
"type": "object",
|
|
14979
15458
|
"properties": {
|
|
14980
15459
|
"style": {
|
|
14981
|
-
"description": "The style to apply when
|
|
15460
|
+
"description": "The style to apply when importing types. Default to \"auto\".",
|
|
14982
15461
|
"anyOf": [
|
|
14983
15462
|
{ "$ref": "#/$defs/UseImportTypeStyle" },
|
|
14984
15463
|
{ "type": "null" }
|
|
@@ -15002,6 +15481,17 @@
|
|
|
15002
15481
|
"type": "object",
|
|
15003
15482
|
"additionalProperties": false
|
|
15004
15483
|
},
|
|
15484
|
+
"UseIncludesConfiguration": {
|
|
15485
|
+
"oneOf": [
|
|
15486
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
15487
|
+
{ "$ref": "#/$defs/RuleWithUseIncludesOptions" }
|
|
15488
|
+
]
|
|
15489
|
+
},
|
|
15490
|
+
"UseIncludesOptions": {
|
|
15491
|
+
"description": "Options for the `useIncludes` rule.",
|
|
15492
|
+
"type": "object",
|
|
15493
|
+
"additionalProperties": false
|
|
15494
|
+
},
|
|
15005
15495
|
"UseIndexOfConfiguration": {
|
|
15006
15496
|
"oneOf": [
|
|
15007
15497
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -15058,6 +15548,10 @@
|
|
|
15058
15548
|
"UseIterableCallbackReturnOptions": {
|
|
15059
15549
|
"type": "object",
|
|
15060
15550
|
"properties": {
|
|
15551
|
+
"allowImplicit": {
|
|
15552
|
+
"description": "When `true`, allows callbacks in methods that require a return value\n(e.g. `map`, `filter`) to implicitly return `undefined` via `return;`.",
|
|
15553
|
+
"type": ["boolean", "null"]
|
|
15554
|
+
},
|
|
15061
15555
|
"checkForEach": {
|
|
15062
15556
|
"description": "When `true`, the rule reports `forEach` callbacks that return a value (default behaviour).\nWhen `false` or unset, such callbacks are ignored.",
|
|
15063
15557
|
"type": ["boolean", "null"]
|
|
@@ -15260,17 +15754,20 @@
|
|
|
15260
15754
|
]
|
|
15261
15755
|
},
|
|
15262
15756
|
"UseNullishCoalescingOptions": {
|
|
15757
|
+
"description": "Options for the `useNullishCoalescing` rule.",
|
|
15263
15758
|
"type": "object",
|
|
15264
15759
|
"properties": {
|
|
15265
15760
|
"ignoreConditionalTests": {
|
|
15266
|
-
"description": "
|
|
15267
|
-
"type": ["boolean", "null"]
|
|
15268
|
-
|
|
15761
|
+
"description": "Ignore `||` expressions in conditional test positions (default: `true`).",
|
|
15762
|
+
"type": ["boolean", "null"]
|
|
15763
|
+
},
|
|
15764
|
+
"ignoreMixedLogicalExpressions": {
|
|
15765
|
+
"description": "Whether to ignore `||` and `||=` binary operations that are part of a mixed logical expression with `&&` (default: `false`).",
|
|
15766
|
+
"type": ["boolean", "null"]
|
|
15269
15767
|
},
|
|
15270
15768
|
"ignoreTernaryTests": {
|
|
15271
|
-
"description": "
|
|
15272
|
-
"type": ["boolean", "null"]
|
|
15273
|
-
"default": null
|
|
15769
|
+
"description": "Ignore ternary expressions that check for `null` or `undefined` (default: `false`).",
|
|
15770
|
+
"type": ["boolean", "null"]
|
|
15274
15771
|
}
|
|
15275
15772
|
},
|
|
15276
15773
|
"additionalProperties": false
|
|
@@ -15313,6 +15810,36 @@
|
|
|
15313
15810
|
},
|
|
15314
15811
|
"UseNumericSeparatorsOptions": {
|
|
15315
15812
|
"type": "object",
|
|
15813
|
+
"properties": {
|
|
15814
|
+
"binary": {
|
|
15815
|
+
"description": "Options for binary literals (e.g., `0b1010_0001`).",
|
|
15816
|
+
"anyOf": [
|
|
15817
|
+
{ "$ref": "#/$defs/NumericLiteralSeparatorOptions" },
|
|
15818
|
+
{ "type": "null" }
|
|
15819
|
+
]
|
|
15820
|
+
},
|
|
15821
|
+
"decimal": {
|
|
15822
|
+
"description": "Options for decimal literals (e.g., `1_234_567`).",
|
|
15823
|
+
"anyOf": [
|
|
15824
|
+
{ "$ref": "#/$defs/NumericLiteralSeparatorOptions" },
|
|
15825
|
+
{ "type": "null" }
|
|
15826
|
+
]
|
|
15827
|
+
},
|
|
15828
|
+
"hexadecimal": {
|
|
15829
|
+
"description": "Options for hexadecimal literals (e.g., `0xAB_CD`).",
|
|
15830
|
+
"anyOf": [
|
|
15831
|
+
{ "$ref": "#/$defs/NumericLiteralSeparatorOptions" },
|
|
15832
|
+
{ "type": "null" }
|
|
15833
|
+
]
|
|
15834
|
+
},
|
|
15835
|
+
"octal": {
|
|
15836
|
+
"description": "Options for octal literals (e.g., `0o1234_5670`).",
|
|
15837
|
+
"anyOf": [
|
|
15838
|
+
{ "$ref": "#/$defs/NumericLiteralSeparatorOptions" },
|
|
15839
|
+
{ "type": "null" }
|
|
15840
|
+
]
|
|
15841
|
+
}
|
|
15842
|
+
},
|
|
15316
15843
|
"additionalProperties": false
|
|
15317
15844
|
},
|
|
15318
15845
|
"UseObjectSpreadConfiguration": {
|
|
@@ -15405,6 +15932,25 @@
|
|
|
15405
15932
|
"type": "object",
|
|
15406
15933
|
"additionalProperties": false
|
|
15407
15934
|
},
|
|
15935
|
+
"UseReactFunctionComponentDefinitionConfiguration": {
|
|
15936
|
+
"oneOf": [
|
|
15937
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
15938
|
+
{ "$ref": "#/$defs/RuleWithUseReactFunctionComponentDefinitionOptions" }
|
|
15939
|
+
]
|
|
15940
|
+
},
|
|
15941
|
+
"UseReactFunctionComponentDefinitionOptions": {
|
|
15942
|
+
"type": "object",
|
|
15943
|
+
"properties": {
|
|
15944
|
+
"namedComponents": {
|
|
15945
|
+
"description": "The function style to enforce for named React components.",
|
|
15946
|
+
"anyOf": [
|
|
15947
|
+
{ "$ref": "#/$defs/ComponentDefinitionStyle" },
|
|
15948
|
+
{ "type": "null" }
|
|
15949
|
+
]
|
|
15950
|
+
}
|
|
15951
|
+
},
|
|
15952
|
+
"additionalProperties": false
|
|
15953
|
+
},
|
|
15408
15954
|
"UseReactFunctionComponentsConfiguration": {
|
|
15409
15955
|
"oneOf": [
|
|
15410
15956
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -15643,6 +16189,16 @@
|
|
|
15643
16189
|
},
|
|
15644
16190
|
"additionalProperties": false
|
|
15645
16191
|
},
|
|
16192
|
+
"UseSortedEnumMembersConfiguration": {
|
|
16193
|
+
"oneOf": [
|
|
16194
|
+
{ "$ref": "#/$defs/RuleAssistPlainConfiguration" },
|
|
16195
|
+
{ "$ref": "#/$defs/RuleAssistWithUseSortedEnumMembersOptions" }
|
|
16196
|
+
]
|
|
16197
|
+
},
|
|
16198
|
+
"UseSortedEnumMembersOptions": {
|
|
16199
|
+
"type": "object",
|
|
16200
|
+
"additionalProperties": false
|
|
16201
|
+
},
|
|
15646
16202
|
"UseSortedInterfaceMembersConfiguration": {
|
|
15647
16203
|
"oneOf": [
|
|
15648
16204
|
{ "$ref": "#/$defs/RuleAssistPlainConfiguration" },
|
|
@@ -15672,6 +16228,16 @@
|
|
|
15672
16228
|
},
|
|
15673
16229
|
"additionalProperties": false
|
|
15674
16230
|
},
|
|
16231
|
+
"UseSortedPackageJsonConfiguration": {
|
|
16232
|
+
"oneOf": [
|
|
16233
|
+
{ "$ref": "#/$defs/RuleAssistPlainConfiguration" },
|
|
16234
|
+
{ "$ref": "#/$defs/RuleAssistWithUseSortedPackageJsonOptions" }
|
|
16235
|
+
]
|
|
16236
|
+
},
|
|
16237
|
+
"UseSortedPackageJsonOptions": {
|
|
16238
|
+
"type": "object",
|
|
16239
|
+
"additionalProperties": false
|
|
16240
|
+
},
|
|
15675
16241
|
"UseSortedPropertiesConfiguration": {
|
|
15676
16242
|
"oneOf": [
|
|
15677
16243
|
{ "$ref": "#/$defs/RuleAssistPlainConfiguration" },
|
|
@@ -15682,13 +16248,36 @@
|
|
|
15682
16248
|
"type": "object",
|
|
15683
16249
|
"additionalProperties": false
|
|
15684
16250
|
},
|
|
15685
|
-
"
|
|
16251
|
+
"UseSortedSelectionSetConfiguration": {
|
|
16252
|
+
"oneOf": [
|
|
16253
|
+
{ "$ref": "#/$defs/RuleAssistPlainConfiguration" },
|
|
16254
|
+
{ "$ref": "#/$defs/RuleAssistWithUseSortedSelectionSetOptions" }
|
|
16255
|
+
]
|
|
16256
|
+
},
|
|
16257
|
+
"UseSortedSelectionSetOptions": {
|
|
16258
|
+
"type": "object",
|
|
16259
|
+
"additionalProperties": false
|
|
16260
|
+
},
|
|
16261
|
+
"UseSortedTypeFieldsConfiguration": {
|
|
16262
|
+
"oneOf": [
|
|
16263
|
+
{ "$ref": "#/$defs/RuleAssistPlainConfiguration" },
|
|
16264
|
+
{ "$ref": "#/$defs/RuleAssistWithUseSortedTypeFieldsOptions" }
|
|
16265
|
+
]
|
|
16266
|
+
},
|
|
16267
|
+
"UseSortedTypeFieldsOptions": {
|
|
16268
|
+
"type": "object",
|
|
16269
|
+
"additionalProperties": false
|
|
16270
|
+
},
|
|
16271
|
+
"UseSpreadOverApplyConfiguration": {
|
|
15686
16272
|
"oneOf": [
|
|
15687
16273
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
15688
|
-
{ "$ref": "#/$defs/
|
|
16274
|
+
{ "$ref": "#/$defs/RuleWithUseSpreadOverApplyOptions" }
|
|
15689
16275
|
]
|
|
15690
16276
|
},
|
|
15691
|
-
"
|
|
16277
|
+
"UseSpreadOverApplyOptions": {
|
|
16278
|
+
"type": "object",
|
|
16279
|
+
"additionalProperties": false
|
|
16280
|
+
},
|
|
15692
16281
|
"UseStaticResponseMethodsConfiguration": {
|
|
15693
16282
|
"oneOf": [
|
|
15694
16283
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -15716,6 +16305,16 @@
|
|
|
15716
16305
|
"type": "object",
|
|
15717
16306
|
"additionalProperties": false
|
|
15718
16307
|
},
|
|
16308
|
+
"UseSvelteRequireEachKeyConfiguration": {
|
|
16309
|
+
"oneOf": [
|
|
16310
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
16311
|
+
{ "$ref": "#/$defs/RuleWithUseSvelteRequireEachKeyOptions" }
|
|
16312
|
+
]
|
|
16313
|
+
},
|
|
16314
|
+
"UseSvelteRequireEachKeyOptions": {
|
|
16315
|
+
"type": "object",
|
|
16316
|
+
"additionalProperties": false
|
|
16317
|
+
},
|
|
15719
16318
|
"UseSymbolDescriptionConfiguration": {
|
|
15720
16319
|
"oneOf": [
|
|
15721
16320
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -16280,7 +16879,7 @@
|
|
|
16280
16879
|
"type": ["string", "null"]
|
|
16281
16880
|
},
|
|
16282
16881
|
"useIgnoreFile": {
|
|
16283
|
-
"description": "Whether Biome should use
|
|
16882
|
+
"description": "Whether Biome should use VCS ignore files. When [true], Biome will ignore files\nspecified in `.gitignore`, `.ignore`, and Git's local exclude file.",
|
|
16284
16883
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
16285
16884
|
}
|
|
16286
16885
|
},
|