@biomejs/biome 2.4.10 → 2.4.11
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 +205 -0
- package/package.json +9 -9
|
@@ -4227,6 +4227,16 @@
|
|
|
4227
4227
|
"type": "object",
|
|
4228
4228
|
"additionalProperties": false
|
|
4229
4229
|
},
|
|
4230
|
+
"NoMisleadingReturnTypeConfiguration": {
|
|
4231
|
+
"oneOf": [
|
|
4232
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
4233
|
+
{ "$ref": "#/$defs/RuleWithNoMisleadingReturnTypeOptions" }
|
|
4234
|
+
]
|
|
4235
|
+
},
|
|
4236
|
+
"NoMisleadingReturnTypeOptions": {
|
|
4237
|
+
"type": "object",
|
|
4238
|
+
"additionalProperties": false
|
|
4239
|
+
},
|
|
4230
4240
|
"NoMisplacedAssertionConfiguration": {
|
|
4231
4241
|
"oneOf": [
|
|
4232
4242
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -5723,6 +5733,16 @@
|
|
|
5723
5733
|
"type": "object",
|
|
5724
5734
|
"additionalProperties": false
|
|
5725
5735
|
},
|
|
5736
|
+
"NoUselessTypeConversionConfiguration": {
|
|
5737
|
+
"oneOf": [
|
|
5738
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
5739
|
+
{ "$ref": "#/$defs/RuleWithNoUselessTypeConversionOptions" }
|
|
5740
|
+
]
|
|
5741
|
+
},
|
|
5742
|
+
"NoUselessTypeConversionOptions": {
|
|
5743
|
+
"type": "object",
|
|
5744
|
+
"additionalProperties": false
|
|
5745
|
+
},
|
|
5726
5746
|
"NoUselessUndefinedConfiguration": {
|
|
5727
5747
|
"oneOf": [
|
|
5728
5748
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -6118,6 +6138,13 @@
|
|
|
6118
6138
|
{ "type": "null" }
|
|
6119
6139
|
]
|
|
6120
6140
|
},
|
|
6141
|
+
"noMisleadingReturnType": {
|
|
6142
|
+
"description": "Detect return type annotations that are misleadingly wider than what the implementation actually returns.\nSee https://biomejs.dev/linter/rules/no-misleading-return-type",
|
|
6143
|
+
"anyOf": [
|
|
6144
|
+
{ "$ref": "#/$defs/NoMisleadingReturnTypeConfiguration" },
|
|
6145
|
+
{ "type": "null" }
|
|
6146
|
+
]
|
|
6147
|
+
},
|
|
6121
6148
|
"noMisusedPromises": {
|
|
6122
6149
|
"description": "Disallow Promises to be used in places where they are almost certainly a mistake.\nSee https://biomejs.dev/linter/rules/no-misused-promises",
|
|
6123
6150
|
"anyOf": [
|
|
@@ -6328,6 +6355,13 @@
|
|
|
6328
6355
|
{ "type": "null" }
|
|
6329
6356
|
]
|
|
6330
6357
|
},
|
|
6358
|
+
"noUselessTypeConversion": {
|
|
6359
|
+
"description": "Disallow type conversions that do not change the type of an expression.\nSee https://biomejs.dev/linter/rules/no-useless-type-conversion",
|
|
6360
|
+
"anyOf": [
|
|
6361
|
+
{ "$ref": "#/$defs/NoUselessTypeConversionConfiguration" },
|
|
6362
|
+
{ "type": "null" }
|
|
6363
|
+
]
|
|
6364
|
+
},
|
|
6331
6365
|
"noVueArrowFuncInWatch": {
|
|
6332
6366
|
"description": "Disallows using arrow functions when defining a watcher.\nSee https://biomejs.dev/linter/rules/no-vue-arrow-func-in-watch",
|
|
6333
6367
|
"anyOf": [
|
|
@@ -6409,6 +6443,13 @@
|
|
|
6409
6443
|
{ "type": "null" }
|
|
6410
6444
|
]
|
|
6411
6445
|
},
|
|
6446
|
+
"useConsistentTestIt": {
|
|
6447
|
+
"description": "Enforce consistent use of it or test for test functions.\nSee https://biomejs.dev/linter/rules/use-consistent-test-it",
|
|
6448
|
+
"anyOf": [
|
|
6449
|
+
{ "$ref": "#/$defs/UseConsistentTestItConfiguration" },
|
|
6450
|
+
{ "type": "null" }
|
|
6451
|
+
]
|
|
6452
|
+
},
|
|
6412
6453
|
"useDestructuring": {
|
|
6413
6454
|
"description": "Require destructuring from arrays and/or objects.\nSee https://biomejs.dev/linter/rules/use-destructuring",
|
|
6414
6455
|
"anyOf": [
|
|
@@ -6416,6 +6457,13 @@
|
|
|
6416
6457
|
{ "type": "null" }
|
|
6417
6458
|
]
|
|
6418
6459
|
},
|
|
6460
|
+
"useDisposables": {
|
|
6461
|
+
"description": "Detects a disposable object assigned to a variable without using or await using syntax.\nSee https://biomejs.dev/linter/rules/use-disposables",
|
|
6462
|
+
"anyOf": [
|
|
6463
|
+
{ "$ref": "#/$defs/UseDisposablesConfiguration" },
|
|
6464
|
+
{ "type": "null" }
|
|
6465
|
+
]
|
|
6466
|
+
},
|
|
6419
6467
|
"useErrorCause": {
|
|
6420
6468
|
"description": "Enforce that new Error() is thrown with the original error as cause.\nSee https://biomejs.dev/linter/rules/use-error-cause",
|
|
6421
6469
|
"anyOf": [
|
|
@@ -6437,6 +6485,13 @@
|
|
|
6437
6485
|
{ "type": "null" }
|
|
6438
6486
|
]
|
|
6439
6487
|
},
|
|
6488
|
+
"useExplicitReturnType": {
|
|
6489
|
+
"description": "Require explicit return types on functions and class methods.\nSee https://biomejs.dev/linter/rules/use-explicit-return-type",
|
|
6490
|
+
"anyOf": [
|
|
6491
|
+
{ "$ref": "#/$defs/UseExplicitReturnTypeConfiguration" },
|
|
6492
|
+
{ "type": "null" }
|
|
6493
|
+
]
|
|
6494
|
+
},
|
|
6440
6495
|
"useExplicitType": {
|
|
6441
6496
|
"description": "Enforce types in functions, methods, variables, and parameters.\nSee https://biomejs.dev/linter/rules/use-explicit-type",
|
|
6442
6497
|
"anyOf": [
|
|
@@ -6516,6 +6571,13 @@
|
|
|
6516
6571
|
{ "type": "null" }
|
|
6517
6572
|
]
|
|
6518
6573
|
},
|
|
6574
|
+
"useQwikLoaderLocation": {
|
|
6575
|
+
"description": "Enforce that Qwik loader functions are declared in the correct location.\nSee https://biomejs.dev/linter/rules/use-qwik-loader-location",
|
|
6576
|
+
"anyOf": [
|
|
6577
|
+
{ "$ref": "#/$defs/UseQwikLoaderLocationConfiguration" },
|
|
6578
|
+
{ "type": "null" }
|
|
6579
|
+
]
|
|
6580
|
+
},
|
|
6519
6581
|
"useRegexpExec": {
|
|
6520
6582
|
"description": "Enforce RegExp#exec over String#match if no global flag is provided.\nSee https://biomejs.dev/linter/rules/use-regexp-exec",
|
|
6521
6583
|
"anyOf": [
|
|
@@ -8626,6 +8688,15 @@
|
|
|
8626
8688
|
"additionalProperties": false,
|
|
8627
8689
|
"required": ["level"]
|
|
8628
8690
|
},
|
|
8691
|
+
"RuleWithNoMisleadingReturnTypeOptions": {
|
|
8692
|
+
"type": "object",
|
|
8693
|
+
"properties": {
|
|
8694
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
8695
|
+
"options": { "$ref": "#/$defs/NoMisleadingReturnTypeOptions" }
|
|
8696
|
+
},
|
|
8697
|
+
"additionalProperties": false,
|
|
8698
|
+
"required": ["level"]
|
|
8699
|
+
},
|
|
8629
8700
|
"RuleWithNoMisplacedAssertionOptions": {
|
|
8630
8701
|
"type": "object",
|
|
8631
8702
|
"properties": {
|
|
@@ -9918,6 +9989,15 @@
|
|
|
9918
9989
|
"additionalProperties": false,
|
|
9919
9990
|
"required": ["level"]
|
|
9920
9991
|
},
|
|
9992
|
+
"RuleWithNoUselessTypeConversionOptions": {
|
|
9993
|
+
"type": "object",
|
|
9994
|
+
"properties": {
|
|
9995
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
9996
|
+
"options": { "$ref": "#/$defs/NoUselessTypeConversionOptions" }
|
|
9997
|
+
},
|
|
9998
|
+
"additionalProperties": false,
|
|
9999
|
+
"required": ["level"]
|
|
10000
|
+
},
|
|
9921
10001
|
"RuleWithNoUselessUndefinedInitializationOptions": {
|
|
9922
10002
|
"type": "object",
|
|
9923
10003
|
"properties": {
|
|
@@ -10378,6 +10458,16 @@
|
|
|
10378
10458
|
"additionalProperties": false,
|
|
10379
10459
|
"required": ["level"]
|
|
10380
10460
|
},
|
|
10461
|
+
"RuleWithUseConsistentTestItOptions": {
|
|
10462
|
+
"type": "object",
|
|
10463
|
+
"properties": {
|
|
10464
|
+
"fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
|
|
10465
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
10466
|
+
"options": { "$ref": "#/$defs/UseConsistentTestItOptions" }
|
|
10467
|
+
},
|
|
10468
|
+
"additionalProperties": false,
|
|
10469
|
+
"required": ["level"]
|
|
10470
|
+
},
|
|
10381
10471
|
"RuleWithUseConsistentTypeDefinitionsOptions": {
|
|
10382
10472
|
"type": "object",
|
|
10383
10473
|
"properties": {
|
|
@@ -10463,6 +10553,16 @@
|
|
|
10463
10553
|
"additionalProperties": false,
|
|
10464
10554
|
"required": ["level"]
|
|
10465
10555
|
},
|
|
10556
|
+
"RuleWithUseDisposablesOptions": {
|
|
10557
|
+
"type": "object",
|
|
10558
|
+
"properties": {
|
|
10559
|
+
"fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
|
|
10560
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
10561
|
+
"options": { "$ref": "#/$defs/UseDisposablesOptions" }
|
|
10562
|
+
},
|
|
10563
|
+
"additionalProperties": false,
|
|
10564
|
+
"required": ["level"]
|
|
10565
|
+
},
|
|
10466
10566
|
"RuleWithUseEnumInitializersOptions": {
|
|
10467
10567
|
"type": "object",
|
|
10468
10568
|
"properties": {
|
|
@@ -10530,6 +10630,15 @@
|
|
|
10530
10630
|
"additionalProperties": false,
|
|
10531
10631
|
"required": ["level"]
|
|
10532
10632
|
},
|
|
10633
|
+
"RuleWithUseExplicitReturnTypeOptions": {
|
|
10634
|
+
"type": "object",
|
|
10635
|
+
"properties": {
|
|
10636
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
10637
|
+
"options": { "$ref": "#/$defs/UseExplicitReturnTypeOptions" }
|
|
10638
|
+
},
|
|
10639
|
+
"additionalProperties": false,
|
|
10640
|
+
"required": ["level"]
|
|
10641
|
+
},
|
|
10533
10642
|
"RuleWithUseExplicitTypeOptions": {
|
|
10534
10643
|
"type": "object",
|
|
10535
10644
|
"properties": {
|
|
@@ -11079,6 +11188,15 @@
|
|
|
11079
11188
|
"additionalProperties": false,
|
|
11080
11189
|
"required": ["level"]
|
|
11081
11190
|
},
|
|
11191
|
+
"RuleWithUseQwikLoaderLocationOptions": {
|
|
11192
|
+
"type": "object",
|
|
11193
|
+
"properties": {
|
|
11194
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
11195
|
+
"options": { "$ref": "#/$defs/UseQwikLoaderLocationOptions" }
|
|
11196
|
+
},
|
|
11197
|
+
"additionalProperties": false,
|
|
11198
|
+
"required": ["level"]
|
|
11199
|
+
},
|
|
11082
11200
|
"RuleWithUseQwikMethodUsageOptions": {
|
|
11083
11201
|
"type": "object",
|
|
11084
11202
|
"properties": {
|
|
@@ -13178,6 +13296,21 @@
|
|
|
13178
13296
|
},
|
|
13179
13297
|
"additionalProperties": false
|
|
13180
13298
|
},
|
|
13299
|
+
"TestFunctionKind": {
|
|
13300
|
+
"description": "The function to use for tests",
|
|
13301
|
+
"oneOf": [
|
|
13302
|
+
{
|
|
13303
|
+
"description": "Use `it()` for tests",
|
|
13304
|
+
"type": "string",
|
|
13305
|
+
"const": "it"
|
|
13306
|
+
},
|
|
13307
|
+
{
|
|
13308
|
+
"description": "Use `test()` for tests",
|
|
13309
|
+
"type": "string",
|
|
13310
|
+
"const": "test"
|
|
13311
|
+
}
|
|
13312
|
+
]
|
|
13313
|
+
},
|
|
13181
13314
|
"TrailingNewline": { "type": "boolean" },
|
|
13182
13315
|
"UseAdjacentOverloadSignaturesConfiguration": {
|
|
13183
13316
|
"oneOf": [
|
|
@@ -13597,6 +13730,27 @@
|
|
|
13597
13730
|
},
|
|
13598
13731
|
"additionalProperties": false
|
|
13599
13732
|
},
|
|
13733
|
+
"UseConsistentTestItConfiguration": {
|
|
13734
|
+
"oneOf": [
|
|
13735
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
13736
|
+
{ "$ref": "#/$defs/RuleWithUseConsistentTestItOptions" }
|
|
13737
|
+
]
|
|
13738
|
+
},
|
|
13739
|
+
"UseConsistentTestItOptions": {
|
|
13740
|
+
"description": "Options for the `useConsistentTestIt` rule",
|
|
13741
|
+
"type": "object",
|
|
13742
|
+
"properties": {
|
|
13743
|
+
"function": {
|
|
13744
|
+
"description": "The function to use for top-level tests (outside describe blocks).\nDefault: `\"it\"`",
|
|
13745
|
+
"anyOf": [{ "$ref": "#/$defs/TestFunctionKind" }, { "type": "null" }]
|
|
13746
|
+
},
|
|
13747
|
+
"withinDescribe": {
|
|
13748
|
+
"description": "The function to use for tests inside describe blocks.\nDefault: `\"it\"`",
|
|
13749
|
+
"anyOf": [{ "$ref": "#/$defs/TestFunctionKind" }, { "type": "null" }]
|
|
13750
|
+
}
|
|
13751
|
+
},
|
|
13752
|
+
"additionalProperties": false
|
|
13753
|
+
},
|
|
13600
13754
|
"UseConsistentTypeDefinitionsConfiguration": {
|
|
13601
13755
|
"oneOf": [
|
|
13602
13756
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -13690,6 +13844,16 @@
|
|
|
13690
13844
|
"type": "object",
|
|
13691
13845
|
"additionalProperties": false
|
|
13692
13846
|
},
|
|
13847
|
+
"UseDisposablesConfiguration": {
|
|
13848
|
+
"oneOf": [
|
|
13849
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
13850
|
+
{ "$ref": "#/$defs/RuleWithUseDisposablesOptions" }
|
|
13851
|
+
]
|
|
13852
|
+
},
|
|
13853
|
+
"UseDisposablesOptions": {
|
|
13854
|
+
"type": "object",
|
|
13855
|
+
"additionalProperties": false
|
|
13856
|
+
},
|
|
13693
13857
|
"UseEnumInitializersConfiguration": {
|
|
13694
13858
|
"oneOf": [
|
|
13695
13859
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -13780,6 +13944,32 @@
|
|
|
13780
13944
|
"type": "object",
|
|
13781
13945
|
"additionalProperties": false
|
|
13782
13946
|
},
|
|
13947
|
+
"UseExplicitReturnTypeConfiguration": {
|
|
13948
|
+
"oneOf": [
|
|
13949
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
13950
|
+
{ "$ref": "#/$defs/RuleWithUseExplicitReturnTypeOptions" }
|
|
13951
|
+
]
|
|
13952
|
+
},
|
|
13953
|
+
"UseExplicitReturnTypeOptions": {
|
|
13954
|
+
"description": "Options for the `useExplicitReturnType` rule.",
|
|
13955
|
+
"type": "object",
|
|
13956
|
+
"properties": {
|
|
13957
|
+
"allowExpressions": {
|
|
13958
|
+
"description": "Whether to ignore function expressions (functions that are not part of a declaration).\nWhen `true`, only declarations (function statements and class methods) are checked.",
|
|
13959
|
+
"type": ["boolean", "null"]
|
|
13960
|
+
},
|
|
13961
|
+
"allowIifes": {
|
|
13962
|
+
"description": "Whether to allow IIFEs (Immediately Invoked Function Expressions) without explicit return types.",
|
|
13963
|
+
"type": ["boolean", "null"]
|
|
13964
|
+
},
|
|
13965
|
+
"allowedNames": {
|
|
13966
|
+
"description": "A list of function names that are allowed to not have explicit return types.",
|
|
13967
|
+
"type": ["array", "null"],
|
|
13968
|
+
"items": { "type": "string" }
|
|
13969
|
+
}
|
|
13970
|
+
},
|
|
13971
|
+
"additionalProperties": false
|
|
13972
|
+
},
|
|
13783
13973
|
"UseExplicitTypeConfiguration": {
|
|
13784
13974
|
"oneOf": [
|
|
13785
13975
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -14334,6 +14524,11 @@
|
|
|
14334
14524
|
"description": "Whether to ignore `||` expressions in conditional test positions\n(if/while/for/do-while/ternary conditions).\n\nWhen `true` (the default), the rule will not report `||` expressions\nthat appear in places where the falsy-checking behavior may be intentional.\n\nDefault: `true`",
|
|
14335
14525
|
"type": ["boolean", "null"],
|
|
14336
14526
|
"default": null
|
|
14527
|
+
},
|
|
14528
|
+
"ignoreTernaryTests": {
|
|
14529
|
+
"description": "Whether to ignore ternary expressions that could be simplified\nusing the nullish coalescing operator.\n\nDefault: `false`",
|
|
14530
|
+
"type": ["boolean", "null"],
|
|
14531
|
+
"default": null
|
|
14337
14532
|
}
|
|
14338
14533
|
},
|
|
14339
14534
|
"additionalProperties": false
|
|
@@ -14428,6 +14623,16 @@
|
|
|
14428
14623
|
"type": "object",
|
|
14429
14624
|
"additionalProperties": false
|
|
14430
14625
|
},
|
|
14626
|
+
"UseQwikLoaderLocationConfiguration": {
|
|
14627
|
+
"oneOf": [
|
|
14628
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
14629
|
+
{ "$ref": "#/$defs/RuleWithUseQwikLoaderLocationOptions" }
|
|
14630
|
+
]
|
|
14631
|
+
},
|
|
14632
|
+
"UseQwikLoaderLocationOptions": {
|
|
14633
|
+
"type": "object",
|
|
14634
|
+
"additionalProperties": false
|
|
14635
|
+
},
|
|
14431
14636
|
"UseQwikMethodUsageConfiguration": {
|
|
14432
14637
|
"oneOf": [
|
|
14433
14638
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biomejs/biome",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.11",
|
|
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.4.
|
|
50
|
-
"@biomejs/cli-win32-arm64": "2.4.
|
|
51
|
-
"@biomejs/cli-darwin-x64": "2.4.
|
|
52
|
-
"@biomejs/cli-darwin-arm64": "2.4.
|
|
53
|
-
"@biomejs/cli-linux-x64": "2.4.
|
|
54
|
-
"@biomejs/cli-linux-arm64": "2.4.
|
|
55
|
-
"@biomejs/cli-linux-x64-musl": "2.4.
|
|
56
|
-
"@biomejs/cli-linux-arm64-musl": "2.4.
|
|
49
|
+
"@biomejs/cli-win32-x64": "2.4.11",
|
|
50
|
+
"@biomejs/cli-win32-arm64": "2.4.11",
|
|
51
|
+
"@biomejs/cli-darwin-x64": "2.4.11",
|
|
52
|
+
"@biomejs/cli-darwin-arm64": "2.4.11",
|
|
53
|
+
"@biomejs/cli-linux-x64": "2.4.11",
|
|
54
|
+
"@biomejs/cli-linux-arm64": "2.4.11",
|
|
55
|
+
"@biomejs/cli-linux-x64-musl": "2.4.11",
|
|
56
|
+
"@biomejs/cli-linux-arm64-musl": "2.4.11"
|
|
57
57
|
}
|
|
58
58
|
}
|