@biomejs/biome 2.4.10 → 2.4.12

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.
@@ -2902,6 +2902,16 @@
2902
2902
  "type": "object",
2903
2903
  "additionalProperties": false
2904
2904
  },
2905
+ "NoComponentHookFactoriesConfiguration": {
2906
+ "oneOf": [
2907
+ { "$ref": "#/$defs/RulePlainConfiguration" },
2908
+ { "$ref": "#/$defs/RuleWithNoComponentHookFactoriesOptions" }
2909
+ ]
2910
+ },
2911
+ "NoComponentHookFactoriesOptions": {
2912
+ "type": "object",
2913
+ "additionalProperties": false
2914
+ },
2905
2915
  "NoConditionalExpectConfiguration": {
2906
2916
  "oneOf": [
2907
2917
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -3687,6 +3697,25 @@
3687
3697
  "type": "object",
3688
3698
  "additionalProperties": false
3689
3699
  },
3700
+ "NoExcessiveSelectorClassesConfiguration": {
3701
+ "oneOf": [
3702
+ { "$ref": "#/$defs/RulePlainConfiguration" },
3703
+ { "$ref": "#/$defs/RuleWithNoExcessiveSelectorClassesOptions" }
3704
+ ]
3705
+ },
3706
+ "NoExcessiveSelectorClassesOptions": {
3707
+ "type": "object",
3708
+ "properties": {
3709
+ "maxClasses": {
3710
+ "description": "The maximum number of class selectors allowed in a single selector.\n\nThis option is required to enable the rule.\nUse `0` to disallow class selectors entirely.",
3711
+ "type": ["integer", "null"],
3712
+ "format": "uint16",
3713
+ "maximum": 65535,
3714
+ "minimum": 0
3715
+ }
3716
+ },
3717
+ "additionalProperties": false
3718
+ },
3690
3719
  "NoExplicitAnyConfiguration": {
3691
3720
  "oneOf": [
3692
3721
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -3903,6 +3932,16 @@
3903
3932
  ]
3904
3933
  },
3905
3934
  "NoHexColorsOptions": { "type": "object", "additionalProperties": false },
3935
+ "NoIdenticalTestTitleConfiguration": {
3936
+ "oneOf": [
3937
+ { "$ref": "#/$defs/RulePlainConfiguration" },
3938
+ { "$ref": "#/$defs/RuleWithNoIdenticalTestTitleOptions" }
3939
+ ]
3940
+ },
3941
+ "NoIdenticalTestTitleOptions": {
3942
+ "type": "object",
3943
+ "additionalProperties": false
3944
+ },
3906
3945
  "NoImgElementConfiguration": {
3907
3946
  "oneOf": [
3908
3947
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -4146,6 +4185,16 @@
4146
4185
  },
4147
4186
  "additionalProperties": false
4148
4187
  },
4188
+ "NoJsxNamespaceConfiguration": {
4189
+ "oneOf": [
4190
+ { "$ref": "#/$defs/RulePlainConfiguration" },
4191
+ { "$ref": "#/$defs/RuleWithNoJsxNamespaceOptions" }
4192
+ ]
4193
+ },
4194
+ "NoJsxNamespaceOptions": {
4195
+ "type": "object",
4196
+ "additionalProperties": false
4197
+ },
4149
4198
  "NoJsxPropsBindConfiguration": {
4150
4199
  "oneOf": [
4151
4200
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -4227,6 +4276,16 @@
4227
4276
  "type": "object",
4228
4277
  "additionalProperties": false
4229
4278
  },
4279
+ "NoMisleadingReturnTypeConfiguration": {
4280
+ "oneOf": [
4281
+ { "$ref": "#/$defs/RulePlainConfiguration" },
4282
+ { "$ref": "#/$defs/RuleWithNoMisleadingReturnTypeOptions" }
4283
+ ]
4284
+ },
4285
+ "NoMisleadingReturnTypeOptions": {
4286
+ "type": "object",
4287
+ "additionalProperties": false
4288
+ },
4230
4289
  "NoMisplacedAssertionConfiguration": {
4231
4290
  "oneOf": [
4232
4291
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -5723,6 +5782,16 @@
5723
5782
  "type": "object",
5724
5783
  "additionalProperties": false
5725
5784
  },
5785
+ "NoUselessTypeConversionConfiguration": {
5786
+ "oneOf": [
5787
+ { "$ref": "#/$defs/RulePlainConfiguration" },
5788
+ { "$ref": "#/$defs/RuleWithNoUselessTypeConversionOptions" }
5789
+ ]
5790
+ },
5791
+ "NoUselessTypeConversionOptions": {
5792
+ "type": "object",
5793
+ "additionalProperties": false
5794
+ },
5726
5795
  "NoUselessUndefinedConfiguration": {
5727
5796
  "oneOf": [
5728
5797
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -5915,6 +5984,13 @@
5915
5984
  { "type": "null" }
5916
5985
  ]
5917
5986
  },
5987
+ "noComponentHookFactories": {
5988
+ "description": "Disallows defining React components or custom hooks inside other functions.\nSee https://biomejs.dev/linter/rules/no-component-hook-factories",
5989
+ "anyOf": [
5990
+ { "$ref": "#/$defs/NoComponentHookFactoriesConfiguration" },
5991
+ { "type": "null" }
5992
+ ]
5993
+ },
5918
5994
  "noConditionalExpect": {
5919
5995
  "description": "Disallow conditional expect() calls inside tests.\nSee https://biomejs.dev/linter/rules/no-conditional-expect",
5920
5996
  "anyOf": [
@@ -6055,6 +6131,13 @@
6055
6131
  { "type": "null" }
6056
6132
  ]
6057
6133
  },
6134
+ "noExcessiveSelectorClasses": {
6135
+ "description": "Limit the number of classes in a selector.\nSee https://biomejs.dev/linter/rules/no-excessive-selector-classes",
6136
+ "anyOf": [
6137
+ { "$ref": "#/$defs/NoExcessiveSelectorClassesConfiguration" },
6138
+ { "type": "null" }
6139
+ ]
6140
+ },
6058
6141
  "noFloatingClasses": {
6059
6142
  "description": "Disallow new operators outside of assignments or comparisons.\nSee https://biomejs.dev/linter/rules/no-floating-classes",
6060
6143
  "anyOf": [
@@ -6083,6 +6166,13 @@
6083
6166
  { "type": "null" }
6084
6167
  ]
6085
6168
  },
6169
+ "noIdenticalTestTitle": {
6170
+ "description": "Disallow identical titles in test suites and test cases.\nSee https://biomejs.dev/linter/rules/no-identical-test-title",
6171
+ "anyOf": [
6172
+ { "$ref": "#/$defs/NoIdenticalTestTitleConfiguration" },
6173
+ { "type": "null" }
6174
+ ]
6175
+ },
6086
6176
  "noImpliedEval": {
6087
6177
  "description": "Disallow the use of eval()-like methods.\nSee https://biomejs.dev/linter/rules/no-implied-eval",
6088
6178
  "anyOf": [
@@ -6104,6 +6194,13 @@
6104
6194
  { "type": "null" }
6105
6195
  ]
6106
6196
  },
6197
+ "noJsxNamespace": {
6198
+ "description": "Disallow JSX namespace syntax.\nSee https://biomejs.dev/linter/rules/no-jsx-namespace",
6199
+ "anyOf": [
6200
+ { "$ref": "#/$defs/NoJsxNamespaceConfiguration" },
6201
+ { "type": "null" }
6202
+ ]
6203
+ },
6107
6204
  "noJsxPropsBind": {
6108
6205
  "description": "Disallow .bind(), arrow functions, or function expressions in JSX props.\nSee https://biomejs.dev/linter/rules/no-jsx-props-bind",
6109
6206
  "anyOf": [
@@ -6118,6 +6215,13 @@
6118
6215
  { "type": "null" }
6119
6216
  ]
6120
6217
  },
6218
+ "noMisleadingReturnType": {
6219
+ "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",
6220
+ "anyOf": [
6221
+ { "$ref": "#/$defs/NoMisleadingReturnTypeConfiguration" },
6222
+ { "type": "null" }
6223
+ ]
6224
+ },
6121
6225
  "noMisusedPromises": {
6122
6226
  "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
6227
  "anyOf": [
@@ -6328,6 +6432,13 @@
6328
6432
  { "type": "null" }
6329
6433
  ]
6330
6434
  },
6435
+ "noUselessTypeConversion": {
6436
+ "description": "Disallow type conversions that do not change the type of an expression.\nSee https://biomejs.dev/linter/rules/no-useless-type-conversion",
6437
+ "anyOf": [
6438
+ { "$ref": "#/$defs/NoUselessTypeConversionConfiguration" },
6439
+ { "type": "null" }
6440
+ ]
6441
+ },
6331
6442
  "noVueArrowFuncInWatch": {
6332
6443
  "description": "Disallows using arrow functions when defining a watcher.\nSee https://biomejs.dev/linter/rules/no-vue-arrow-func-in-watch",
6333
6444
  "anyOf": [
@@ -6409,6 +6520,13 @@
6409
6520
  { "type": "null" }
6410
6521
  ]
6411
6522
  },
6523
+ "useConsistentTestIt": {
6524
+ "description": "Enforce consistent use of it or test for test functions.\nSee https://biomejs.dev/linter/rules/use-consistent-test-it",
6525
+ "anyOf": [
6526
+ { "$ref": "#/$defs/UseConsistentTestItConfiguration" },
6527
+ { "type": "null" }
6528
+ ]
6529
+ },
6412
6530
  "useDestructuring": {
6413
6531
  "description": "Require destructuring from arrays and/or objects.\nSee https://biomejs.dev/linter/rules/use-destructuring",
6414
6532
  "anyOf": [
@@ -6416,6 +6534,13 @@
6416
6534
  { "type": "null" }
6417
6535
  ]
6418
6536
  },
6537
+ "useDisposables": {
6538
+ "description": "Detects a disposable object assigned to a variable without using or await using syntax.\nSee https://biomejs.dev/linter/rules/use-disposables",
6539
+ "anyOf": [
6540
+ { "$ref": "#/$defs/UseDisposablesConfiguration" },
6541
+ { "type": "null" }
6542
+ ]
6543
+ },
6419
6544
  "useErrorCause": {
6420
6545
  "description": "Enforce that new Error() is thrown with the original error as cause.\nSee https://biomejs.dev/linter/rules/use-error-cause",
6421
6546
  "anyOf": [
@@ -6437,6 +6562,13 @@
6437
6562
  { "type": "null" }
6438
6563
  ]
6439
6564
  },
6565
+ "useExplicitReturnType": {
6566
+ "description": "Require explicit return types on functions and class methods.\nSee https://biomejs.dev/linter/rules/use-explicit-return-type",
6567
+ "anyOf": [
6568
+ { "$ref": "#/$defs/UseExplicitReturnTypeConfiguration" },
6569
+ { "type": "null" }
6570
+ ]
6571
+ },
6440
6572
  "useExplicitType": {
6441
6573
  "description": "Enforce types in functions, methods, variables, and parameters.\nSee https://biomejs.dev/linter/rules/use-explicit-type",
6442
6574
  "anyOf": [
@@ -6458,6 +6590,13 @@
6458
6590
  { "type": "null" }
6459
6591
  ]
6460
6592
  },
6593
+ "useIframeSandbox": {
6594
+ "description": "Enforce the 'sandbox' attribute for 'iframe' elements.\nSee https://biomejs.dev/linter/rules/use-iframe-sandbox",
6595
+ "anyOf": [
6596
+ { "$ref": "#/$defs/UseIframeSandboxConfiguration" },
6597
+ { "type": "null" }
6598
+ ]
6599
+ },
6461
6600
  "useImportsFirst": {
6462
6601
  "description": "Enforce that all imports appear at the top of the module.\nSee https://biomejs.dev/linter/rules/use-imports-first",
6463
6602
  "anyOf": [
@@ -6516,6 +6655,27 @@
6516
6655
  { "type": "null" }
6517
6656
  ]
6518
6657
  },
6658
+ "useQwikLoaderLocation": {
6659
+ "description": "Enforce that Qwik loader functions are declared in the correct location.\nSee https://biomejs.dev/linter/rules/use-qwik-loader-location",
6660
+ "anyOf": [
6661
+ { "$ref": "#/$defs/UseQwikLoaderLocationConfiguration" },
6662
+ { "type": "null" }
6663
+ ]
6664
+ },
6665
+ "useReactAsyncServerFunction": {
6666
+ "description": "Require functions with the \"use server\" directive to be async.\nSee https://biomejs.dev/linter/rules/use-react-async-server-function",
6667
+ "anyOf": [
6668
+ { "$ref": "#/$defs/UseReactAsyncServerFunctionConfiguration" },
6669
+ { "type": "null" }
6670
+ ]
6671
+ },
6672
+ "useReduceTypeParameter": {
6673
+ "description": "Enforce using a type parameter on Array#reduce instead of casting the initial value.\nSee https://biomejs.dev/linter/rules/use-reduce-type-parameter",
6674
+ "anyOf": [
6675
+ { "$ref": "#/$defs/UseReduceTypeParameterConfiguration" },
6676
+ { "type": "null" }
6677
+ ]
6678
+ },
6519
6679
  "useRegexpExec": {
6520
6680
  "description": "Enforce RegExp#exec over String#match if no global flag is provided.\nSee https://biomejs.dev/linter/rules/use-regexp-exec",
6521
6681
  "anyOf": [
@@ -6551,6 +6711,13 @@
6551
6711
  { "type": "null" }
6552
6712
  ]
6553
6713
  },
6714
+ "useStringStartsEndsWith": {
6715
+ "description": "Prefer String#startsWith() and String#endsWith() over verbose prefix and suffix checks.\nSee https://biomejs.dev/linter/rules/use-string-starts-ends-with",
6716
+ "anyOf": [
6717
+ { "$ref": "#/$defs/UseStringStartsEndsWithConfiguration" },
6718
+ { "type": "null" }
6719
+ ]
6720
+ },
6554
6721
  "useUnicodeRegex": {
6555
6722
  "description": "Enforce the use of the u or v flag for regular expressions.\nSee https://biomejs.dev/linter/rules/use-unicode-regex",
6556
6723
  "anyOf": [
@@ -6558,6 +6725,13 @@
6558
6725
  { "type": "null" }
6559
6726
  ]
6560
6727
  },
6728
+ "useVarsOnTop": {
6729
+ "description": "Require var declarations to appear at the top of their containing scope.\nSee https://biomejs.dev/linter/rules/use-vars-on-top",
6730
+ "anyOf": [
6731
+ { "$ref": "#/$defs/UseVarsOnTopConfiguration" },
6732
+ { "type": "null" }
6733
+ ]
6734
+ },
6561
6735
  "useVueConsistentDefinePropsDeclaration": {
6562
6736
  "description": "Enforce consistent defineProps declaration style.\nSee https://biomejs.dev/linter/rules/use-vue-consistent-define-props-declaration",
6563
6737
  "anyOf": [
@@ -7500,6 +7674,15 @@
7500
7674
  "additionalProperties": false,
7501
7675
  "required": ["level"]
7502
7676
  },
7677
+ "RuleWithNoComponentHookFactoriesOptions": {
7678
+ "type": "object",
7679
+ "properties": {
7680
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
7681
+ "options": { "$ref": "#/$defs/NoComponentHookFactoriesOptions" }
7682
+ },
7683
+ "additionalProperties": false,
7684
+ "required": ["level"]
7685
+ },
7503
7686
  "RuleWithNoConditionalExpectOptions": {
7504
7687
  "type": "object",
7505
7688
  "properties": {
@@ -8137,6 +8320,15 @@
8137
8320
  "additionalProperties": false,
8138
8321
  "required": ["level"]
8139
8322
  },
8323
+ "RuleWithNoExcessiveSelectorClassesOptions": {
8324
+ "type": "object",
8325
+ "properties": {
8326
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
8327
+ "options": { "$ref": "#/$defs/NoExcessiveSelectorClassesOptions" }
8328
+ },
8329
+ "additionalProperties": false,
8330
+ "required": ["level"]
8331
+ },
8140
8332
  "RuleWithNoExplicitAnyOptions": {
8141
8333
  "type": "object",
8142
8334
  "properties": {
@@ -8353,6 +8545,15 @@
8353
8545
  "additionalProperties": false,
8354
8546
  "required": ["level"]
8355
8547
  },
8548
+ "RuleWithNoIdenticalTestTitleOptions": {
8549
+ "type": "object",
8550
+ "properties": {
8551
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
8552
+ "options": { "$ref": "#/$defs/NoIdenticalTestTitleOptions" }
8553
+ },
8554
+ "additionalProperties": false,
8555
+ "required": ["level"]
8556
+ },
8356
8557
  "RuleWithNoImgElementOptions": {
8357
8558
  "type": "object",
8358
8559
  "properties": {
@@ -8562,6 +8763,15 @@
8562
8763
  "additionalProperties": false,
8563
8764
  "required": ["level"]
8564
8765
  },
8766
+ "RuleWithNoJsxNamespaceOptions": {
8767
+ "type": "object",
8768
+ "properties": {
8769
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
8770
+ "options": { "$ref": "#/$defs/NoJsxNamespaceOptions" }
8771
+ },
8772
+ "additionalProperties": false,
8773
+ "required": ["level"]
8774
+ },
8565
8775
  "RuleWithNoJsxPropsBindOptions": {
8566
8776
  "type": "object",
8567
8777
  "properties": {
@@ -8626,6 +8836,15 @@
8626
8836
  "additionalProperties": false,
8627
8837
  "required": ["level"]
8628
8838
  },
8839
+ "RuleWithNoMisleadingReturnTypeOptions": {
8840
+ "type": "object",
8841
+ "properties": {
8842
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
8843
+ "options": { "$ref": "#/$defs/NoMisleadingReturnTypeOptions" }
8844
+ },
8845
+ "additionalProperties": false,
8846
+ "required": ["level"]
8847
+ },
8629
8848
  "RuleWithNoMisplacedAssertionOptions": {
8630
8849
  "type": "object",
8631
8850
  "properties": {
@@ -9918,6 +10137,15 @@
9918
10137
  "additionalProperties": false,
9919
10138
  "required": ["level"]
9920
10139
  },
10140
+ "RuleWithNoUselessTypeConversionOptions": {
10141
+ "type": "object",
10142
+ "properties": {
10143
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10144
+ "options": { "$ref": "#/$defs/NoUselessTypeConversionOptions" }
10145
+ },
10146
+ "additionalProperties": false,
10147
+ "required": ["level"]
10148
+ },
9921
10149
  "RuleWithNoUselessUndefinedInitializationOptions": {
9922
10150
  "type": "object",
9923
10151
  "properties": {
@@ -10378,6 +10606,16 @@
10378
10606
  "additionalProperties": false,
10379
10607
  "required": ["level"]
10380
10608
  },
10609
+ "RuleWithUseConsistentTestItOptions": {
10610
+ "type": "object",
10611
+ "properties": {
10612
+ "fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
10613
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10614
+ "options": { "$ref": "#/$defs/UseConsistentTestItOptions" }
10615
+ },
10616
+ "additionalProperties": false,
10617
+ "required": ["level"]
10618
+ },
10381
10619
  "RuleWithUseConsistentTypeDefinitionsOptions": {
10382
10620
  "type": "object",
10383
10621
  "properties": {
@@ -10463,6 +10701,16 @@
10463
10701
  "additionalProperties": false,
10464
10702
  "required": ["level"]
10465
10703
  },
10704
+ "RuleWithUseDisposablesOptions": {
10705
+ "type": "object",
10706
+ "properties": {
10707
+ "fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
10708
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10709
+ "options": { "$ref": "#/$defs/UseDisposablesOptions" }
10710
+ },
10711
+ "additionalProperties": false,
10712
+ "required": ["level"]
10713
+ },
10466
10714
  "RuleWithUseEnumInitializersOptions": {
10467
10715
  "type": "object",
10468
10716
  "properties": {
@@ -10530,6 +10778,15 @@
10530
10778
  "additionalProperties": false,
10531
10779
  "required": ["level"]
10532
10780
  },
10781
+ "RuleWithUseExplicitReturnTypeOptions": {
10782
+ "type": "object",
10783
+ "properties": {
10784
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10785
+ "options": { "$ref": "#/$defs/UseExplicitReturnTypeOptions" }
10786
+ },
10787
+ "additionalProperties": false,
10788
+ "required": ["level"]
10789
+ },
10533
10790
  "RuleWithUseExplicitTypeOptions": {
10534
10791
  "type": "object",
10535
10792
  "properties": {
@@ -10734,6 +10991,15 @@
10734
10991
  "additionalProperties": false,
10735
10992
  "required": ["level"]
10736
10993
  },
10994
+ "RuleWithUseIframeSandboxOptions": {
10995
+ "type": "object",
10996
+ "properties": {
10997
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10998
+ "options": { "$ref": "#/$defs/UseIframeSandboxOptions" }
10999
+ },
11000
+ "additionalProperties": false,
11001
+ "required": ["level"]
11002
+ },
10737
11003
  "RuleWithUseIframeTitleOptions": {
10738
11004
  "type": "object",
10739
11005
  "properties": {
@@ -11079,6 +11345,15 @@
11079
11345
  "additionalProperties": false,
11080
11346
  "required": ["level"]
11081
11347
  },
11348
+ "RuleWithUseQwikLoaderLocationOptions": {
11349
+ "type": "object",
11350
+ "properties": {
11351
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
11352
+ "options": { "$ref": "#/$defs/UseQwikLoaderLocationOptions" }
11353
+ },
11354
+ "additionalProperties": false,
11355
+ "required": ["level"]
11356
+ },
11082
11357
  "RuleWithUseQwikMethodUsageOptions": {
11083
11358
  "type": "object",
11084
11359
  "properties": {
@@ -11097,6 +11372,16 @@
11097
11372
  "additionalProperties": false,
11098
11373
  "required": ["level"]
11099
11374
  },
11375
+ "RuleWithUseReactAsyncServerFunctionOptions": {
11376
+ "type": "object",
11377
+ "properties": {
11378
+ "fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
11379
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
11380
+ "options": { "$ref": "#/$defs/UseReactAsyncServerFunctionOptions" }
11381
+ },
11382
+ "additionalProperties": false,
11383
+ "required": ["level"]
11384
+ },
11100
11385
  "RuleWithUseReactFunctionComponentsOptions": {
11101
11386
  "type": "object",
11102
11387
  "properties": {
@@ -11116,6 +11401,16 @@
11116
11401
  "additionalProperties": false,
11117
11402
  "required": ["level"]
11118
11403
  },
11404
+ "RuleWithUseReduceTypeParameterOptions": {
11405
+ "type": "object",
11406
+ "properties": {
11407
+ "fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
11408
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
11409
+ "options": { "$ref": "#/$defs/UseReduceTypeParameterOptions" }
11410
+ },
11411
+ "additionalProperties": false,
11412
+ "required": ["level"]
11413
+ },
11119
11414
  "RuleWithUseRegexLiteralsOptions": {
11120
11415
  "type": "object",
11121
11416
  "properties": {
@@ -11282,6 +11577,16 @@
11282
11577
  "additionalProperties": false,
11283
11578
  "required": ["level"]
11284
11579
  },
11580
+ "RuleWithUseStringStartsEndsWithOptions": {
11581
+ "type": "object",
11582
+ "properties": {
11583
+ "fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
11584
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
11585
+ "options": { "$ref": "#/$defs/UseStringStartsEndsWithOptions" }
11586
+ },
11587
+ "additionalProperties": false,
11588
+ "required": ["level"]
11589
+ },
11285
11590
  "RuleWithUseSymbolDescriptionOptions": {
11286
11591
  "type": "object",
11287
11592
  "properties": {
@@ -11443,6 +11748,15 @@
11443
11748
  "additionalProperties": false,
11444
11749
  "required": ["level"]
11445
11750
  },
11751
+ "RuleWithUseVarsOnTopOptions": {
11752
+ "type": "object",
11753
+ "properties": {
11754
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
11755
+ "options": { "$ref": "#/$defs/UseVarsOnTopOptions" }
11756
+ },
11757
+ "additionalProperties": false,
11758
+ "required": ["level"]
11759
+ },
11446
11760
  "RuleWithUseVueConsistentDefinePropsDeclarationOptions": {
11447
11761
  "type": "object",
11448
11762
  "properties": {
@@ -13178,6 +13492,21 @@
13178
13492
  },
13179
13493
  "additionalProperties": false
13180
13494
  },
13495
+ "TestFunctionKind": {
13496
+ "description": "The function to use for tests",
13497
+ "oneOf": [
13498
+ {
13499
+ "description": "Use `it()` for tests",
13500
+ "type": "string",
13501
+ "const": "it"
13502
+ },
13503
+ {
13504
+ "description": "Use `test()` for tests",
13505
+ "type": "string",
13506
+ "const": "test"
13507
+ }
13508
+ ]
13509
+ },
13181
13510
  "TrailingNewline": { "type": "boolean" },
13182
13511
  "UseAdjacentOverloadSignaturesConfiguration": {
13183
13512
  "oneOf": [
@@ -13597,6 +13926,27 @@
13597
13926
  },
13598
13927
  "additionalProperties": false
13599
13928
  },
13929
+ "UseConsistentTestItConfiguration": {
13930
+ "oneOf": [
13931
+ { "$ref": "#/$defs/RulePlainConfiguration" },
13932
+ { "$ref": "#/$defs/RuleWithUseConsistentTestItOptions" }
13933
+ ]
13934
+ },
13935
+ "UseConsistentTestItOptions": {
13936
+ "description": "Options for the `useConsistentTestIt` rule",
13937
+ "type": "object",
13938
+ "properties": {
13939
+ "function": {
13940
+ "description": "The function to use for top-level tests (outside describe blocks).\nDefault: `\"it\"`",
13941
+ "anyOf": [{ "$ref": "#/$defs/TestFunctionKind" }, { "type": "null" }]
13942
+ },
13943
+ "withinDescribe": {
13944
+ "description": "The function to use for tests inside describe blocks.\nDefault: `\"it\"`",
13945
+ "anyOf": [{ "$ref": "#/$defs/TestFunctionKind" }, { "type": "null" }]
13946
+ }
13947
+ },
13948
+ "additionalProperties": false
13949
+ },
13600
13950
  "UseConsistentTypeDefinitionsConfiguration": {
13601
13951
  "oneOf": [
13602
13952
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -13690,6 +14040,16 @@
13690
14040
  "type": "object",
13691
14041
  "additionalProperties": false
13692
14042
  },
14043
+ "UseDisposablesConfiguration": {
14044
+ "oneOf": [
14045
+ { "$ref": "#/$defs/RulePlainConfiguration" },
14046
+ { "$ref": "#/$defs/RuleWithUseDisposablesOptions" }
14047
+ ]
14048
+ },
14049
+ "UseDisposablesOptions": {
14050
+ "type": "object",
14051
+ "additionalProperties": false
14052
+ },
13693
14053
  "UseEnumInitializersConfiguration": {
13694
14054
  "oneOf": [
13695
14055
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -13780,6 +14140,32 @@
13780
14140
  "type": "object",
13781
14141
  "additionalProperties": false
13782
14142
  },
14143
+ "UseExplicitReturnTypeConfiguration": {
14144
+ "oneOf": [
14145
+ { "$ref": "#/$defs/RulePlainConfiguration" },
14146
+ { "$ref": "#/$defs/RuleWithUseExplicitReturnTypeOptions" }
14147
+ ]
14148
+ },
14149
+ "UseExplicitReturnTypeOptions": {
14150
+ "description": "Options for the `useExplicitReturnType` rule.",
14151
+ "type": "object",
14152
+ "properties": {
14153
+ "allowExpressions": {
14154
+ "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.",
14155
+ "type": ["boolean", "null"]
14156
+ },
14157
+ "allowIifes": {
14158
+ "description": "Whether to allow IIFEs (Immediately Invoked Function Expressions) without explicit return types.",
14159
+ "type": ["boolean", "null"]
14160
+ },
14161
+ "allowedNames": {
14162
+ "description": "A list of function names that are allowed to not have explicit return types.",
14163
+ "type": ["array", "null"],
14164
+ "items": { "type": "string" }
14165
+ }
14166
+ },
14167
+ "additionalProperties": false
14168
+ },
13783
14169
  "UseExplicitTypeConfiguration": {
13784
14170
  "oneOf": [
13785
14171
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -14005,6 +14391,16 @@
14005
14391
  ]
14006
14392
  },
14007
14393
  "UseHtmlLangOptions": { "type": "object", "additionalProperties": false },
14394
+ "UseIframeSandboxConfiguration": {
14395
+ "oneOf": [
14396
+ { "$ref": "#/$defs/RulePlainConfiguration" },
14397
+ { "$ref": "#/$defs/RuleWithUseIframeSandboxOptions" }
14398
+ ]
14399
+ },
14400
+ "UseIframeSandboxOptions": {
14401
+ "type": "object",
14402
+ "additionalProperties": false
14403
+ },
14008
14404
  "UseIframeTitleConfiguration": {
14009
14405
  "oneOf": [
14010
14406
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -14334,6 +14730,11 @@
14334
14730
  "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
14731
  "type": ["boolean", "null"],
14336
14732
  "default": null
14733
+ },
14734
+ "ignoreTernaryTests": {
14735
+ "description": "Whether to ignore ternary expressions that could be simplified\nusing the nullish coalescing operator.\n\nDefault: `false`",
14736
+ "type": ["boolean", "null"],
14737
+ "default": null
14337
14738
  }
14338
14739
  },
14339
14740
  "additionalProperties": false
@@ -14428,6 +14829,16 @@
14428
14829
  "type": "object",
14429
14830
  "additionalProperties": false
14430
14831
  },
14832
+ "UseQwikLoaderLocationConfiguration": {
14833
+ "oneOf": [
14834
+ { "$ref": "#/$defs/RulePlainConfiguration" },
14835
+ { "$ref": "#/$defs/RuleWithUseQwikLoaderLocationOptions" }
14836
+ ]
14837
+ },
14838
+ "UseQwikLoaderLocationOptions": {
14839
+ "type": "object",
14840
+ "additionalProperties": false
14841
+ },
14431
14842
  "UseQwikMethodUsageConfiguration": {
14432
14843
  "oneOf": [
14433
14844
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -14448,6 +14859,16 @@
14448
14859
  "type": "object",
14449
14860
  "additionalProperties": false
14450
14861
  },
14862
+ "UseReactAsyncServerFunctionConfiguration": {
14863
+ "oneOf": [
14864
+ { "$ref": "#/$defs/RulePlainConfiguration" },
14865
+ { "$ref": "#/$defs/RuleWithUseReactAsyncServerFunctionOptions" }
14866
+ ]
14867
+ },
14868
+ "UseReactAsyncServerFunctionOptions": {
14869
+ "type": "object",
14870
+ "additionalProperties": false
14871
+ },
14451
14872
  "UseReactFunctionComponentsConfiguration": {
14452
14873
  "oneOf": [
14453
14874
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -14474,6 +14895,16 @@
14474
14895
  },
14475
14896
  "additionalProperties": false
14476
14897
  },
14898
+ "UseReduceTypeParameterConfiguration": {
14899
+ "oneOf": [
14900
+ { "$ref": "#/$defs/RulePlainConfiguration" },
14901
+ { "$ref": "#/$defs/RuleWithUseReduceTypeParameterOptions" }
14902
+ ]
14903
+ },
14904
+ "UseReduceTypeParameterOptions": {
14905
+ "type": "object",
14906
+ "additionalProperties": false
14907
+ },
14477
14908
  "UseRegexLiteralsConfiguration": {
14478
14909
  "oneOf": [
14479
14910
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -14710,6 +15141,16 @@
14710
15141
  ]
14711
15142
  },
14712
15143
  "UseStrictModeOptions": { "type": "object", "additionalProperties": false },
15144
+ "UseStringStartsEndsWithConfiguration": {
15145
+ "oneOf": [
15146
+ { "$ref": "#/$defs/RulePlainConfiguration" },
15147
+ { "$ref": "#/$defs/RuleWithUseStringStartsEndsWithOptions" }
15148
+ ]
15149
+ },
15150
+ "UseStringStartsEndsWithOptions": {
15151
+ "type": "object",
15152
+ "additionalProperties": false
15153
+ },
14713
15154
  "UseSymbolDescriptionConfiguration": {
14714
15155
  "oneOf": [
14715
15156
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -14910,6 +15351,13 @@
14910
15351
  "type": "object",
14911
15352
  "additionalProperties": false
14912
15353
  },
15354
+ "UseVarsOnTopConfiguration": {
15355
+ "oneOf": [
15356
+ { "$ref": "#/$defs/RulePlainConfiguration" },
15357
+ { "$ref": "#/$defs/RuleWithUseVarsOnTopOptions" }
15358
+ ]
15359
+ },
15360
+ "UseVarsOnTopOptions": { "type": "object", "additionalProperties": false },
14913
15361
  "UseVueConsistentDefinePropsDeclarationConfiguration": {
14914
15362
  "oneOf": [
14915
15363
  { "$ref": "#/$defs/RulePlainConfiguration" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biomejs/biome",
3
- "version": "2.4.10",
3
+ "version": "2.4.12",
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.10",
50
- "@biomejs/cli-win32-arm64": "2.4.10",
51
- "@biomejs/cli-darwin-x64": "2.4.10",
52
- "@biomejs/cli-darwin-arm64": "2.4.10",
53
- "@biomejs/cli-linux-x64": "2.4.10",
54
- "@biomejs/cli-linux-arm64": "2.4.10",
55
- "@biomejs/cli-linux-x64-musl": "2.4.10",
56
- "@biomejs/cli-linux-arm64-musl": "2.4.10"
49
+ "@biomejs/cli-win32-x64": "2.4.12",
50
+ "@biomejs/cli-win32-arm64": "2.4.12",
51
+ "@biomejs/cli-darwin-x64": "2.4.12",
52
+ "@biomejs/cli-darwin-arm64": "2.4.12",
53
+ "@biomejs/cli-linux-x64": "2.4.12",
54
+ "@biomejs/cli-linux-arm64": "2.4.12",
55
+ "@biomejs/cli-linux-x64-musl": "2.4.12",
56
+ "@biomejs/cli-linux-arm64-musl": "2.4.12"
57
57
  }
58
58
  }