@biomejs/biome 2.0.0-beta.4 → 2.0.0-beta.6
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 +154 -67
- package/package.json +9 -9
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"extends": {
|
|
26
26
|
"description": "A list of paths to other JSON files, used to extends the current configuration.",
|
|
27
|
-
"
|
|
28
|
-
"items": { "type": "string" }
|
|
27
|
+
"anyOf": [{ "$ref": "#/definitions/Extends" }, { "type": "null" }]
|
|
29
28
|
},
|
|
30
29
|
"files": {
|
|
31
30
|
"description": "The configuration of the filesystem",
|
|
@@ -420,6 +419,13 @@
|
|
|
420
419
|
{ "type": "null" }
|
|
421
420
|
]
|
|
422
421
|
},
|
|
422
|
+
"noArguments": {
|
|
423
|
+
"description": "Disallow the use of arguments.",
|
|
424
|
+
"anyOf": [
|
|
425
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
426
|
+
{ "type": "null" }
|
|
427
|
+
]
|
|
428
|
+
},
|
|
423
429
|
"noBannedTypes": {
|
|
424
430
|
"description": "Disallow primitive type aliases and misleading types.",
|
|
425
431
|
"anyOf": [
|
|
@@ -427,6 +433,13 @@
|
|
|
427
433
|
{ "type": "null" }
|
|
428
434
|
]
|
|
429
435
|
},
|
|
436
|
+
"noCommaOperator": {
|
|
437
|
+
"description": "Disallow comma operator.",
|
|
438
|
+
"anyOf": [
|
|
439
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
440
|
+
{ "type": "null" }
|
|
441
|
+
]
|
|
442
|
+
},
|
|
430
443
|
"noEmptyTypeParameters": {
|
|
431
444
|
"description": "Disallow empty type parameters in type aliases and interfaces.",
|
|
432
445
|
"anyOf": [
|
|
@@ -455,6 +468,13 @@
|
|
|
455
468
|
{ "type": "null" }
|
|
456
469
|
]
|
|
457
470
|
},
|
|
471
|
+
"noFlatMapIdentity": {
|
|
472
|
+
"description": "Disallow to use unnecessary callback on flatMap.",
|
|
473
|
+
"anyOf": [
|
|
474
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
475
|
+
{ "type": "null" }
|
|
476
|
+
]
|
|
477
|
+
},
|
|
458
478
|
"noForEach": {
|
|
459
479
|
"description": "Prefer for...of statement instead of Array.forEach.",
|
|
460
480
|
"anyOf": [
|
|
@@ -490,6 +510,13 @@
|
|
|
490
510
|
{ "type": "null" }
|
|
491
511
|
]
|
|
492
512
|
},
|
|
513
|
+
"noUselessContinue": {
|
|
514
|
+
"description": "Avoid using unnecessary continue.",
|
|
515
|
+
"anyOf": [
|
|
516
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
517
|
+
{ "type": "null" }
|
|
518
|
+
]
|
|
519
|
+
},
|
|
493
520
|
"noUselessEmptyExport": {
|
|
494
521
|
"description": "Disallow empty exports that don't change anything in a module file.",
|
|
495
522
|
"anyOf": [
|
|
@@ -588,13 +615,6 @@
|
|
|
588
615
|
{ "type": "null" }
|
|
589
616
|
]
|
|
590
617
|
},
|
|
591
|
-
"noWith": {
|
|
592
|
-
"description": "Disallow with statements in non-strict contexts.",
|
|
593
|
-
"anyOf": [
|
|
594
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
595
|
-
{ "type": "null" }
|
|
596
|
-
]
|
|
597
|
-
},
|
|
598
618
|
"recommended": {
|
|
599
619
|
"description": "It enables the recommended rules for this group",
|
|
600
620
|
"type": ["boolean", "null"]
|
|
@@ -627,6 +647,13 @@
|
|
|
627
647
|
{ "type": "null" }
|
|
628
648
|
]
|
|
629
649
|
},
|
|
650
|
+
"useNumericLiterals": {
|
|
651
|
+
"description": "Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals",
|
|
652
|
+
"anyOf": [
|
|
653
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
654
|
+
{ "type": "null" }
|
|
655
|
+
]
|
|
656
|
+
},
|
|
630
657
|
"useOptionalChain": {
|
|
631
658
|
"description": "Enforce using concise optional chain instead of chained logical expressions.",
|
|
632
659
|
"anyOf": [
|
|
@@ -802,13 +829,6 @@
|
|
|
802
829
|
{ "type": "null" }
|
|
803
830
|
]
|
|
804
831
|
},
|
|
805
|
-
"noFlatMapIdentity": {
|
|
806
|
-
"description": "Disallow to use unnecessary callback on flatMap.",
|
|
807
|
-
"anyOf": [
|
|
808
|
-
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
809
|
-
{ "type": "null" }
|
|
810
|
-
]
|
|
811
|
-
},
|
|
812
832
|
"noGlobalObjectCalls": {
|
|
813
833
|
"description": "Disallow calling global object properties as functions",
|
|
814
834
|
"anyOf": [
|
|
@@ -1068,13 +1088,6 @@
|
|
|
1068
1088
|
{ "type": "null" }
|
|
1069
1089
|
]
|
|
1070
1090
|
},
|
|
1071
|
-
"noUselessContinue": {
|
|
1072
|
-
"description": "Avoid using unnecessary continue.",
|
|
1073
|
-
"anyOf": [
|
|
1074
|
-
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1075
|
-
{ "type": "null" }
|
|
1076
|
-
]
|
|
1077
|
-
},
|
|
1078
1091
|
"noVoidElementsWithChildren": {
|
|
1079
1092
|
"description": "This rules prevents void elements (AKA self-closing elements) from having children.",
|
|
1080
1093
|
"anyOf": [
|
|
@@ -1093,13 +1106,6 @@
|
|
|
1093
1106
|
"description": "It enables the recommended rules for this group",
|
|
1094
1107
|
"type": ["boolean", "null"]
|
|
1095
1108
|
},
|
|
1096
|
-
"useArrayLiterals": {
|
|
1097
|
-
"description": "Disallow Array constructors.",
|
|
1098
|
-
"anyOf": [
|
|
1099
|
-
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1100
|
-
{ "type": "null" }
|
|
1101
|
-
]
|
|
1102
|
-
},
|
|
1103
1109
|
"useExhaustiveDependencies": {
|
|
1104
1110
|
"description": "Enforce all dependencies are correctly specified in a React hook.",
|
|
1105
1111
|
"anyOf": [
|
|
@@ -1142,6 +1148,13 @@
|
|
|
1142
1148
|
{ "type": "null" }
|
|
1143
1149
|
]
|
|
1144
1150
|
},
|
|
1151
|
+
"useValidTypeof": {
|
|
1152
|
+
"description": "This rule checks that the result of a typeof expression is compared to a valid value.",
|
|
1153
|
+
"anyOf": [
|
|
1154
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
1155
|
+
{ "type": "null" }
|
|
1156
|
+
]
|
|
1157
|
+
},
|
|
1145
1158
|
"useYield": {
|
|
1146
1159
|
"description": "Require generator functions to contain yield.",
|
|
1147
1160
|
"anyOf": [
|
|
@@ -1362,6 +1375,12 @@
|
|
|
1362
1375
|
}
|
|
1363
1376
|
]
|
|
1364
1377
|
},
|
|
1378
|
+
"Extends": {
|
|
1379
|
+
"anyOf": [
|
|
1380
|
+
{ "type": "array", "items": { "type": "string" } },
|
|
1381
|
+
{ "type": "string" }
|
|
1382
|
+
]
|
|
1383
|
+
},
|
|
1365
1384
|
"FilenameCase": {
|
|
1366
1385
|
"description": "Supported cases for file names.",
|
|
1367
1386
|
"oneOf": [
|
|
@@ -1426,6 +1445,11 @@
|
|
|
1426
1445
|
"description": "The configuration of the filesystem",
|
|
1427
1446
|
"type": "object",
|
|
1428
1447
|
"properties": {
|
|
1448
|
+
"experimentalScannerIgnores": {
|
|
1449
|
+
"description": "Set of file and folder names that should be unconditionally ignored by Biome's scanner.\n\nBiome maintains an internal list of default ignore entries, which is based on user feedback and which may change in any release. This setting allows overriding this internal list completely.\n\nThis is considered an advanced feature that users _should_ not need to tweak themselves, but they can as a last resort. This setting can only be configured in root configurations, and is ignored in nested configs.\n\nEntries must be file or folder *names*. Specific paths and globs are not supported.\n\nExamples where this may be useful:\n\n```jsonc { \"files\": { \"experimentalScannerIgnores\": [ // You almost certainly don't want to scan your `.git` // folder, which is why it's already ignored by default: \".git\",\n\n// But the scanner does scan `node_modules` by default. If // you *really* don't want this, you can ignore it like // this: \"node_modules\",\n\n// But it's probably better to ignore a specific dependency. // For instance, one that happens to be particularly slow to // scan: \"RedisCommander.d.ts\", ], } } ```\n\nPlease be aware that rules relying on the module graph or type inference information may be negatively affected if dependencies of your project aren't (fully) scanned.",
|
|
1450
|
+
"type": ["array", "null"],
|
|
1451
|
+
"items": { "type": "string" }
|
|
1452
|
+
},
|
|
1429
1453
|
"ignoreUnknown": {
|
|
1430
1454
|
"description": "Tells Biome to not emit diagnostics when handling files that doesn't know",
|
|
1431
1455
|
"anyOf": [{ "$ref": "#/definitions/Bool" }, { "type": "null" }]
|
|
@@ -2262,7 +2286,7 @@
|
|
|
2262
2286
|
"enum": ["namespaceLike"]
|
|
2263
2287
|
},
|
|
2264
2288
|
{
|
|
2265
|
-
"description": "TypeScript
|
|
2289
|
+
"description": "TypeScript namespaces",
|
|
2266
2290
|
"type": "string",
|
|
2267
2291
|
"enum": ["namespace"]
|
|
2268
2292
|
},
|
|
@@ -2737,6 +2761,13 @@
|
|
|
2737
2761
|
{ "type": "null" }
|
|
2738
2762
|
]
|
|
2739
2763
|
},
|
|
2764
|
+
"noNestedComponentDefinitions": {
|
|
2765
|
+
"description": "Disallows defining React components inside other components.",
|
|
2766
|
+
"anyOf": [
|
|
2767
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2768
|
+
{ "type": "null" }
|
|
2769
|
+
]
|
|
2770
|
+
},
|
|
2740
2771
|
"noNoninteractiveElementInteractions": {
|
|
2741
2772
|
"description": "Disallow use event handlers on non-interactive elements.",
|
|
2742
2773
|
"anyOf": [
|
|
@@ -2751,6 +2782,13 @@
|
|
|
2751
2782
|
{ "type": "null" }
|
|
2752
2783
|
]
|
|
2753
2784
|
},
|
|
2785
|
+
"noReactPropAssign": {
|
|
2786
|
+
"description": "Disallow assigning to React component props.",
|
|
2787
|
+
"anyOf": [
|
|
2788
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2789
|
+
{ "type": "null" }
|
|
2790
|
+
]
|
|
2791
|
+
},
|
|
2754
2792
|
"noRestrictedElements": {
|
|
2755
2793
|
"description": "Disallow the use of configured elements.",
|
|
2756
2794
|
"anyOf": [
|
|
@@ -2825,6 +2863,13 @@
|
|
|
2825
2863
|
"description": "It enables the recommended rules for this group",
|
|
2826
2864
|
"type": ["boolean", "null"]
|
|
2827
2865
|
},
|
|
2866
|
+
"useAdjacentGetterSetter": {
|
|
2867
|
+
"description": "Enforce that getters and setters for the same property are adjacent in class and object definitions.",
|
|
2868
|
+
"anyOf": [
|
|
2869
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2870
|
+
{ "type": "null" }
|
|
2871
|
+
]
|
|
2872
|
+
},
|
|
2828
2873
|
"useConsistentObjectDefinition": {
|
|
2829
2874
|
"description": "Require the consistent declaration of object literals. Defaults to explicit definitions.",
|
|
2830
2875
|
"anyOf": [
|
|
@@ -2834,6 +2879,13 @@
|
|
|
2834
2879
|
{ "type": "null" }
|
|
2835
2880
|
]
|
|
2836
2881
|
},
|
|
2882
|
+
"useConsistentResponse": {
|
|
2883
|
+
"description": "Use static Response methods instead of new Response() constructor when possible.",
|
|
2884
|
+
"anyOf": [
|
|
2885
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2886
|
+
{ "type": "null" }
|
|
2887
|
+
]
|
|
2888
|
+
},
|
|
2837
2889
|
"useExhaustiveSwitchCases": {
|
|
2838
2890
|
"description": "Require switch-case statements to be exhaustive.",
|
|
2839
2891
|
"anyOf": [
|
|
@@ -2869,6 +2921,13 @@
|
|
|
2869
2921
|
{ "type": "null" }
|
|
2870
2922
|
]
|
|
2871
2923
|
},
|
|
2924
|
+
"useIndexOf": {
|
|
2925
|
+
"description": "Prefer Array#{indexOf,lastIndexOf}() over Array#{findIndex,findLastIndex}() when looking for the index of an item.",
|
|
2926
|
+
"anyOf": [
|
|
2927
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2928
|
+
{ "type": "null" }
|
|
2929
|
+
]
|
|
2930
|
+
},
|
|
2872
2931
|
"useIterableCallbackReturn": {
|
|
2873
2932
|
"description": "Enforce consistent return values in iterable callbacks.",
|
|
2874
2933
|
"anyOf": [
|
|
@@ -2876,6 +2935,13 @@
|
|
|
2876
2935
|
{ "type": "null" }
|
|
2877
2936
|
]
|
|
2878
2937
|
},
|
|
2938
|
+
"useJsonImportAttribute": {
|
|
2939
|
+
"description": "Enforces the use of with { type: \"json\" } for JSON module imports.",
|
|
2940
|
+
"anyOf": [
|
|
2941
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2942
|
+
{ "type": "null" }
|
|
2943
|
+
]
|
|
2944
|
+
},
|
|
2879
2945
|
"useNamedOperation": {
|
|
2880
2946
|
"description": "Enforce specifying the name of GraphQL operations.",
|
|
2881
2947
|
"anyOf": [
|
|
@@ -2897,6 +2963,13 @@
|
|
|
2897
2963
|
{ "type": "null" }
|
|
2898
2964
|
]
|
|
2899
2965
|
},
|
|
2966
|
+
"useObjectSpread": {
|
|
2967
|
+
"description": "Prefer object spread over Object.assign() when constructing new objects.",
|
|
2968
|
+
"anyOf": [
|
|
2969
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2970
|
+
{ "type": "null" }
|
|
2971
|
+
]
|
|
2972
|
+
},
|
|
2900
2973
|
"useParseIntRadix": {
|
|
2901
2974
|
"description": "Enforce the consistent use of the radix argument when using parseInt().",
|
|
2902
2975
|
"anyOf": [
|
|
@@ -2924,6 +2997,13 @@
|
|
|
2924
2997
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2925
2998
|
{ "type": "null" }
|
|
2926
2999
|
]
|
|
3000
|
+
},
|
|
3001
|
+
"useUniqueElementIds": {
|
|
3002
|
+
"description": "Prevent the usage of static string literal id attribute on elements.",
|
|
3003
|
+
"anyOf": [
|
|
3004
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
3005
|
+
{ "type": "null" }
|
|
3006
|
+
]
|
|
2927
3007
|
}
|
|
2928
3008
|
},
|
|
2929
3009
|
"additionalProperties": false
|
|
@@ -2962,6 +3042,16 @@
|
|
|
2962
3042
|
},
|
|
2963
3043
|
"additionalProperties": false
|
|
2964
3044
|
},
|
|
3045
|
+
"OverrideFilesConfiguration": {
|
|
3046
|
+
"type": "object",
|
|
3047
|
+
"properties": {
|
|
3048
|
+
"maxSize": {
|
|
3049
|
+
"description": "File size limit in bytes",
|
|
3050
|
+
"anyOf": [{ "$ref": "#/definitions/MaxSize" }, { "type": "null" }]
|
|
3051
|
+
}
|
|
3052
|
+
},
|
|
3053
|
+
"additionalProperties": false
|
|
3054
|
+
},
|
|
2965
3055
|
"OverrideFormatterConfiguration": {
|
|
2966
3056
|
"type": "object",
|
|
2967
3057
|
"properties": {
|
|
@@ -3059,6 +3149,13 @@
|
|
|
3059
3149
|
{ "type": "null" }
|
|
3060
3150
|
]
|
|
3061
3151
|
},
|
|
3152
|
+
"files": {
|
|
3153
|
+
"description": "Specific configuration for the filesystem",
|
|
3154
|
+
"anyOf": [
|
|
3155
|
+
{ "$ref": "#/definitions/OverrideFilesConfiguration" },
|
|
3156
|
+
{ "type": "null" }
|
|
3157
|
+
]
|
|
3158
|
+
},
|
|
3062
3159
|
"formatter": {
|
|
3063
3160
|
"description": "Specific configuration for the Json language",
|
|
3064
3161
|
"anyOf": [
|
|
@@ -3114,6 +3211,10 @@
|
|
|
3114
3211
|
{ "$ref": "#/definitions/OverrideLinterConfiguration" },
|
|
3115
3212
|
{ "type": "null" }
|
|
3116
3213
|
]
|
|
3214
|
+
},
|
|
3215
|
+
"plugins": {
|
|
3216
|
+
"description": "Specific configuration for additional plugins",
|
|
3217
|
+
"anyOf": [{ "$ref": "#/definitions/Plugins" }, { "type": "null" }]
|
|
3117
3218
|
}
|
|
3118
3219
|
},
|
|
3119
3220
|
"additionalProperties": false
|
|
@@ -3161,6 +3262,13 @@
|
|
|
3161
3262
|
{ "type": "null" }
|
|
3162
3263
|
]
|
|
3163
3264
|
},
|
|
3265
|
+
"noNamespaceImport": {
|
|
3266
|
+
"description": "Disallow the use of namespace imports.",
|
|
3267
|
+
"anyOf": [
|
|
3268
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
3269
|
+
{ "type": "null" }
|
|
3270
|
+
]
|
|
3271
|
+
},
|
|
3164
3272
|
"noReExportAll": {
|
|
3165
3273
|
"description": "Avoid re-export all.",
|
|
3166
3274
|
"anyOf": [
|
|
@@ -4184,20 +4292,6 @@
|
|
|
4184
4292
|
"description": "A list of rules that belong to this group",
|
|
4185
4293
|
"type": "object",
|
|
4186
4294
|
"properties": {
|
|
4187
|
-
"noArguments": {
|
|
4188
|
-
"description": "Disallow the use of arguments.",
|
|
4189
|
-
"anyOf": [
|
|
4190
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
4191
|
-
{ "type": "null" }
|
|
4192
|
-
]
|
|
4193
|
-
},
|
|
4194
|
-
"noCommaOperator": {
|
|
4195
|
-
"description": "Disallow comma operator.",
|
|
4196
|
-
"anyOf": [
|
|
4197
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
4198
|
-
{ "type": "null" }
|
|
4199
|
-
]
|
|
4200
|
-
},
|
|
4201
4295
|
"noCommonJs": {
|
|
4202
4296
|
"description": "Disallow use of CommonJs module system in favor of ESM style imports.",
|
|
4203
4297
|
"anyOf": [
|
|
@@ -4268,13 +4362,6 @@
|
|
|
4268
4362
|
{ "type": "null" }
|
|
4269
4363
|
]
|
|
4270
4364
|
},
|
|
4271
|
-
"noNamespaceImport": {
|
|
4272
|
-
"description": "Disallow the use of namespace imports.",
|
|
4273
|
-
"anyOf": [
|
|
4274
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
4275
|
-
{ "type": "null" }
|
|
4276
|
-
]
|
|
4277
|
-
},
|
|
4278
4365
|
"noNegationElse": {
|
|
4279
4366
|
"description": "Disallow negation in the condition of an if statement if it has an else clause.",
|
|
4280
4367
|
"anyOf": [
|
|
@@ -4384,6 +4471,13 @@
|
|
|
4384
4471
|
"description": "It enables the recommended rules for this group",
|
|
4385
4472
|
"type": ["boolean", "null"]
|
|
4386
4473
|
},
|
|
4474
|
+
"useArrayLiterals": {
|
|
4475
|
+
"description": "Disallow Array constructors.",
|
|
4476
|
+
"anyOf": [
|
|
4477
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
4478
|
+
{ "type": "null" }
|
|
4479
|
+
]
|
|
4480
|
+
},
|
|
4387
4481
|
"useAsConstAssertion": {
|
|
4388
4482
|
"description": "Enforce the use of as const over literal type and type annotation.",
|
|
4389
4483
|
"anyOf": [
|
|
@@ -4577,13 +4671,6 @@
|
|
|
4577
4671
|
{ "type": "null" }
|
|
4578
4672
|
]
|
|
4579
4673
|
},
|
|
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
4674
|
"useSelfClosingElements": {
|
|
4588
4675
|
"description": "Prevent extra closing tags for components without children.",
|
|
4589
4676
|
"anyOf": [
|
|
@@ -5150,6 +5237,13 @@
|
|
|
5150
5237
|
{ "type": "null" }
|
|
5151
5238
|
]
|
|
5152
5239
|
},
|
|
5240
|
+
"noWith": {
|
|
5241
|
+
"description": "Disallow with statements in non-strict contexts.",
|
|
5242
|
+
"anyOf": [
|
|
5243
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
5244
|
+
{ "type": "null" }
|
|
5245
|
+
]
|
|
5246
|
+
},
|
|
5153
5247
|
"recommended": {
|
|
5154
5248
|
"description": "It enables the recommended rules for this group",
|
|
5155
5249
|
"type": ["boolean", "null"]
|
|
@@ -5230,13 +5324,6 @@
|
|
|
5230
5324
|
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
5231
5325
|
{ "type": "null" }
|
|
5232
5326
|
]
|
|
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
5327
|
}
|
|
5241
5328
|
},
|
|
5242
5329
|
"additionalProperties": false
|
|
@@ -5324,7 +5411,7 @@
|
|
|
5324
5411
|
"properties": {
|
|
5325
5412
|
"syntax": {
|
|
5326
5413
|
"description": "The preferred syntax to enforce.",
|
|
5327
|
-
"default": "
|
|
5414
|
+
"default": "shorthand",
|
|
5328
5415
|
"allOf": [{ "$ref": "#/definitions/ObjectPropertySyntax" }]
|
|
5329
5416
|
}
|
|
5330
5417
|
},
|
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.6",
|
|
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.6",
|
|
50
|
+
"@biomejs/cli-win32-arm64": "2.0.0-beta.6",
|
|
51
|
+
"@biomejs/cli-darwin-x64": "2.0.0-beta.6",
|
|
52
|
+
"@biomejs/cli-darwin-arm64": "2.0.0-beta.6",
|
|
53
|
+
"@biomejs/cli-linux-x64": "2.0.0-beta.6",
|
|
54
|
+
"@biomejs/cli-linux-arm64": "2.0.0-beta.6",
|
|
55
|
+
"@biomejs/cli-linux-x64-musl": "2.0.0-beta.6",
|
|
56
|
+
"@biomejs/cli-linux-arm64-musl": "2.0.0-beta.6"
|
|
57
57
|
}
|
|
58
58
|
}
|