@biomejs/biome 1.2.2 → 1.3.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/bin/biome +4 -1
- package/configuration_schema.json +294 -41
- package/package.json +1 -1
package/bin/biome
CHANGED
|
@@ -15,8 +15,11 @@ const PLATFORMS = {
|
|
|
15
15
|
arm64: "@biomejs/cli-linux-arm64/biome",
|
|
16
16
|
},
|
|
17
17
|
};
|
|
18
|
+
if (env.ROME_BINARY) {
|
|
19
|
+
console.warn(`[WARN] The environment variable "ROME_BINARY" is deprecated. Use "BIOME_BINARY" instead.`)
|
|
20
|
+
}
|
|
18
21
|
|
|
19
|
-
const binPath = env.ROME_BINARY || PLATFORMS?.[platform]?.[arch];
|
|
22
|
+
const binPath = env.BIOME_BINARY || env.ROME_BINARY || PLATFORMS?.[platform]?.[arch];
|
|
20
23
|
if (binPath) {
|
|
21
24
|
const packageManager = detectPackageManager();
|
|
22
25
|
const result = require("child_process").spawnSync(
|
|
@@ -51,6 +51,10 @@
|
|
|
51
51
|
"description": "The configuration of the import sorting",
|
|
52
52
|
"anyOf": [{ "$ref": "#/definitions/OrganizeImports" }, { "type": "null" }]
|
|
53
53
|
},
|
|
54
|
+
"overrides": {
|
|
55
|
+
"description": "A list of granular patterns that should be applied only to a sub set of files",
|
|
56
|
+
"anyOf": [{ "$ref": "#/definitions/Overrides" }, { "type": "null" }]
|
|
57
|
+
},
|
|
54
58
|
"vcs": {
|
|
55
59
|
"description": "The configuration of the VCS integration",
|
|
56
60
|
"anyOf": [
|
|
@@ -273,6 +277,13 @@
|
|
|
273
277
|
{ "type": "null" }
|
|
274
278
|
]
|
|
275
279
|
},
|
|
280
|
+
"noExcessiveCognitiveComplexity": {
|
|
281
|
+
"description": "Disallow functions that exceed a given Cognitive Complexity score.",
|
|
282
|
+
"anyOf": [
|
|
283
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
284
|
+
{ "type": "null" }
|
|
285
|
+
]
|
|
286
|
+
},
|
|
276
287
|
"noExtraBooleanCast": {
|
|
277
288
|
"description": "Disallow unnecessary boolean casts",
|
|
278
289
|
"anyOf": [
|
|
@@ -288,7 +299,7 @@
|
|
|
288
299
|
]
|
|
289
300
|
},
|
|
290
301
|
"noMultipleSpacesInRegularExpressionLiterals": {
|
|
291
|
-
"description": "Disallow unclear usage of
|
|
302
|
+
"description": "Disallow unclear usage of consecutive space characters in regular expression literals",
|
|
292
303
|
"anyOf": [
|
|
293
304
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
294
305
|
{ "type": "null" }
|
|
@@ -364,6 +375,13 @@
|
|
|
364
375
|
{ "type": "null" }
|
|
365
376
|
]
|
|
366
377
|
},
|
|
378
|
+
"noVoid": {
|
|
379
|
+
"description": "Disallow the use of void operators, which is not a familiar operator.",
|
|
380
|
+
"anyOf": [
|
|
381
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
382
|
+
{ "type": "null" }
|
|
383
|
+
]
|
|
384
|
+
},
|
|
367
385
|
"noWith": {
|
|
368
386
|
"description": "Disallow with statements in non-strict contexts.",
|
|
369
387
|
"anyOf": [
|
|
@@ -413,7 +431,7 @@
|
|
|
413
431
|
}
|
|
414
432
|
},
|
|
415
433
|
"ComplexityOptions": {
|
|
416
|
-
"description": "Options for the rule `
|
|
434
|
+
"description": "Options for the rule `noExcessiveCognitiveComplexity`.",
|
|
417
435
|
"type": "object",
|
|
418
436
|
"required": ["maxAllowedComplexity"],
|
|
419
437
|
"properties": {
|
|
@@ -568,7 +586,7 @@
|
|
|
568
586
|
]
|
|
569
587
|
},
|
|
570
588
|
"noUnreachableSuper": {
|
|
571
|
-
"description": "Ensures the super() constructor is called exactly once on every code
|
|
589
|
+
"description": "Ensures the super() constructor is called exactly once on every code path in a class constructor before this is accessed if the class has a superclass",
|
|
572
590
|
"anyOf": [
|
|
573
591
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
574
592
|
{ "type": "null" }
|
|
@@ -620,6 +638,20 @@
|
|
|
620
638
|
"description": "It enables the recommended rules for this group",
|
|
621
639
|
"type": ["boolean", "null"]
|
|
622
640
|
},
|
|
641
|
+
"useExhaustiveDependencies": {
|
|
642
|
+
"description": "Enforce all dependencies are correctly specified in a React hook.",
|
|
643
|
+
"anyOf": [
|
|
644
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
645
|
+
{ "type": "null" }
|
|
646
|
+
]
|
|
647
|
+
},
|
|
648
|
+
"useHookAtTopLevel": {
|
|
649
|
+
"description": "Enforce that all React hooks are being called from the Top Level component functions.",
|
|
650
|
+
"anyOf": [
|
|
651
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
652
|
+
{ "type": "null" }
|
|
653
|
+
]
|
|
654
|
+
},
|
|
623
655
|
"useIsNan": {
|
|
624
656
|
"description": "Require calls to isNaN() when checking for NaN.",
|
|
625
657
|
"anyOf": [
|
|
@@ -664,13 +696,17 @@
|
|
|
664
696
|
"type": "object",
|
|
665
697
|
"properties": {
|
|
666
698
|
"ignore": {
|
|
667
|
-
"description": "A list of Unix shell style patterns. Biome
|
|
699
|
+
"description": "A list of Unix shell style patterns. Biome will ignore files/folders that will match these patterns.",
|
|
668
700
|
"anyOf": [{ "$ref": "#/definitions/StringSet" }, { "type": "null" }]
|
|
669
701
|
},
|
|
670
702
|
"ignoreUnknown": {
|
|
671
703
|
"description": "Tells Biome to not emit diagnostics when handling files that doesn't know",
|
|
672
704
|
"type": ["boolean", "null"]
|
|
673
705
|
},
|
|
706
|
+
"include": {
|
|
707
|
+
"description": "A list of Unix shell style patterns. Biome will handle only those files/folders that will match these patterns.",
|
|
708
|
+
"anyOf": [{ "$ref": "#/definitions/StringSet" }, { "type": "null" }]
|
|
709
|
+
},
|
|
674
710
|
"maxSize": {
|
|
675
711
|
"description": "The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB",
|
|
676
712
|
"default": null,
|
|
@@ -695,8 +731,12 @@
|
|
|
695
731
|
"description": "A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.",
|
|
696
732
|
"anyOf": [{ "$ref": "#/definitions/StringSet" }, { "type": "null" }]
|
|
697
733
|
},
|
|
734
|
+
"include": {
|
|
735
|
+
"description": "A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.",
|
|
736
|
+
"anyOf": [{ "$ref": "#/definitions/StringSet" }, { "type": "null" }]
|
|
737
|
+
},
|
|
698
738
|
"indentSize": {
|
|
699
|
-
"description": "The size of the indentation, 2 by default",
|
|
739
|
+
"description": "The size of the indentation, 2 by default (deprecated, use `indent-width`)",
|
|
700
740
|
"default": 2,
|
|
701
741
|
"type": ["integer", "null"],
|
|
702
742
|
"format": "uint8",
|
|
@@ -710,6 +750,13 @@
|
|
|
710
750
|
{ "type": "null" }
|
|
711
751
|
]
|
|
712
752
|
},
|
|
753
|
+
"indentWidth": {
|
|
754
|
+
"description": "The size of the indentation, 2 by default",
|
|
755
|
+
"default": 2,
|
|
756
|
+
"type": ["integer", "null"],
|
|
757
|
+
"format": "uint8",
|
|
758
|
+
"minimum": 0.0
|
|
759
|
+
},
|
|
713
760
|
"lineWidth": {
|
|
714
761
|
"description": "What's the max width of a line. Defaults to 80.",
|
|
715
762
|
"default": 80,
|
|
@@ -810,6 +857,12 @@
|
|
|
810
857
|
{ "type": "null" }
|
|
811
858
|
]
|
|
812
859
|
},
|
|
860
|
+
"indentWidth": {
|
|
861
|
+
"description": "The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.",
|
|
862
|
+
"type": ["integer", "null"],
|
|
863
|
+
"format": "uint8",
|
|
864
|
+
"minimum": 0.0
|
|
865
|
+
},
|
|
813
866
|
"jsxQuoteStyle": {
|
|
814
867
|
"description": "The type of quotes used in JSX. Defaults to double.",
|
|
815
868
|
"anyOf": [{ "$ref": "#/definitions/QuoteStyle" }, { "type": "null" }]
|
|
@@ -896,6 +949,12 @@
|
|
|
896
949
|
{ "type": "null" }
|
|
897
950
|
]
|
|
898
951
|
},
|
|
952
|
+
"indentWidth": {
|
|
953
|
+
"description": "The size of the indentation applied to JSON (and its super languages) files. Default to 2.",
|
|
954
|
+
"type": ["integer", "null"],
|
|
955
|
+
"format": "uint8",
|
|
956
|
+
"minimum": 0.0
|
|
957
|
+
},
|
|
899
958
|
"lineWidth": {
|
|
900
959
|
"description": "What's the max width of a line, applied to JSON (and its super languages) files. Defaults to 80.",
|
|
901
960
|
"anyOf": [{ "$ref": "#/definitions/LineWidth" }, { "type": "null" }]
|
|
@@ -910,6 +969,10 @@
|
|
|
910
969
|
"allowComments": {
|
|
911
970
|
"description": "Allow parsing comments in `.json` files",
|
|
912
971
|
"type": ["boolean", "null"]
|
|
972
|
+
},
|
|
973
|
+
"allowTrailingCommas": {
|
|
974
|
+
"description": "Allow parsing trailing commas in `.json` files",
|
|
975
|
+
"type": ["boolean", "null"]
|
|
913
976
|
}
|
|
914
977
|
},
|
|
915
978
|
"additionalProperties": false
|
|
@@ -932,6 +995,10 @@
|
|
|
932
995
|
"description": "A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.",
|
|
933
996
|
"anyOf": [{ "$ref": "#/definitions/StringSet" }, { "type": "null" }]
|
|
934
997
|
},
|
|
998
|
+
"include": {
|
|
999
|
+
"description": "A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.",
|
|
1000
|
+
"anyOf": [{ "$ref": "#/definitions/StringSet" }, { "type": "null" }]
|
|
1001
|
+
},
|
|
935
1002
|
"rules": {
|
|
936
1003
|
"description": "List of rules",
|
|
937
1004
|
"default": { "recommended": true },
|
|
@@ -963,96 +1030,110 @@
|
|
|
963
1030
|
"description": "It enables ALL rules for this group.",
|
|
964
1031
|
"type": ["boolean", "null"]
|
|
965
1032
|
},
|
|
966
|
-
"
|
|
967
|
-
"description": "
|
|
1033
|
+
"noApproximativeNumericConstant": {
|
|
1034
|
+
"description": "Usually, the definition in the standard library is more precise than what people come up with or the used constant exceeds the maximum precision of the number type.",
|
|
968
1035
|
"anyOf": [
|
|
969
1036
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
970
1037
|
{ "type": "null" }
|
|
971
1038
|
]
|
|
972
1039
|
},
|
|
973
|
-
"
|
|
974
|
-
"description": "Disallow
|
|
1040
|
+
"noDuplicateJsonKeys": {
|
|
1041
|
+
"description": "Disallow two keys with the same name inside a JSON object.",
|
|
975
1042
|
"anyOf": [
|
|
976
1043
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
977
1044
|
{ "type": "null" }
|
|
978
1045
|
]
|
|
979
1046
|
},
|
|
980
|
-
"
|
|
981
|
-
"description": "Disallow
|
|
1047
|
+
"noEmptyBlockStatements": {
|
|
1048
|
+
"description": "Disallow empty block statements and static blocks.",
|
|
982
1049
|
"anyOf": [
|
|
983
1050
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
984
1051
|
{ "type": "null" }
|
|
985
1052
|
]
|
|
986
1053
|
},
|
|
987
|
-
"
|
|
988
|
-
"description": "Disallow
|
|
1054
|
+
"noEmptyCharacterClassInRegex": {
|
|
1055
|
+
"description": "Disallow empty character classes in regular expression literals.",
|
|
989
1056
|
"anyOf": [
|
|
990
1057
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
991
1058
|
{ "type": "null" }
|
|
992
1059
|
]
|
|
993
1060
|
},
|
|
994
|
-
"
|
|
995
|
-
"description": "
|
|
1061
|
+
"noInteractiveElementToNoninteractiveRole": {
|
|
1062
|
+
"description": "Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.",
|
|
996
1063
|
"anyOf": [
|
|
997
1064
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
998
1065
|
{ "type": "null" }
|
|
999
1066
|
]
|
|
1000
1067
|
},
|
|
1001
|
-
"
|
|
1002
|
-
"description": "
|
|
1068
|
+
"noInvalidNewBuiltin": {
|
|
1069
|
+
"description": "Disallow new operators with global non-constructor functions.",
|
|
1003
1070
|
"anyOf": [
|
|
1004
1071
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1005
1072
|
{ "type": "null" }
|
|
1006
1073
|
]
|
|
1007
1074
|
},
|
|
1008
|
-
"
|
|
1009
|
-
"description": "
|
|
1075
|
+
"noMisleadingInstantiator": {
|
|
1076
|
+
"description": "Enforce proper usage of new and constructor.",
|
|
1010
1077
|
"anyOf": [
|
|
1011
1078
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1012
1079
|
{ "type": "null" }
|
|
1013
1080
|
]
|
|
1014
1081
|
},
|
|
1015
|
-
"
|
|
1016
|
-
"description": "Disallow
|
|
1082
|
+
"noMisrefactoredShorthandAssign": {
|
|
1083
|
+
"description": "Disallow shorthand assign when variable appears on both sides.",
|
|
1017
1084
|
"anyOf": [
|
|
1018
1085
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1019
1086
|
{ "type": "null" }
|
|
1020
1087
|
]
|
|
1021
1088
|
},
|
|
1022
|
-
"
|
|
1023
|
-
"description": "
|
|
1024
|
-
"
|
|
1089
|
+
"noUnusedImports": {
|
|
1090
|
+
"description": "Disallow unused imports.",
|
|
1091
|
+
"anyOf": [
|
|
1092
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1093
|
+
{ "type": "null" }
|
|
1094
|
+
]
|
|
1025
1095
|
},
|
|
1026
|
-
"
|
|
1027
|
-
"description": "
|
|
1096
|
+
"noUselessElse": {
|
|
1097
|
+
"description": "Disallow else block when the if block breaks early.",
|
|
1028
1098
|
"anyOf": [
|
|
1029
1099
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1030
1100
|
{ "type": "null" }
|
|
1031
1101
|
]
|
|
1032
1102
|
},
|
|
1033
|
-
"
|
|
1034
|
-
"description": "
|
|
1103
|
+
"noUselessLoneBlockStatements": {
|
|
1104
|
+
"description": "Disallow unnecessary nested block statements.",
|
|
1035
1105
|
"anyOf": [
|
|
1036
1106
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1037
1107
|
{ "type": "null" }
|
|
1038
1108
|
]
|
|
1039
1109
|
},
|
|
1040
|
-
"
|
|
1041
|
-
"description": "
|
|
1110
|
+
"recommended": {
|
|
1111
|
+
"description": "It enables the recommended rules for this group",
|
|
1112
|
+
"type": ["boolean", "null"]
|
|
1113
|
+
},
|
|
1114
|
+
"useAriaActivedescendantWithTabindex": {
|
|
1115
|
+
"description": "Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.",
|
|
1042
1116
|
"anyOf": [
|
|
1043
1117
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1044
1118
|
{ "type": "null" }
|
|
1045
1119
|
]
|
|
1046
1120
|
},
|
|
1047
|
-
"
|
|
1048
|
-
"description": "
|
|
1121
|
+
"useArrowFunction": {
|
|
1122
|
+
"description": "Use arrow functions over function expressions.",
|
|
1049
1123
|
"anyOf": [
|
|
1050
1124
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1051
1125
|
{ "type": "null" }
|
|
1052
1126
|
]
|
|
1053
1127
|
},
|
|
1054
|
-
"
|
|
1055
|
-
"description": "Enforce
|
|
1128
|
+
"useAsConstAssertion": {
|
|
1129
|
+
"description": "Enforce the use of as const over literal type and type annotation.",
|
|
1130
|
+
"anyOf": [
|
|
1131
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1132
|
+
{ "type": "null" }
|
|
1133
|
+
]
|
|
1134
|
+
},
|
|
1135
|
+
"useGroupedTypeImport": {
|
|
1136
|
+
"description": "Enforce the use of import type when an import only has specifiers with type qualifier.",
|
|
1056
1137
|
"anyOf": [
|
|
1057
1138
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1058
1139
|
{ "type": "null" }
|
|
@@ -1065,8 +1146,8 @@
|
|
|
1065
1146
|
{ "type": "null" }
|
|
1066
1147
|
]
|
|
1067
1148
|
},
|
|
1068
|
-
"
|
|
1069
|
-
"description": "
|
|
1149
|
+
"useShorthandAssign": {
|
|
1150
|
+
"description": "Require assignment operator shorthand where possible.",
|
|
1070
1151
|
"anyOf": [
|
|
1071
1152
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1072
1153
|
{ "type": "null" }
|
|
@@ -1085,6 +1166,129 @@
|
|
|
1085
1166
|
"ignore": {
|
|
1086
1167
|
"description": "A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.",
|
|
1087
1168
|
"anyOf": [{ "$ref": "#/definitions/StringSet" }, { "type": "null" }]
|
|
1169
|
+
},
|
|
1170
|
+
"include": {
|
|
1171
|
+
"description": "A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.",
|
|
1172
|
+
"anyOf": [{ "$ref": "#/definitions/StringSet" }, { "type": "null" }]
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1175
|
+
"additionalProperties": false
|
|
1176
|
+
},
|
|
1177
|
+
"OverrideFormatterConfiguration": {
|
|
1178
|
+
"type": "object",
|
|
1179
|
+
"properties": {
|
|
1180
|
+
"enabled": { "default": null, "type": ["boolean", "null"] },
|
|
1181
|
+
"formatWithErrors": {
|
|
1182
|
+
"description": "Stores whether formatting should be allowed to proceed if a given file has syntax errors",
|
|
1183
|
+
"default": null,
|
|
1184
|
+
"type": ["boolean", "null"]
|
|
1185
|
+
},
|
|
1186
|
+
"indentSize": {
|
|
1187
|
+
"description": "The size of the indentation, 2 by default (deprecated, use `indent-width`)",
|
|
1188
|
+
"type": ["integer", "null"],
|
|
1189
|
+
"format": "uint8",
|
|
1190
|
+
"minimum": 0.0
|
|
1191
|
+
},
|
|
1192
|
+
"indentStyle": {
|
|
1193
|
+
"description": "The indent style.",
|
|
1194
|
+
"anyOf": [
|
|
1195
|
+
{ "$ref": "#/definitions/PlainIndentStyle" },
|
|
1196
|
+
{ "type": "null" }
|
|
1197
|
+
]
|
|
1198
|
+
},
|
|
1199
|
+
"indentWidth": {
|
|
1200
|
+
"description": "The size of the indentation, 2 by default",
|
|
1201
|
+
"type": ["integer", "null"],
|
|
1202
|
+
"format": "uint8",
|
|
1203
|
+
"minimum": 0.0
|
|
1204
|
+
},
|
|
1205
|
+
"lineWidth": {
|
|
1206
|
+
"description": "What's the max width of a line. Defaults to 80.",
|
|
1207
|
+
"default": 80,
|
|
1208
|
+
"anyOf": [{ "$ref": "#/definitions/LineWidth" }, { "type": "null" }]
|
|
1209
|
+
}
|
|
1210
|
+
},
|
|
1211
|
+
"additionalProperties": false
|
|
1212
|
+
},
|
|
1213
|
+
"OverrideLinterConfiguration": {
|
|
1214
|
+
"type": "object",
|
|
1215
|
+
"properties": {
|
|
1216
|
+
"enabled": {
|
|
1217
|
+
"description": "if `false`, it disables the feature and the linter won't be executed. `true` by default",
|
|
1218
|
+
"type": ["boolean", "null"]
|
|
1219
|
+
},
|
|
1220
|
+
"rules": {
|
|
1221
|
+
"description": "List of rules",
|
|
1222
|
+
"anyOf": [{ "$ref": "#/definitions/Rules" }, { "type": "null" }]
|
|
1223
|
+
}
|
|
1224
|
+
},
|
|
1225
|
+
"additionalProperties": false
|
|
1226
|
+
},
|
|
1227
|
+
"OverrideOrganizeImportsConfiguration": {
|
|
1228
|
+
"type": "object",
|
|
1229
|
+
"properties": {
|
|
1230
|
+
"enabled": {
|
|
1231
|
+
"description": "if `false`, it disables the feature and the linter won't be executed. `true` by default",
|
|
1232
|
+
"type": ["boolean", "null"]
|
|
1233
|
+
}
|
|
1234
|
+
},
|
|
1235
|
+
"additionalProperties": false
|
|
1236
|
+
},
|
|
1237
|
+
"OverridePattern": {
|
|
1238
|
+
"type": "object",
|
|
1239
|
+
"properties": {
|
|
1240
|
+
"formatter": {
|
|
1241
|
+
"description": "Specific configuration for the Json language",
|
|
1242
|
+
"anyOf": [
|
|
1243
|
+
{ "$ref": "#/definitions/OverrideFormatterConfiguration" },
|
|
1244
|
+
{ "type": "null" }
|
|
1245
|
+
]
|
|
1246
|
+
},
|
|
1247
|
+
"ignore": {
|
|
1248
|
+
"description": "A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.",
|
|
1249
|
+
"anyOf": [{ "$ref": "#/definitions/StringSet" }, { "type": "null" }]
|
|
1250
|
+
},
|
|
1251
|
+
"include": {
|
|
1252
|
+
"description": "A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.",
|
|
1253
|
+
"anyOf": [{ "$ref": "#/definitions/StringSet" }, { "type": "null" }]
|
|
1254
|
+
},
|
|
1255
|
+
"javascript": {
|
|
1256
|
+
"description": "Specific configuration for the JavaScript language",
|
|
1257
|
+
"anyOf": [
|
|
1258
|
+
{ "$ref": "#/definitions/JavascriptConfiguration" },
|
|
1259
|
+
{ "type": "null" }
|
|
1260
|
+
]
|
|
1261
|
+
},
|
|
1262
|
+
"json": {
|
|
1263
|
+
"description": "Specific configuration for the Json language",
|
|
1264
|
+
"anyOf": [
|
|
1265
|
+
{ "$ref": "#/definitions/JsonConfiguration" },
|
|
1266
|
+
{ "type": "null" }
|
|
1267
|
+
]
|
|
1268
|
+
},
|
|
1269
|
+
"linter": {
|
|
1270
|
+
"description": "Specific configuration for the Json language",
|
|
1271
|
+
"anyOf": [
|
|
1272
|
+
{ "$ref": "#/definitions/OverrideLinterConfiguration" },
|
|
1273
|
+
{ "type": "null" }
|
|
1274
|
+
]
|
|
1275
|
+
},
|
|
1276
|
+
"organizeImports": {
|
|
1277
|
+
"description": "Specific configuration for the Json language",
|
|
1278
|
+
"anyOf": [
|
|
1279
|
+
{ "$ref": "#/definitions/OverrideOrganizeImportsConfiguration" },
|
|
1280
|
+
{ "type": "null" }
|
|
1281
|
+
]
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
"additionalProperties": false
|
|
1285
|
+
},
|
|
1286
|
+
"Overrides": {
|
|
1287
|
+
"type": "object",
|
|
1288
|
+
"properties": {
|
|
1289
|
+
"list": {
|
|
1290
|
+
"type": "array",
|
|
1291
|
+
"items": { "$ref": "#/definitions/OverridePattern" }
|
|
1088
1292
|
}
|
|
1089
1293
|
},
|
|
1090
1294
|
"additionalProperties": false
|
|
@@ -1097,6 +1301,13 @@
|
|
|
1097
1301
|
"description": "It enables ALL rules for this group.",
|
|
1098
1302
|
"type": ["boolean", "null"]
|
|
1099
1303
|
},
|
|
1304
|
+
"noAccumulatingSpread": {
|
|
1305
|
+
"description": "Disallow the use of spread (...) syntax on accumulators.",
|
|
1306
|
+
"anyOf": [
|
|
1307
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1308
|
+
{ "type": "null" }
|
|
1309
|
+
]
|
|
1310
|
+
},
|
|
1100
1311
|
"noDelete": {
|
|
1101
1312
|
"description": "Disallow the use of the delete operator.",
|
|
1102
1313
|
"anyOf": [
|
|
@@ -1291,7 +1502,7 @@
|
|
|
1291
1502
|
]
|
|
1292
1503
|
},
|
|
1293
1504
|
"noNegationElse": {
|
|
1294
|
-
"description": "Disallow negation in the condition of an if statement if it has an else clause",
|
|
1505
|
+
"description": "Disallow negation in the condition of an if statement if it has an else clause.",
|
|
1295
1506
|
"anyOf": [
|
|
1296
1507
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1297
1508
|
{ "type": "null" }
|
|
@@ -1351,7 +1562,14 @@
|
|
|
1351
1562
|
"type": ["boolean", "null"]
|
|
1352
1563
|
},
|
|
1353
1564
|
"useBlockStatements": {
|
|
1354
|
-
"description": "Requires following curly brace conventions.
|
|
1565
|
+
"description": "Requires following curly brace conventions.",
|
|
1566
|
+
"anyOf": [
|
|
1567
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1568
|
+
{ "type": "null" }
|
|
1569
|
+
]
|
|
1570
|
+
},
|
|
1571
|
+
"useCollapsedElseIf": {
|
|
1572
|
+
"description": "Enforce using else if instead of nested if in else clauses.",
|
|
1355
1573
|
"anyOf": [
|
|
1356
1574
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1357
1575
|
{ "type": "null" }
|
|
@@ -1449,7 +1667,7 @@
|
|
|
1449
1667
|
]
|
|
1450
1668
|
},
|
|
1451
1669
|
"useWhile": {
|
|
1452
|
-
"description": "Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed",
|
|
1670
|
+
"description": "Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed.",
|
|
1453
1671
|
"anyOf": [
|
|
1454
1672
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1455
1673
|
{ "type": "null" }
|
|
@@ -1521,6 +1739,13 @@
|
|
|
1521
1739
|
{ "type": "null" }
|
|
1522
1740
|
]
|
|
1523
1741
|
},
|
|
1742
|
+
"noConfusingVoidType": {
|
|
1743
|
+
"description": "Disallow void type outside of generic or return types.",
|
|
1744
|
+
"anyOf": [
|
|
1745
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1746
|
+
{ "type": "null" }
|
|
1747
|
+
]
|
|
1748
|
+
},
|
|
1524
1749
|
"noConsoleLog": {
|
|
1525
1750
|
"description": "Disallow the use of console.log",
|
|
1526
1751
|
"anyOf": [
|
|
@@ -1557,7 +1782,7 @@
|
|
|
1557
1782
|
]
|
|
1558
1783
|
},
|
|
1559
1784
|
"noDuplicateCase": {
|
|
1560
|
-
"description": "Disallow duplicate case labels.
|
|
1785
|
+
"description": "Disallow duplicate case labels.",
|
|
1561
1786
|
"anyOf": [
|
|
1562
1787
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1563
1788
|
{ "type": "null" }
|
|
@@ -1578,7 +1803,7 @@
|
|
|
1578
1803
|
]
|
|
1579
1804
|
},
|
|
1580
1805
|
"noDuplicateObjectKeys": {
|
|
1581
|
-
"description": "Prevents object literals having more than one property declaration for the same name.
|
|
1806
|
+
"description": "Prevents object literals having more than one property declaration for the same name.",
|
|
1582
1807
|
"anyOf": [
|
|
1583
1808
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1584
1809
|
{ "type": "null" }
|
|
@@ -1612,6 +1837,13 @@
|
|
|
1612
1837
|
{ "type": "null" }
|
|
1613
1838
|
]
|
|
1614
1839
|
},
|
|
1840
|
+
"noFallthroughSwitchClause": {
|
|
1841
|
+
"description": "Disallow fallthrough of switch clauses.",
|
|
1842
|
+
"anyOf": [
|
|
1843
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1844
|
+
{ "type": "null" }
|
|
1845
|
+
]
|
|
1846
|
+
},
|
|
1615
1847
|
"noFunctionAssign": {
|
|
1616
1848
|
"description": "Disallow reassigning function declarations.",
|
|
1617
1849
|
"anyOf": [
|
|
@@ -1619,6 +1851,20 @@
|
|
|
1619
1851
|
{ "type": "null" }
|
|
1620
1852
|
]
|
|
1621
1853
|
},
|
|
1854
|
+
"noGlobalIsFinite": {
|
|
1855
|
+
"description": "Use Number.isFinite instead of global isFinite.",
|
|
1856
|
+
"anyOf": [
|
|
1857
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1858
|
+
{ "type": "null" }
|
|
1859
|
+
]
|
|
1860
|
+
},
|
|
1861
|
+
"noGlobalIsNan": {
|
|
1862
|
+
"description": "Use Number.isNaN instead of global isNaN.",
|
|
1863
|
+
"anyOf": [
|
|
1864
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1865
|
+
{ "type": "null" }
|
|
1866
|
+
]
|
|
1867
|
+
},
|
|
1622
1868
|
"noImportAssign": {
|
|
1623
1869
|
"description": "Disallow assigning to imported bindings",
|
|
1624
1870
|
"anyOf": [
|
|
@@ -1707,6 +1953,13 @@
|
|
|
1707
1953
|
{ "type": "null" }
|
|
1708
1954
|
]
|
|
1709
1955
|
},
|
|
1956
|
+
"useIsArray": {
|
|
1957
|
+
"description": "Use Array.isArray() instead of instanceof Array.",
|
|
1958
|
+
"anyOf": [
|
|
1959
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1960
|
+
{ "type": "null" }
|
|
1961
|
+
]
|
|
1962
|
+
},
|
|
1710
1963
|
"useNamespaceKeyword": {
|
|
1711
1964
|
"description": "Require using the namespace keyword over the module keyword to declare TypeScript namespaces.",
|
|
1712
1965
|
"anyOf": [
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@biomejs/biome","version":"1.
|
|
1
|
+
{"name":"@biomejs/biome","version":"1.3.0","bin":"bin/biome","scripts":{"postinstall":"node scripts/postinstall.js"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"packages/@biomejs/biome"},"author":"Emanuele Stoppa","license":"MIT","bugs":"https://github.com/biomejs/biome/issues","description":"Biome is a toolchain for the web: formatter, linter and more","files":["bin/biome","scripts/postinstall.js","configuration_schema.json","README.md"],"keywords":["JavaScript","TypeScript","format","lint","toolchain","JSON"],"engines":{"node":">=14.*"},"funding":{"type":"opencollective","url":"https://opencollective.com/biome"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.3.0","@biomejs/cli-win32-arm64":"1.3.0","@biomejs/cli-darwin-x64":"1.3.0","@biomejs/cli-darwin-arm64":"1.3.0","@biomejs/cli-linux-x64":"1.3.0","@biomejs/cli-linux-arm64":"1.3.0"}}
|