@biomejs/biome 2.3.2 → 2.3.4

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/README.md CHANGED
@@ -184,6 +184,9 @@ Biome offers [enterprise support](https://biomejs.dev/enterprise), where Core Co
184
184
  <td align="center" valign="middle">
185
185
  <a href="https://www.convex.dev/?utm_source=biome&utm_medium=readme" target="_blank"><img src="https://avatars.githubusercontent.com/u/81530787?s=200&v=4" width="80" alt="Convex logo"></a>
186
186
  </td>
187
+ <td align="center" valign="middle">
188
+ <a href="https://graphite.dev/?utm_source=biome&utm_medium=readme" target="_blank"><img src="https://avatars.githubusercontent.com/u/61942612?s=200&v=4" width="80" alt="Graphite logo"></a>
189
+ </td>
187
190
  </tr>
188
191
  </tbody>
189
192
  </table>
@@ -1510,7 +1510,7 @@
1510
1510
  "type": "object",
1511
1511
  "properties": {
1512
1512
  "experimentalScannerIgnores": {
1513
- "description": "**Deprecated:** Please use _force-ignore syntax_ in `files.includes` instead: https://biomejs.dev/reference/configuration/#filesincludes\n\nSet of file and folder names that should be unconditionally ignored by Biome's scanner.",
1513
+ "description": "**Deprecated:** Please use _force-ignore syntax_ in `files.includes` instead: <https://biomejs.dev/reference/configuration/#filesincludes>\n\nSet of file and folder names that should be unconditionally ignored by Biome's scanner.",
1514
1514
  "type": ["array", "null"],
1515
1515
  "items": { "type": "string" }
1516
1516
  },
@@ -2679,7 +2679,7 @@
2679
2679
  "properties": {
2680
2680
  "allow": {
2681
2681
  "description": "Allows a list of bitwise operators to be used as exceptions.",
2682
- "type": "array",
2682
+ "type": ["array", "null"],
2683
2683
  "items": { "type": "string" }
2684
2684
  }
2685
2685
  },
@@ -2701,8 +2701,7 @@
2701
2701
  },
2702
2702
  "allowNoReferrer": {
2703
2703
  "description": "Whether `noreferrer` is allowed in addition to `noopener`.",
2704
- "default": true,
2705
- "type": "boolean"
2704
+ "type": ["boolean", "null"]
2706
2705
  }
2707
2706
  },
2708
2707
  "additionalProperties": false
@@ -2776,7 +2775,7 @@
2776
2775
  "properties": {
2777
2776
  "allowedLabels": {
2778
2777
  "description": "A list of (non-confusing) labels that should be allowed",
2779
- "type": "array",
2778
+ "type": ["array", "null"],
2780
2779
  "items": { "type": "string" }
2781
2780
  }
2782
2781
  },
@@ -2803,7 +2802,7 @@
2803
2802
  "properties": {
2804
2803
  "allow": {
2805
2804
  "description": "Allowed calls on the console object.",
2806
- "type": "array",
2805
+ "type": ["array", "null"],
2807
2806
  "items": { "type": "string" }
2808
2807
  }
2809
2808
  },
@@ -2863,6 +2862,13 @@
2863
2862
  "type": "object",
2864
2863
  "additionalProperties": false
2865
2864
  },
2865
+ "NoContinueConfiguration": {
2866
+ "anyOf": [
2867
+ { "$ref": "#/definitions/RulePlainConfiguration" },
2868
+ { "$ref": "#/definitions/RuleWithNoContinueOptions" }
2869
+ ]
2870
+ },
2871
+ "NoContinueOptions": { "type": "object", "additionalProperties": false },
2866
2872
  "NoControlCharactersInRegexConfiguration": {
2867
2873
  "anyOf": [
2868
2874
  { "$ref": "#/definitions/RulePlainConfiguration" },
@@ -2990,7 +2996,7 @@
2990
2996
  "properties": {
2991
2997
  "ignoreNull": {
2992
2998
  "description": "If `true`, an exception is made when comparing with `null`, as it's often relied on to check both for `null` or `undefined`.\n\nIf `false`, no such exception will be made.",
2993
- "type": "boolean"
2999
+ "type": ["boolean", "null"]
2994
3000
  }
2995
3001
  },
2996
3002
  "additionalProperties": false
@@ -3207,8 +3213,7 @@
3207
3213
  "properties": {
3208
3214
  "allowComments": {
3209
3215
  "description": "Whether comments are considered meaningful",
3210
- "default": false,
3211
- "type": "boolean"
3216
+ "type": ["boolean", "null"]
3212
3217
  }
3213
3218
  },
3214
3219
  "additionalProperties": false
@@ -3253,8 +3258,7 @@
3253
3258
  "properties": {
3254
3259
  "maxAllowedComplexity": {
3255
3260
  "description": "The maximum complexity score that we allow. Anything higher is considered excessive.",
3256
- "default": 15,
3257
- "type": "integer",
3261
+ "type": ["integer", "null"],
3258
3262
  "format": "uint8",
3259
3263
  "minimum": 1.0
3260
3264
  }
@@ -3272,20 +3276,17 @@
3272
3276
  "properties": {
3273
3277
  "maxLines": {
3274
3278
  "description": "The maximum number of lines allowed in a function body.",
3275
- "default": 50,
3276
- "type": "integer",
3279
+ "type": ["integer", "null"],
3277
3280
  "format": "uint16",
3278
3281
  "minimum": 1.0
3279
3282
  },
3280
3283
  "skipBlankLines": {
3281
3284
  "description": "When this options is set to `true`, blank lines in the function body are not counted towards the maximum line limit.",
3282
- "default": false,
3283
- "type": "boolean"
3285
+ "type": ["boolean", "null"]
3284
3286
  },
3285
3287
  "skipIifes": {
3286
3288
  "description": "When this option is set to `true`, Immediately Invoked Function Expressions (IIFEs) are not checked for the maximum line limit.",
3287
- "default": false,
3288
- "type": "boolean"
3289
+ "type": ["boolean", "null"]
3289
3290
  }
3290
3291
  },
3291
3292
  "additionalProperties": false
@@ -3398,8 +3399,7 @@
3398
3399
  "properties": {
3399
3400
  "allowedIdentifiers": {
3400
3401
  "description": "A list of variable names allowed for `forEach` calls.",
3401
- "default": [],
3402
- "type": "array",
3402
+ "type": ["array", "null"],
3403
3403
  "items": { "type": "string" }
3404
3404
  }
3405
3405
  },
@@ -3551,8 +3551,7 @@
3551
3551
  "properties": {
3552
3552
  "ignoreTypes": {
3553
3553
  "description": "Ignores type-only imports when finding an import cycle. A type-only import (`import type`) will be removed by the compiler, so it cuts an import cycle at runtime. Note that named type imports (`import { type Foo }`) aren't considered as type-only because it's not removed by the compiler if the `verbatimModuleSyntax` option is enabled. Enabled by default.",
3554
- "default": true,
3555
- "type": "boolean"
3554
+ "type": ["boolean", "null"]
3556
3555
  }
3557
3556
  },
3558
3557
  "additionalProperties": false
@@ -3588,8 +3587,7 @@
3588
3587
  "properties": {
3589
3588
  "allowForLoopAfterthoughts": {
3590
3589
  "description": "Allows unary operators ++ and -- in the afterthought (final expression) of a for loop.",
3591
- "default": false,
3592
- "type": "boolean"
3590
+ "type": ["boolean", "null"]
3593
3591
  }
3594
3592
  },
3595
3593
  "additionalProperties": false
@@ -3709,19 +3707,16 @@
3709
3707
  "properties": {
3710
3708
  "allowedStrings": {
3711
3709
  "description": "An array of strings that won't trigger the rule. Whitespaces are taken into consideration",
3712
- "default": [],
3713
- "type": "array",
3710
+ "type": ["array", "null"],
3714
3711
  "items": { "type": "string" }
3715
3712
  },
3716
3713
  "ignoreProps": {
3717
3714
  "description": "When enabled, strings inside props are always ignored",
3718
- "default": false,
3719
- "type": "boolean"
3715
+ "type": ["boolean", "null"]
3720
3716
  },
3721
3717
  "noStrings": {
3722
3718
  "description": "When enabled, also flag string literals inside JSX expressions and attributes",
3723
- "default": false,
3724
- "type": "boolean"
3719
+ "type": ["boolean", "null"]
3725
3720
  }
3726
3721
  },
3727
3722
  "additionalProperties": false
@@ -3744,20 +3739,17 @@
3744
3739
  "properties": {
3745
3740
  "inputComponents": {
3746
3741
  "description": "Array of component names that should be considered the same as an `input` element.",
3747
- "default": [],
3748
- "type": "array",
3742
+ "type": ["array", "null"],
3749
3743
  "items": { "type": "string" }
3750
3744
  },
3751
3745
  "labelAttributes": {
3752
3746
  "description": "Array of attributes that should be treated as the `label` accessible text content.",
3753
- "default": [],
3754
- "type": "array",
3747
+ "type": ["array", "null"],
3755
3748
  "items": { "type": "string" }
3756
3749
  },
3757
3750
  "labelComponents": {
3758
3751
  "description": "Array of component names that should be considered the same as a `label` element.",
3759
- "default": [],
3760
- "type": "array",
3752
+ "type": ["array", "null"],
3761
3753
  "items": { "type": "string" }
3762
3754
  }
3763
3755
  },
@@ -3986,8 +3978,10 @@
3986
3978
  "properties": {
3987
3979
  "propertyAssignment": {
3988
3980
  "description": "Whether to report an error when a dependency is listed in the dependencies array but isn't used. Defaults to `allow`.",
3989
- "default": "allow",
3990
- "allOf": [{ "$ref": "#/definitions/PropertyAssignmentMode" }]
3981
+ "anyOf": [
3982
+ { "$ref": "#/definitions/PropertyAssignmentMode" },
3983
+ { "type": "null" }
3984
+ ]
3991
3985
  }
3992
3986
  },
3993
3987
  "additionalProperties": false
@@ -4002,6 +3996,18 @@
4002
3996
  "type": "object",
4003
3997
  "additionalProperties": false
4004
3998
  },
3999
+ "NoParametersOnlyUsedInRecursionConfiguration": {
4000
+ "anyOf": [
4001
+ { "$ref": "#/definitions/RulePlainConfiguration" },
4002
+ {
4003
+ "$ref": "#/definitions/RuleWithNoParametersOnlyUsedInRecursionOptions"
4004
+ }
4005
+ ]
4006
+ },
4007
+ "NoParametersOnlyUsedInRecursionOptions": {
4008
+ "type": "object",
4009
+ "additionalProperties": false
4010
+ },
4005
4011
  "NoPositiveTabindexConfiguration": {
4006
4012
  "anyOf": [
4007
4013
  { "$ref": "#/definitions/RulePlainConfiguration" },
@@ -4033,8 +4039,7 @@
4033
4039
  "properties": {
4034
4040
  "defaultVisibility": {
4035
4041
  "description": "The default visibility to assume for symbols without visibility tag.\n\nDefault: **public**.",
4036
- "default": "public",
4037
- "allOf": [{ "$ref": "#/definitions/Visibility" }]
4042
+ "anyOf": [{ "$ref": "#/definitions/Visibility" }, { "type": "null" }]
4038
4043
  }
4039
4044
  },
4040
4045
  "additionalProperties": false
@@ -4189,7 +4194,10 @@
4189
4194
  "properties": {
4190
4195
  "elements": {
4191
4196
  "description": "Elements to restrict. Each key is the element name, and the value is the message to show when the element is used.",
4192
- "allOf": [{ "$ref": "#/definitions/CustomRestrictedElements" }]
4197
+ "anyOf": [
4198
+ { "$ref": "#/definitions/CustomRestrictedElements" },
4199
+ { "type": "null" }
4200
+ ]
4193
4201
  }
4194
4202
  },
4195
4203
  "additionalProperties": false
@@ -4205,7 +4213,7 @@
4205
4213
  "properties": {
4206
4214
  "deniedGlobals": {
4207
4215
  "description": "A list of names that should trigger the rule",
4208
- "type": "object",
4216
+ "type": ["object", "null"],
4209
4217
  "additionalProperties": { "type": "string" }
4210
4218
  }
4211
4219
  },
@@ -4222,7 +4230,7 @@
4222
4230
  "properties": {
4223
4231
  "paths": {
4224
4232
  "description": "A list of import paths that should trigger the rule.",
4225
- "type": "object",
4233
+ "type": ["object", "null"],
4226
4234
  "additionalProperties": { "$ref": "#/definitions/Paths" }
4227
4235
  },
4228
4236
  "patterns": {
@@ -4243,8 +4251,7 @@
4243
4251
  "type": "object",
4244
4252
  "properties": {
4245
4253
  "types": {
4246
- "default": {},
4247
- "type": "object",
4254
+ "type": ["object", "null"],
4248
4255
  "additionalProperties": {
4249
4256
  "$ref": "#/definitions/CustomRestrictedType"
4250
4257
  }
@@ -4263,7 +4270,6 @@
4263
4270
  "properties": {
4264
4271
  "entropyThreshold": {
4265
4272
  "description": "Set entropy threshold (default is 41).",
4266
- "default": null,
4267
4273
  "type": ["integer", "null"],
4268
4274
  "format": "uint16",
4269
4275
  "minimum": 0.0
@@ -4484,18 +4490,24 @@
4484
4490
  "properties": {
4485
4491
  "devDependencies": {
4486
4492
  "description": "If set to `false`, then the rule will show an error when `devDependencies` are imported. Defaults to `true`.",
4487
- "default": true,
4488
- "allOf": [{ "$ref": "#/definitions/DependencyAvailability" }]
4493
+ "anyOf": [
4494
+ { "$ref": "#/definitions/DependencyAvailability" },
4495
+ { "type": "null" }
4496
+ ]
4489
4497
  },
4490
4498
  "optionalDependencies": {
4491
4499
  "description": "If set to `false`, then the rule will show an error when `optionalDependencies` are imported. Defaults to `true`.",
4492
- "default": true,
4493
- "allOf": [{ "$ref": "#/definitions/DependencyAvailability" }]
4500
+ "anyOf": [
4501
+ { "$ref": "#/definitions/DependencyAvailability" },
4502
+ { "type": "null" }
4503
+ ]
4494
4504
  },
4495
4505
  "peerDependencies": {
4496
4506
  "description": "If set to `false`, then the rule will show an error when `peerDependencies` are imported. Defaults to `true`.",
4497
- "default": true,
4498
- "allOf": [{ "$ref": "#/definitions/DependencyAvailability" }]
4507
+ "anyOf": [
4508
+ { "$ref": "#/definitions/DependencyAvailability" },
4509
+ { "type": "null" }
4510
+ ]
4499
4511
  }
4500
4512
  },
4501
4513
  "additionalProperties": false
@@ -4511,8 +4523,7 @@
4511
4523
  "properties": {
4512
4524
  "checkTypes": {
4513
4525
  "description": "Check undeclared types.",
4514
- "default": false,
4515
- "type": "boolean"
4526
+ "type": ["boolean", "null"]
4516
4527
  }
4517
4528
  },
4518
4529
  "additionalProperties": false
@@ -4534,6 +4545,19 @@
4534
4545
  },
4535
4546
  "additionalProperties": false
4536
4547
  },
4548
+ "NoUnknownAttributeConfiguration": {
4549
+ "anyOf": [
4550
+ { "$ref": "#/definitions/RulePlainConfiguration" },
4551
+ { "$ref": "#/definitions/RuleWithNoUnknownAttributeOptions" }
4552
+ ]
4553
+ },
4554
+ "NoUnknownAttributeOptions": {
4555
+ "type": "object",
4556
+ "properties": {
4557
+ "ignore": { "type": ["array", "null"], "items": { "type": "string" } }
4558
+ },
4559
+ "additionalProperties": false
4560
+ },
4537
4561
  "NoUnknownFunctionConfiguration": {
4538
4562
  "anyOf": [
4539
4563
  { "$ref": "#/definitions/RulePlainConfiguration" },
@@ -4709,8 +4733,7 @@
4709
4733
  "properties": {
4710
4734
  "ignoreRestSiblings": {
4711
4735
  "description": "Whether to ignore unused variables from an object destructuring with a spread.",
4712
- "default": false,
4713
- "type": "boolean"
4736
+ "type": ["boolean", "null"]
4714
4737
  }
4715
4738
  },
4716
4739
  "additionalProperties": false
@@ -4766,8 +4789,7 @@
4766
4789
  "properties": {
4767
4790
  "ignoreRestSiblings": {
4768
4791
  "description": "Whether to ignore unused variables from an object destructuring with a spread.",
4769
- "default": true,
4770
- "type": "boolean"
4792
+ "type": ["boolean", "null"]
4771
4793
  }
4772
4794
  },
4773
4795
  "additionalProperties": false
@@ -5098,6 +5120,13 @@
5098
5120
  "description": "A list of rules that belong to this group",
5099
5121
  "type": "object",
5100
5122
  "properties": {
5123
+ "noContinue": {
5124
+ "description": "Disallow continue statements.",
5125
+ "anyOf": [
5126
+ { "$ref": "#/definitions/NoContinueConfiguration" },
5127
+ { "type": "null" }
5128
+ ]
5129
+ },
5101
5130
  "noDeprecatedImports": {
5102
5131
  "description": "Restrict imports of deprecated exports.",
5103
5132
  "anyOf": [
@@ -5161,6 +5190,15 @@
5161
5190
  { "type": "null" }
5162
5191
  ]
5163
5192
  },
5193
+ "noParametersOnlyUsedInRecursion": {
5194
+ "description": "Disallow function parameters that are only used in recursive calls.",
5195
+ "anyOf": [
5196
+ {
5197
+ "$ref": "#/definitions/NoParametersOnlyUsedInRecursionConfiguration"
5198
+ },
5199
+ { "type": "null" }
5200
+ ]
5201
+ },
5164
5202
  "noReactForwardRef": {
5165
5203
  "description": "Replaces usages of forwardRef with passing ref as a prop.",
5166
5204
  "anyOf": [
@@ -5175,6 +5213,13 @@
5175
5213
  { "type": "null" }
5176
5214
  ]
5177
5215
  },
5216
+ "noUnknownAttribute": {
5217
+ "description": "Disallow unknown DOM properties.",
5218
+ "anyOf": [
5219
+ { "$ref": "#/definitions/NoUnknownAttributeConfiguration" },
5220
+ { "type": "null" }
5221
+ ]
5222
+ },
5178
5223
  "noUnnecessaryConditions": {
5179
5224
  "description": "Disallow unnecessary type-based conditions that can be statically determined as redundant.",
5180
5225
  "anyOf": [
@@ -5345,12 +5390,13 @@
5345
5390
  "type": "object",
5346
5391
  "properties": {
5347
5392
  "groups": {
5348
- "default": [],
5349
- "allOf": [{ "$ref": "#/definitions/ImportGroups" }]
5393
+ "anyOf": [
5394
+ { "$ref": "#/definitions/ImportGroups" },
5395
+ { "type": "null" }
5396
+ ]
5350
5397
  },
5351
5398
  "identifierOrder": {
5352
- "default": "natural",
5353
- "allOf": [{ "$ref": "#/definitions/SortOrder" }]
5399
+ "anyOf": [{ "$ref": "#/definitions/SortOrder" }, { "type": "null" }]
5354
5400
  }
5355
5401
  },
5356
5402
  "additionalProperties": false
@@ -6498,6 +6544,21 @@
6498
6544
  },
6499
6545
  "additionalProperties": false
6500
6546
  },
6547
+ "RuleWithNoContinueOptions": {
6548
+ "type": "object",
6549
+ "required": ["level"],
6550
+ "properties": {
6551
+ "level": {
6552
+ "description": "The severity of the emitted diagnostics by the rule",
6553
+ "allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
6554
+ },
6555
+ "options": {
6556
+ "description": "Rule's options",
6557
+ "allOf": [{ "$ref": "#/definitions/NoContinueOptions" }]
6558
+ }
6559
+ },
6560
+ "additionalProperties": false
6561
+ },
6501
6562
  "RuleWithNoControlCharactersInRegexOptions": {
6502
6563
  "type": "object",
6503
6564
  "required": ["level"],
@@ -8247,6 +8308,27 @@
8247
8308
  },
8248
8309
  "additionalProperties": false
8249
8310
  },
8311
+ "RuleWithNoParametersOnlyUsedInRecursionOptions": {
8312
+ "type": "object",
8313
+ "required": ["level"],
8314
+ "properties": {
8315
+ "fix": {
8316
+ "description": "The kind of the code actions emitted by the rule",
8317
+ "anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
8318
+ },
8319
+ "level": {
8320
+ "description": "The severity of the emitted diagnostics by the rule",
8321
+ "allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
8322
+ },
8323
+ "options": {
8324
+ "description": "Rule's options",
8325
+ "allOf": [
8326
+ { "$ref": "#/definitions/NoParametersOnlyUsedInRecursionOptions" }
8327
+ ]
8328
+ }
8329
+ },
8330
+ "additionalProperties": false
8331
+ },
8250
8332
  "RuleWithNoPositiveTabindexOptions": {
8251
8333
  "type": "object",
8252
8334
  "required": ["level"],
@@ -9026,6 +9108,21 @@
9026
9108
  },
9027
9109
  "additionalProperties": false
9028
9110
  },
9111
+ "RuleWithNoUnknownAttributeOptions": {
9112
+ "type": "object",
9113
+ "required": ["level"],
9114
+ "properties": {
9115
+ "level": {
9116
+ "description": "The severity of the emitted diagnostics by the rule",
9117
+ "allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
9118
+ },
9119
+ "options": {
9120
+ "description": "Rule's options",
9121
+ "allOf": [{ "$ref": "#/definitions/NoUnknownAttributeOptions" }]
9122
+ }
9123
+ },
9124
+ "additionalProperties": false
9125
+ },
9029
9126
  "RuleWithNoUnknownFunctionOptions": {
9030
9127
  "type": "object",
9031
9128
  "required": ["level"],
@@ -13845,12 +13942,12 @@
13845
13942
  "properties": {
13846
13943
  "allowConstantExport": {
13847
13944
  "description": "Allows the export of constants. This option is for environments that support it, such as [Vite](https://vitejs.dev/)",
13848
- "default": false,
13849
- "type": "boolean"
13945
+ "default": null,
13946
+ "type": ["boolean", "null"]
13850
13947
  },
13851
13948
  "allowExportNames": {
13852
13949
  "description": "A list of names that can be additionally exported from the module This option is for exports that do not hinder [React Fast Refresh](https://github.com/facebook/react/tree/main/packages/react-refresh), such as [`meta` in Remix](https://remix.run/docs/en/main/route/meta)",
13853
- "type": "array",
13950
+ "type": ["array", "null"],
13854
13951
  "items": { "type": "string" }
13855
13952
  }
13856
13953
  },
@@ -13866,8 +13963,10 @@
13866
13963
  "type": "object",
13867
13964
  "properties": {
13868
13965
  "syntax": {
13869
- "default": "shorthand",
13870
- "allOf": [{ "$ref": "#/definitions/ConsistentArrayType" }]
13966
+ "anyOf": [
13967
+ { "$ref": "#/definitions/ConsistentArrayType" },
13968
+ { "type": "null" }
13969
+ ]
13871
13970
  }
13872
13971
  },
13873
13972
  "additionalProperties": false
@@ -13884,13 +13983,14 @@
13884
13983
  "properties": {
13885
13984
  "requireForObjectLiteral": {
13886
13985
  "description": "Determines whether the rule enforces a consistent style when the return value is an object literal.\n\nThis option is only applicable when used in conjunction with the `asNeeded` option.",
13887
- "default": false,
13888
- "type": "boolean"
13986
+ "type": ["boolean", "null"]
13889
13987
  },
13890
13988
  "style": {
13891
13989
  "description": "The style to enforce for arrow function return statements.",
13892
- "default": "asNeeded",
13893
- "allOf": [{ "$ref": "#/definitions/UseConsistentArrowReturnStyle" }]
13990
+ "anyOf": [
13991
+ { "$ref": "#/definitions/UseConsistentArrowReturnStyle" },
13992
+ { "type": "null" }
13993
+ ]
13894
13994
  }
13895
13995
  },
13896
13996
  "additionalProperties": false
@@ -13949,8 +14049,10 @@
13949
14049
  "properties": {
13950
14050
  "accessibility": {
13951
14051
  "description": "The kind of accessibility you want to enforce. Default to \"noPublic\"",
13952
- "default": "noPublic",
13953
- "allOf": [{ "$ref": "#/definitions/Accessibility" }]
14052
+ "anyOf": [
14053
+ { "$ref": "#/definitions/Accessibility" },
14054
+ { "type": "null" }
14055
+ ]
13954
14056
  }
13955
14057
  },
13956
14058
  "additionalProperties": false
@@ -13968,8 +14070,10 @@
13968
14070
  "properties": {
13969
14071
  "syntax": {
13970
14072
  "description": "The preferred syntax to enforce.",
13971
- "default": "shorthand",
13972
- "allOf": [{ "$ref": "#/definitions/ObjectPropertySyntax" }]
14073
+ "anyOf": [
14074
+ { "$ref": "#/definitions/ObjectPropertySyntax" },
14075
+ { "type": "null" }
14076
+ ]
13973
14077
  }
13974
14078
  },
13975
14079
  "additionalProperties": false
@@ -13984,8 +14088,10 @@
13984
14088
  "type": "object",
13985
14089
  "properties": {
13986
14090
  "style": {
13987
- "default": "interface",
13988
- "allOf": [{ "$ref": "#/definitions/ConsistentTypeDefinition" }]
14091
+ "anyOf": [
14092
+ { "$ref": "#/definitions/ConsistentTypeDefinition" },
14093
+ { "type": "null" }
14094
+ ]
13989
14095
  }
13990
14096
  },
13991
14097
  "additionalProperties": false
@@ -14042,9 +14148,7 @@
14042
14148
  },
14043
14149
  "UseDeprecatedDateOptions": {
14044
14150
  "type": "object",
14045
- "properties": {
14046
- "argumentName": { "default": "deletionDate", "type": "string" }
14047
- },
14151
+ "properties": { "argumentName": { "type": ["string", "null"] } },
14048
14152
  "additionalProperties": false
14049
14153
  },
14050
14154
  "UseDeprecatedReasonConfiguration": {
@@ -14088,19 +14192,16 @@
14088
14192
  "properties": {
14089
14193
  "hooks": {
14090
14194
  "description": "List of hooks of which the dependencies should be validated.",
14091
- "default": [],
14092
- "type": "array",
14195
+ "type": ["array", "null"],
14093
14196
  "items": { "$ref": "#/definitions/Hook" }
14094
14197
  },
14095
14198
  "reportMissingDependenciesArray": {
14096
14199
  "description": "Whether to report an error when a hook has no dependencies array.",
14097
- "default": false,
14098
- "type": "boolean"
14200
+ "type": ["boolean", "null"]
14099
14201
  },
14100
14202
  "reportUnnecessaryDependencies": {
14101
14203
  "description": "Whether to report an error when a dependency is listed in the dependencies array but isn't used. Defaults to true.",
14102
- "default": true,
14103
- "type": "boolean"
14204
+ "type": ["boolean", "null"]
14104
14205
  }
14105
14206
  },
14106
14207
  "additionalProperties": false
@@ -14173,7 +14274,10 @@
14173
14274
  "properties": {
14174
14275
  "filenameCases": {
14175
14276
  "description": "Allowed cases for file names.",
14176
- "allOf": [{ "$ref": "#/definitions/FilenameCases" }]
14277
+ "anyOf": [
14278
+ { "$ref": "#/definitions/FilenameCases" },
14279
+ { "type": "null" }
14280
+ ]
14177
14281
  },
14178
14282
  "match": {
14179
14283
  "description": "Regular expression to enforce",
@@ -14181,11 +14285,11 @@
14181
14285
  },
14182
14286
  "requireAscii": {
14183
14287
  "description": "If `false`, then non-ASCII characters are allowed.",
14184
- "type": "boolean"
14288
+ "type": ["boolean", "null"]
14185
14289
  },
14186
14290
  "strictCase": {
14187
14291
  "description": "If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].",
14188
- "type": "boolean"
14292
+ "type": ["boolean", "null"]
14189
14293
  }
14190
14294
  },
14191
14295
  "additionalProperties": false
@@ -14356,8 +14460,7 @@
14356
14460
  "properties": {
14357
14461
  "forceJsExtensions": {
14358
14462
  "description": "If `true`, the suggested extension is always `.js` regardless of what extension the source file has in your project.",
14359
- "default": false,
14360
- "type": "boolean"
14463
+ "type": ["boolean", "null"]
14361
14464
  }
14362
14465
  },
14363
14466
  "additionalProperties": false
@@ -14373,8 +14476,7 @@
14373
14476
  "properties": {
14374
14477
  "style": {
14375
14478
  "description": "The style to apply when import types. Default to \"auto\"",
14376
- "default": "auto",
14377
- "allOf": [{ "$ref": "#/definitions/Style2" }]
14479
+ "anyOf": [{ "$ref": "#/definitions/Style2" }, { "type": "null" }]
14378
14480
  }
14379
14481
  },
14380
14482
  "additionalProperties": false
@@ -14431,8 +14533,7 @@
14431
14533
  "properties": {
14432
14534
  "checkShorthandFragments": {
14433
14535
  "description": "Set to `true` to check shorthand fragments (`<></>`)",
14434
- "default": false,
14435
- "type": "boolean"
14536
+ "type": ["boolean", "null"]
14436
14537
  }
14437
14538
  },
14438
14539
  "additionalProperties": false
@@ -14488,8 +14589,7 @@
14488
14589
  "properties": {
14489
14590
  "max": {
14490
14591
  "description": "Maximum number of parameters allowed (default: 4)",
14491
- "default": 4,
14492
- "type": "integer",
14592
+ "type": ["integer", "null"],
14493
14593
  "format": "uint8",
14494
14594
  "minimum": 0.0
14495
14595
  }
@@ -14528,16 +14628,16 @@
14528
14628
  "properties": {
14529
14629
  "conventions": {
14530
14630
  "description": "Custom conventions.",
14531
- "type": "array",
14631
+ "type": ["array", "null"],
14532
14632
  "items": { "$ref": "#/definitions/Convention" }
14533
14633
  },
14534
14634
  "requireAscii": {
14535
14635
  "description": "If `false`, then non-ASCII characters are allowed.",
14536
- "type": "boolean"
14636
+ "type": ["boolean", "null"]
14537
14637
  },
14538
14638
  "strictCase": {
14539
14639
  "description": "If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].",
14540
- "type": "boolean"
14640
+ "type": ["boolean", "null"]
14541
14641
  }
14542
14642
  },
14543
14643
  "additionalProperties": false
@@ -14685,7 +14785,7 @@
14685
14785
  "properties": {
14686
14786
  "checkAllProperties": {
14687
14787
  "description": "When `true`, the keywords `public`, `protected`, and `private` are analyzed by the rule.",
14688
- "type": "boolean"
14788
+ "type": ["boolean", "null"]
14689
14789
  }
14690
14790
  },
14691
14791
  "additionalProperties": false
@@ -14708,9 +14808,7 @@
14708
14808
  },
14709
14809
  "UseSelfClosingElementsOptions": {
14710
14810
  "type": "object",
14711
- "properties": {
14712
- "ignoreHtmlElements": { "default": false, "type": "boolean" }
14713
- },
14811
+ "properties": { "ignoreHtmlElements": { "type": ["boolean", "null"] } },
14714
14812
  "additionalProperties": false
14715
14813
  },
14716
14814
  "UseSemanticElementsConfiguration": {
@@ -14797,8 +14895,7 @@
14797
14895
  "type": "object",
14798
14896
  "properties": {
14799
14897
  "sortOrder": {
14800
- "default": "natural",
14801
- "allOf": [{ "$ref": "#/definitions/SortOrder" }]
14898
+ "anyOf": [{ "$ref": "#/definitions/SortOrder" }, { "type": "null" }]
14802
14899
  }
14803
14900
  },
14804
14901
  "additionalProperties": false
@@ -14829,8 +14926,7 @@
14829
14926
  "type": "object",
14830
14927
  "properties": {
14831
14928
  "sortOrder": {
14832
- "default": "natural",
14833
- "allOf": [{ "$ref": "#/definitions/SortOrder" }]
14929
+ "anyOf": [{ "$ref": "#/definitions/SortOrder" }, { "type": "null" }]
14834
14930
  }
14835
14931
  },
14836
14932
  "additionalProperties": false
@@ -14934,8 +15030,7 @@
14934
15030
  "properties": {
14935
15031
  "excludedComponents": {
14936
15032
  "description": "Component names that accept an `id` prop that does not translate to a DOM element id.",
14937
- "default": [],
14938
- "type": "array",
15033
+ "type": ["array", "null"],
14939
15034
  "items": { "type": "string" },
14940
15035
  "uniqueItems": true
14941
15036
  }
@@ -14973,14 +15068,12 @@
14973
15068
  "properties": {
14974
15069
  "allowInvalidRoles": {
14975
15070
  "description": "It allows specifying a list of roles that might be invalid otherwise",
14976
- "default": [],
14977
- "type": "array",
15071
+ "type": ["array", "null"],
14978
15072
  "items": { "type": "string" }
14979
15073
  },
14980
15074
  "ignoreNonDom": {
14981
15075
  "description": "Use this option to ignore non-DOM elements, such as custom components",
14982
- "default": false,
14983
- "type": "boolean"
15076
+ "type": ["boolean", "null"]
14984
15077
  }
14985
15078
  },
14986
15079
  "additionalProperties": false
@@ -15006,8 +15099,7 @@
15006
15099
  "properties": {
15007
15100
  "inputComponents": {
15008
15101
  "description": "`input` like custom components that should be checked.",
15009
- "default": [],
15010
- "type": "array",
15102
+ "type": ["array", "null"],
15011
15103
  "items": { "type": "string" }
15012
15104
  }
15013
15105
  },
@@ -15051,8 +15143,7 @@
15051
15143
  "properties": {
15052
15144
  "order": {
15053
15145
  "description": "The order of the Vue define macros.",
15054
- "default": [],
15055
- "type": "array",
15146
+ "type": ["array", "null"],
15056
15147
  "items": { "type": "string" }
15057
15148
  }
15058
15149
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biomejs/biome",
3
- "version": "2.3.2",
3
+ "version": "2.3.4",
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.3.2",
50
- "@biomejs/cli-win32-arm64": "2.3.2",
51
- "@biomejs/cli-darwin-x64": "2.3.2",
52
- "@biomejs/cli-darwin-arm64": "2.3.2",
53
- "@biomejs/cli-linux-x64": "2.3.2",
54
- "@biomejs/cli-linux-arm64": "2.3.2",
55
- "@biomejs/cli-linux-x64-musl": "2.3.2",
56
- "@biomejs/cli-linux-arm64-musl": "2.3.2"
49
+ "@biomejs/cli-win32-x64": "2.3.4",
50
+ "@biomejs/cli-win32-arm64": "2.3.4",
51
+ "@biomejs/cli-darwin-x64": "2.3.4",
52
+ "@biomejs/cli-darwin-arm64": "2.3.4",
53
+ "@biomejs/cli-linux-x64": "2.3.4",
54
+ "@biomejs/cli-linux-arm64": "2.3.4",
55
+ "@biomejs/cli-linux-x64-musl": "2.3.4",
56
+ "@biomejs/cli-linux-arm64-musl": "2.3.4"
57
57
  }
58
58
  }