@biomejs/biome 2.0.0-beta.4 → 2.0.0-beta.5
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/configuration_schema.json +80 -49
- package/package.json +9 -9
|
@@ -455,6 +455,13 @@
|
|
|
455
455
|
{ "type": "null" }
|
|
456
456
|
]
|
|
457
457
|
},
|
|
458
|
+
"noFlatMapIdentity": {
|
|
459
|
+
"description": "Disallow to use unnecessary callback on flatMap.",
|
|
460
|
+
"anyOf": [
|
|
461
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
462
|
+
{ "type": "null" }
|
|
463
|
+
]
|
|
464
|
+
},
|
|
458
465
|
"noForEach": {
|
|
459
466
|
"description": "Prefer for...of statement instead of Array.forEach.",
|
|
460
467
|
"anyOf": [
|
|
@@ -490,6 +497,13 @@
|
|
|
490
497
|
{ "type": "null" }
|
|
491
498
|
]
|
|
492
499
|
},
|
|
500
|
+
"noUselessContinue": {
|
|
501
|
+
"description": "Avoid using unnecessary continue.",
|
|
502
|
+
"anyOf": [
|
|
503
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
504
|
+
{ "type": "null" }
|
|
505
|
+
]
|
|
506
|
+
},
|
|
493
507
|
"noUselessEmptyExport": {
|
|
494
508
|
"description": "Disallow empty exports that don't change anything in a module file.",
|
|
495
509
|
"anyOf": [
|
|
@@ -588,13 +602,6 @@
|
|
|
588
602
|
{ "type": "null" }
|
|
589
603
|
]
|
|
590
604
|
},
|
|
591
|
-
"noWith": {
|
|
592
|
-
"description": "Disallow with statements in non-strict contexts.",
|
|
593
|
-
"anyOf": [
|
|
594
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
595
|
-
{ "type": "null" }
|
|
596
|
-
]
|
|
597
|
-
},
|
|
598
605
|
"recommended": {
|
|
599
606
|
"description": "It enables the recommended rules for this group",
|
|
600
607
|
"type": ["boolean", "null"]
|
|
@@ -627,6 +634,13 @@
|
|
|
627
634
|
{ "type": "null" }
|
|
628
635
|
]
|
|
629
636
|
},
|
|
637
|
+
"useNumericLiterals": {
|
|
638
|
+
"description": "Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals",
|
|
639
|
+
"anyOf": [
|
|
640
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
641
|
+
{ "type": "null" }
|
|
642
|
+
]
|
|
643
|
+
},
|
|
630
644
|
"useOptionalChain": {
|
|
631
645
|
"description": "Enforce using concise optional chain instead of chained logical expressions.",
|
|
632
646
|
"anyOf": [
|
|
@@ -802,13 +816,6 @@
|
|
|
802
816
|
{ "type": "null" }
|
|
803
817
|
]
|
|
804
818
|
},
|
|
805
|
-
"noFlatMapIdentity": {
|
|
806
|
-
"description": "Disallow to use unnecessary callback on flatMap.",
|
|
807
|
-
"anyOf": [
|
|
808
|
-
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
809
|
-
{ "type": "null" }
|
|
810
|
-
]
|
|
811
|
-
},
|
|
812
819
|
"noGlobalObjectCalls": {
|
|
813
820
|
"description": "Disallow calling global object properties as functions",
|
|
814
821
|
"anyOf": [
|
|
@@ -1068,13 +1075,6 @@
|
|
|
1068
1075
|
{ "type": "null" }
|
|
1069
1076
|
]
|
|
1070
1077
|
},
|
|
1071
|
-
"noUselessContinue": {
|
|
1072
|
-
"description": "Avoid using unnecessary continue.",
|
|
1073
|
-
"anyOf": [
|
|
1074
|
-
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1075
|
-
{ "type": "null" }
|
|
1076
|
-
]
|
|
1077
|
-
},
|
|
1078
1078
|
"noVoidElementsWithChildren": {
|
|
1079
1079
|
"description": "This rules prevents void elements (AKA self-closing elements) from having children.",
|
|
1080
1080
|
"anyOf": [
|
|
@@ -1093,13 +1093,6 @@
|
|
|
1093
1093
|
"description": "It enables the recommended rules for this group",
|
|
1094
1094
|
"type": ["boolean", "null"]
|
|
1095
1095
|
},
|
|
1096
|
-
"useArrayLiterals": {
|
|
1097
|
-
"description": "Disallow Array constructors.",
|
|
1098
|
-
"anyOf": [
|
|
1099
|
-
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1100
|
-
{ "type": "null" }
|
|
1101
|
-
]
|
|
1102
|
-
},
|
|
1103
1096
|
"useExhaustiveDependencies": {
|
|
1104
1097
|
"description": "Enforce all dependencies are correctly specified in a React hook.",
|
|
1105
1098
|
"anyOf": [
|
|
@@ -1142,6 +1135,13 @@
|
|
|
1142
1135
|
{ "type": "null" }
|
|
1143
1136
|
]
|
|
1144
1137
|
},
|
|
1138
|
+
"useValidTypeof": {
|
|
1139
|
+
"description": "This rule checks that the result of a typeof expression is compared to a valid value.",
|
|
1140
|
+
"anyOf": [
|
|
1141
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1142
|
+
{ "type": "null" }
|
|
1143
|
+
]
|
|
1144
|
+
},
|
|
1145
1145
|
"useYield": {
|
|
1146
1146
|
"description": "Require generator functions to contain yield.",
|
|
1147
1147
|
"anyOf": [
|
|
@@ -2737,6 +2737,13 @@
|
|
|
2737
2737
|
{ "type": "null" }
|
|
2738
2738
|
]
|
|
2739
2739
|
},
|
|
2740
|
+
"noNestedComponentDefinitions": {
|
|
2741
|
+
"description": "Disallows defining React components inside other components.",
|
|
2742
|
+
"anyOf": [
|
|
2743
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2744
|
+
{ "type": "null" }
|
|
2745
|
+
]
|
|
2746
|
+
},
|
|
2740
2747
|
"noNoninteractiveElementInteractions": {
|
|
2741
2748
|
"description": "Disallow use event handlers on non-interactive elements.",
|
|
2742
2749
|
"anyOf": [
|
|
@@ -2825,6 +2832,13 @@
|
|
|
2825
2832
|
"description": "It enables the recommended rules for this group",
|
|
2826
2833
|
"type": ["boolean", "null"]
|
|
2827
2834
|
},
|
|
2835
|
+
"useAdjacentGetterSetter": {
|
|
2836
|
+
"description": "Enforce that getters and setters for the same property are adjacent in class and object definitions.",
|
|
2837
|
+
"anyOf": [
|
|
2838
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2839
|
+
{ "type": "null" }
|
|
2840
|
+
]
|
|
2841
|
+
},
|
|
2828
2842
|
"useConsistentObjectDefinition": {
|
|
2829
2843
|
"description": "Require the consistent declaration of object literals. Defaults to explicit definitions.",
|
|
2830
2844
|
"anyOf": [
|
|
@@ -2962,6 +2976,16 @@
|
|
|
2962
2976
|
},
|
|
2963
2977
|
"additionalProperties": false
|
|
2964
2978
|
},
|
|
2979
|
+
"OverrideFilesConfiguration": {
|
|
2980
|
+
"type": "object",
|
|
2981
|
+
"properties": {
|
|
2982
|
+
"maxSize": {
|
|
2983
|
+
"description": "File size limit in bytes",
|
|
2984
|
+
"anyOf": [{ "$ref": "#/definitions/MaxSize" }, { "type": "null" }]
|
|
2985
|
+
}
|
|
2986
|
+
},
|
|
2987
|
+
"additionalProperties": false
|
|
2988
|
+
},
|
|
2965
2989
|
"OverrideFormatterConfiguration": {
|
|
2966
2990
|
"type": "object",
|
|
2967
2991
|
"properties": {
|
|
@@ -3059,6 +3083,13 @@
|
|
|
3059
3083
|
{ "type": "null" }
|
|
3060
3084
|
]
|
|
3061
3085
|
},
|
|
3086
|
+
"files": {
|
|
3087
|
+
"description": "Specific configuration for the filesystem",
|
|
3088
|
+
"anyOf": [
|
|
3089
|
+
{ "$ref": "#/definitions/OverrideFilesConfiguration" },
|
|
3090
|
+
{ "type": "null" }
|
|
3091
|
+
]
|
|
3092
|
+
},
|
|
3062
3093
|
"formatter": {
|
|
3063
3094
|
"description": "Specific configuration for the Json language",
|
|
3064
3095
|
"anyOf": [
|
|
@@ -3161,6 +3192,13 @@
|
|
|
3161
3192
|
{ "type": "null" }
|
|
3162
3193
|
]
|
|
3163
3194
|
},
|
|
3195
|
+
"noNamespaceImport": {
|
|
3196
|
+
"description": "Disallow the use of namespace imports.",
|
|
3197
|
+
"anyOf": [
|
|
3198
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
3199
|
+
{ "type": "null" }
|
|
3200
|
+
]
|
|
3201
|
+
},
|
|
3164
3202
|
"noReExportAll": {
|
|
3165
3203
|
"description": "Avoid re-export all.",
|
|
3166
3204
|
"anyOf": [
|
|
@@ -4268,13 +4306,6 @@
|
|
|
4268
4306
|
{ "type": "null" }
|
|
4269
4307
|
]
|
|
4270
4308
|
},
|
|
4271
|
-
"noNamespaceImport": {
|
|
4272
|
-
"description": "Disallow the use of namespace imports.",
|
|
4273
|
-
"anyOf": [
|
|
4274
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
4275
|
-
{ "type": "null" }
|
|
4276
|
-
]
|
|
4277
|
-
},
|
|
4278
4309
|
"noNegationElse": {
|
|
4279
4310
|
"description": "Disallow negation in the condition of an if statement if it has an else clause.",
|
|
4280
4311
|
"anyOf": [
|
|
@@ -4384,6 +4415,13 @@
|
|
|
4384
4415
|
"description": "It enables the recommended rules for this group",
|
|
4385
4416
|
"type": ["boolean", "null"]
|
|
4386
4417
|
},
|
|
4418
|
+
"useArrayLiterals": {
|
|
4419
|
+
"description": "Disallow Array constructors.",
|
|
4420
|
+
"anyOf": [
|
|
4421
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
4422
|
+
{ "type": "null" }
|
|
4423
|
+
]
|
|
4424
|
+
},
|
|
4387
4425
|
"useAsConstAssertion": {
|
|
4388
4426
|
"description": "Enforce the use of as const over literal type and type annotation.",
|
|
4389
4427
|
"anyOf": [
|
|
@@ -4577,13 +4615,6 @@
|
|
|
4577
4615
|
{ "type": "null" }
|
|
4578
4616
|
]
|
|
4579
4617
|
},
|
|
4580
|
-
"useNumericLiterals": {
|
|
4581
|
-
"description": "Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals",
|
|
4582
|
-
"anyOf": [
|
|
4583
|
-
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
4584
|
-
{ "type": "null" }
|
|
4585
|
-
]
|
|
4586
|
-
},
|
|
4587
4618
|
"useSelfClosingElements": {
|
|
4588
4619
|
"description": "Prevent extra closing tags for components without children.",
|
|
4589
4620
|
"anyOf": [
|
|
@@ -5150,6 +5181,13 @@
|
|
|
5150
5181
|
{ "type": "null" }
|
|
5151
5182
|
]
|
|
5152
5183
|
},
|
|
5184
|
+
"noWith": {
|
|
5185
|
+
"description": "Disallow with statements in non-strict contexts.",
|
|
5186
|
+
"anyOf": [
|
|
5187
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
5188
|
+
{ "type": "null" }
|
|
5189
|
+
]
|
|
5190
|
+
},
|
|
5153
5191
|
"recommended": {
|
|
5154
5192
|
"description": "It enables the recommended rules for this group",
|
|
5155
5193
|
"type": ["boolean", "null"]
|
|
@@ -5230,13 +5268,6 @@
|
|
|
5230
5268
|
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
5231
5269
|
{ "type": "null" }
|
|
5232
5270
|
]
|
|
5233
|
-
},
|
|
5234
|
-
"useValidTypeof": {
|
|
5235
|
-
"description": "This rule checks that the result of a typeof expression is compared to a valid value.",
|
|
5236
|
-
"anyOf": [
|
|
5237
|
-
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
5238
|
-
{ "type": "null" }
|
|
5239
|
-
]
|
|
5240
5271
|
}
|
|
5241
5272
|
},
|
|
5242
5273
|
"additionalProperties": false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biomejs/biome",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.5",
|
|
4
4
|
"bin": {
|
|
5
5
|
"biome": "bin/biome"
|
|
6
6
|
},
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"provenance": true
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@biomejs/cli-win32-x64": "2.0.0-beta.
|
|
50
|
-
"@biomejs/cli-win32-arm64": "2.0.0-beta.
|
|
51
|
-
"@biomejs/cli-darwin-x64": "2.0.0-beta.
|
|
52
|
-
"@biomejs/cli-darwin-arm64": "2.0.0-beta.
|
|
53
|
-
"@biomejs/cli-linux-x64": "2.0.0-beta.
|
|
54
|
-
"@biomejs/cli-linux-arm64": "2.0.0-beta.
|
|
55
|
-
"@biomejs/cli-linux-x64-musl": "2.0.0-beta.
|
|
56
|
-
"@biomejs/cli-linux-arm64-musl": "2.0.0-beta.
|
|
49
|
+
"@biomejs/cli-win32-x64": "2.0.0-beta.5",
|
|
50
|
+
"@biomejs/cli-win32-arm64": "2.0.0-beta.5",
|
|
51
|
+
"@biomejs/cli-darwin-x64": "2.0.0-beta.5",
|
|
52
|
+
"@biomejs/cli-darwin-arm64": "2.0.0-beta.5",
|
|
53
|
+
"@biomejs/cli-linux-x64": "2.0.0-beta.5",
|
|
54
|
+
"@biomejs/cli-linux-arm64": "2.0.0-beta.5",
|
|
55
|
+
"@biomejs/cli-linux-x64-musl": "2.0.0-beta.5",
|
|
56
|
+
"@biomejs/cli-linux-arm64-musl": "2.0.0-beta.5"
|
|
57
57
|
}
|
|
58
58
|
}
|