@biomejs/biome 2.5.12 → 2.5.13

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
@@ -113,9 +113,9 @@ Biome offers [enterprise support](https://biomejs.dev/enterprise), where Core Co
113
113
  <td align="center" valign="middle">
114
114
  <a href="https://depot.dev/?utm_source=biome&utm_medium=readme" target="_blank">
115
115
  <picture>
116
- <source media="(prefers-color-scheme: light)" srcset="https://depot.dev/assets/brand/1693758816/depot-logo-horizontal-on-light@3x.png" />
117
- <source media="(prefers-color-scheme: dark)" srcset="https://depot.dev/assets/brand/1693758816/depot-logo-horizontal-on-dark@3x.png" />
118
- <img src="https://depot.dev/assets/brand/1693758816/depot-logo-horizontal-on-light@3x.png" width="600" alt="Depot logo" />
116
+ <source media="(prefers-color-scheme: light)" srcset="https://depot.dev/assets/brand/horizontal/depot-logo-horizontal-on-light-x3.png" />
117
+ <source media="(prefers-color-scheme: dark)" srcset="https://depot.dev/assets/brand/horizontal/depot-logo-horizontal-on-dark-x3.png" />
118
+ <img src="https://depot.dev/assets/brand/horizontal/depot-logo-horizontal-on-light-x3.png" width="600" alt="Depot logo" />
119
119
  </picture>
120
120
  </a>
121
121
  </td>
@@ -5645,6 +5645,16 @@
5645
5645
  "type": "object",
5646
5646
  "additionalProperties": false
5647
5647
  },
5648
+ "NoSvelteAtHtmlTagsConfiguration": {
5649
+ "oneOf": [
5650
+ { "$ref": "#/$defs/RulePlainConfiguration" },
5651
+ { "$ref": "#/$defs/RuleWithNoSvelteAtHtmlTagsOptions" }
5652
+ ]
5653
+ },
5654
+ "NoSvelteAtHtmlTagsOptions": {
5655
+ "type": "object",
5656
+ "additionalProperties": false
5657
+ },
5648
5658
  "NoSvelteLegacyConstConfiguration": {
5649
5659
  "oneOf": [
5650
5660
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -6106,6 +6116,16 @@
6106
6116
  "type": "object",
6107
6117
  "additionalProperties": false
6108
6118
  },
6119
+ "NoUnsafeIframeSandboxConfiguration": {
6120
+ "oneOf": [
6121
+ { "$ref": "#/$defs/RulePlainConfiguration" },
6122
+ { "$ref": "#/$defs/RuleWithNoUnsafeIframeSandboxOptions" }
6123
+ ]
6124
+ },
6125
+ "NoUnsafeIframeSandboxOptions": {
6126
+ "type": "object",
6127
+ "additionalProperties": false
6128
+ },
6109
6129
  "NoUnsafeNegationConfiguration": {
6110
6130
  "oneOf": [
6111
6131
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -6736,6 +6756,16 @@
6736
6756
  ]
6737
6757
  },
6738
6758
  "NoWithOptions": { "type": "object", "additionalProperties": false },
6759
+ "NoXorAsExponentiationConfiguration": {
6760
+ "oneOf": [
6761
+ { "$ref": "#/$defs/RulePlainConfiguration" },
6762
+ { "$ref": "#/$defs/RuleWithNoXorAsExponentiationOptions" }
6763
+ ]
6764
+ },
6765
+ "NoXorAsExponentiationOptions": {
6766
+ "type": "object",
6767
+ "additionalProperties": false
6768
+ },
6739
6769
  "NoYodaExpressionConfiguration": {
6740
6770
  "oneOf": [
6741
6771
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -7068,6 +7098,13 @@
7068
7098
  { "type": "null" }
7069
7099
  ]
7070
7100
  },
7101
+ "noSvelteAtHtmlTags": {
7102
+ "description": "Disallow the use of Svelte's {@html} tag.\nSee https://biomejs.dev/linter/rules/no-svelte-at-html-tags",
7103
+ "anyOf": [
7104
+ { "$ref": "#/$defs/NoSvelteAtHtmlTagsConfiguration" },
7105
+ { "type": "null" }
7106
+ ]
7107
+ },
7071
7108
  "noSvelteLegacyConst": {
7072
7109
  "description": "Disallow legacy Svelte {@const} tags.\nSee https://biomejs.dev/linter/rules/no-svelte-legacy-const",
7073
7110
  "anyOf": [
@@ -7131,6 +7168,13 @@
7131
7168
  { "type": "null" }
7132
7169
  ]
7133
7170
  },
7171
+ "noUnsafeIframeSandbox": {
7172
+ "description": "Disallow an unsafe combination of the sandbox attribute.\nSee https://biomejs.dev/linter/rules/no-unsafe-iframe-sandbox",
7173
+ "anyOf": [
7174
+ { "$ref": "#/$defs/NoUnsafeIframeSandboxConfiguration" },
7175
+ { "type": "null" }
7176
+ ]
7177
+ },
7134
7178
  "noUnsafePlusOperands": {
7135
7179
  "description": "Disallow + operations with operands that are known to be unsafe.\nSee https://biomejs.dev/linter/rules/no-unsafe-plus-operands",
7136
7180
  "anyOf": [
@@ -7194,6 +7238,13 @@
7194
7238
  { "type": "null" }
7195
7239
  ]
7196
7240
  },
7241
+ "noXorAsExponentiation": {
7242
+ "description": "Disallow the bitwise XOR operator where exponentiation was likely intended.\nSee https://biomejs.dev/linter/rules/no-xor-as-exponentiation",
7243
+ "anyOf": [
7244
+ { "$ref": "#/$defs/NoXorAsExponentiationConfiguration" },
7245
+ { "type": "null" }
7246
+ ]
7247
+ },
7197
7248
  "preset": {
7198
7249
  "description": "Enables a particular rule preset",
7199
7250
  "anyOf": [{ "$ref": "#/$defs/PresetConfig" }, { "type": "null" }]
@@ -7230,6 +7281,13 @@
7230
7281
  { "type": "null" }
7231
7282
  ]
7232
7283
  },
7284
+ "useBetterDomTraversing": {
7285
+ "description": "Prefer modern DOM traversal APIs over positional indexes and chained walks.\nSee https://biomejs.dev/linter/rules/use-better-dom-traversing",
7286
+ "anyOf": [
7287
+ { "$ref": "#/$defs/UseBetterDomTraversingConfiguration" },
7288
+ { "type": "null" }
7289
+ ]
7290
+ },
7233
7291
  "useConsistentTestIt": {
7234
7292
  "description": "Enforce consistent use of it or test for test functions.\nSee https://biomejs.dev/linter/rules/use-consistent-test-it",
7235
7293
  "anyOf": [
@@ -7321,6 +7379,13 @@
7321
7379
  { "type": "null" }
7322
7380
  ]
7323
7381
  },
7382
+ "useLayeredStyles": {
7383
+ "description": "Enforce style rules to be defined within a cascade layer.\nSee https://biomejs.dev/linter/rules/use-layered-styles",
7384
+ "anyOf": [
7385
+ { "$ref": "#/$defs/UseLayeredStylesConfiguration" },
7386
+ { "type": "null" }
7387
+ ]
7388
+ },
7324
7389
  "useMathMinMax": {
7325
7390
  "description": "Prefer Math.min() and Math.max() over ternaries for simple comparisons.\nSee https://biomejs.dev/linter/rules/use-math-min-max",
7326
7391
  "anyOf": [
@@ -7500,6 +7565,13 @@
7500
7565
  { "type": "null" }
7501
7566
  ]
7502
7567
  },
7568
+ "useVueBaseImport": {
7569
+ "description": "Enforce importing Vue's public entry point instead of internal Vue packages.\nSee https://biomejs.dev/linter/rules/use-vue-base-import",
7570
+ "anyOf": [
7571
+ { "$ref": "#/$defs/UseVueBaseImportConfiguration" },
7572
+ { "type": "null" }
7573
+ ]
7574
+ },
7503
7575
  "useVueConsistentDefinePropsDeclaration": {
7504
7576
  "description": "Enforce consistent defineProps declaration style.\nSee https://biomejs.dev/linter/rules/use-vue-consistent-define-props-declaration",
7505
7577
  "anyOf": [
@@ -10445,6 +10517,15 @@
10445
10517
  "additionalProperties": false,
10446
10518
  "required": ["level"]
10447
10519
  },
10520
+ "RuleWithNoSvelteAtHtmlTagsOptions": {
10521
+ "type": "object",
10522
+ "properties": {
10523
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10524
+ "options": { "$ref": "#/$defs/NoSvelteAtHtmlTagsOptions" }
10525
+ },
10526
+ "additionalProperties": false,
10527
+ "required": ["level"]
10528
+ },
10448
10529
  "RuleWithNoSvelteLegacyConstOptions": {
10449
10530
  "type": "object",
10450
10531
  "properties": {
@@ -10783,6 +10864,15 @@
10783
10864
  "additionalProperties": false,
10784
10865
  "required": ["level"]
10785
10866
  },
10867
+ "RuleWithNoUnsafeIframeSandboxOptions": {
10868
+ "type": "object",
10869
+ "properties": {
10870
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10871
+ "options": { "$ref": "#/$defs/NoUnsafeIframeSandboxOptions" }
10872
+ },
10873
+ "additionalProperties": false,
10874
+ "required": ["level"]
10875
+ },
10786
10876
  "RuleWithNoUnsafeNegationOptions": {
10787
10877
  "type": "object",
10788
10878
  "properties": {
@@ -11319,6 +11409,16 @@
11319
11409
  "additionalProperties": false,
11320
11410
  "required": ["level"]
11321
11411
  },
11412
+ "RuleWithNoXorAsExponentiationOptions": {
11413
+ "type": "object",
11414
+ "properties": {
11415
+ "fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
11416
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
11417
+ "options": { "$ref": "#/$defs/NoXorAsExponentiationOptions" }
11418
+ },
11419
+ "additionalProperties": false,
11420
+ "required": ["level"]
11421
+ },
11322
11422
  "RuleWithNoYodaExpressionOptions": {
11323
11423
  "type": "object",
11324
11424
  "properties": {
@@ -11490,6 +11590,16 @@
11490
11590
  "additionalProperties": false,
11491
11591
  "required": ["level"]
11492
11592
  },
11593
+ "RuleWithUseBetterDomTraversingOptions": {
11594
+ "type": "object",
11595
+ "properties": {
11596
+ "fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
11597
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
11598
+ "options": { "$ref": "#/$defs/UseBetterDomTraversingOptions" }
11599
+ },
11600
+ "additionalProperties": false,
11601
+ "required": ["level"]
11602
+ },
11493
11603
  "RuleWithUseBiomeIgnoreFolderOptions": {
11494
11604
  "type": "object",
11495
11605
  "properties": {
@@ -12212,6 +12322,15 @@
12212
12322
  "additionalProperties": false,
12213
12323
  "required": ["level"]
12214
12324
  },
12325
+ "RuleWithUseLayeredStylesOptions": {
12326
+ "type": "object",
12327
+ "properties": {
12328
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
12329
+ "options": { "$ref": "#/$defs/UseLayeredStylesOptions" }
12330
+ },
12331
+ "additionalProperties": false,
12332
+ "required": ["level"]
12333
+ },
12215
12334
  "RuleWithUseLiteralEnumMembersOptions": {
12216
12335
  "type": "object",
12217
12336
  "properties": {
@@ -12952,6 +13071,16 @@
12952
13071
  "additionalProperties": false,
12953
13072
  "required": ["level"]
12954
13073
  },
13074
+ "RuleWithUseVueBaseImportOptions": {
13075
+ "type": "object",
13076
+ "properties": {
13077
+ "fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
13078
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
13079
+ "options": { "$ref": "#/$defs/UseVueBaseImportOptions" }
13080
+ },
13081
+ "additionalProperties": false,
13082
+ "required": ["level"]
13083
+ },
12955
13084
  "RuleWithUseVueConsistentDefinePropsDeclarationOptions": {
12956
13085
  "type": "object",
12957
13086
  "properties": {
@@ -15265,6 +15394,16 @@
15265
15394
  },
15266
15395
  "additionalProperties": false
15267
15396
  },
15397
+ "UseBetterDomTraversingConfiguration": {
15398
+ "oneOf": [
15399
+ { "$ref": "#/$defs/RulePlainConfiguration" },
15400
+ { "$ref": "#/$defs/RuleWithUseBetterDomTraversingOptions" }
15401
+ ]
15402
+ },
15403
+ "UseBetterDomTraversingOptions": {
15404
+ "type": "object",
15405
+ "additionalProperties": false
15406
+ },
15268
15407
  "UseBiomeIgnoreFolderConfiguration": {
15269
15408
  "oneOf": [
15270
15409
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -16248,6 +16387,22 @@
16248
16387
  "type": "object",
16249
16388
  "additionalProperties": false
16250
16389
  },
16390
+ "UseLayeredStylesConfiguration": {
16391
+ "oneOf": [
16392
+ { "$ref": "#/$defs/RulePlainConfiguration" },
16393
+ { "$ref": "#/$defs/RuleWithUseLayeredStylesOptions" }
16394
+ ]
16395
+ },
16396
+ "UseLayeredStylesOptions": {
16397
+ "type": "object",
16398
+ "properties": {
16399
+ "requireImportLayers": {
16400
+ "description": "Require `@import` rules to have a cascade layer. Defaults to `true`.",
16401
+ "type": ["boolean", "null"]
16402
+ }
16403
+ },
16404
+ "additionalProperties": false
16405
+ },
16251
16406
  "UseLiteralEnumMembersConfiguration": {
16252
16407
  "oneOf": [
16253
16408
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -17279,6 +17434,16 @@
17279
17434
  ]
17280
17435
  },
17281
17436
  "UseVarsOnTopOptions": { "type": "object", "additionalProperties": false },
17437
+ "UseVueBaseImportConfiguration": {
17438
+ "oneOf": [
17439
+ { "$ref": "#/$defs/RulePlainConfiguration" },
17440
+ { "$ref": "#/$defs/RuleWithUseVueBaseImportOptions" }
17441
+ ]
17442
+ },
17443
+ "UseVueBaseImportOptions": {
17444
+ "type": "object",
17445
+ "additionalProperties": false
17446
+ },
17282
17447
  "UseVueConsistentDefinePropsDeclarationConfiguration": {
17283
17448
  "oneOf": [
17284
17449
  { "$ref": "#/$defs/RulePlainConfiguration" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biomejs/biome",
3
- "version": "2.5.12",
3
+ "version": "2.5.13",
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.5.12",
50
- "@biomejs/cli-win32-arm64": "2.5.12",
51
- "@biomejs/cli-darwin-x64": "2.5.12",
52
- "@biomejs/cli-darwin-arm64": "2.5.12",
53
- "@biomejs/cli-linux-x64": "2.5.12",
54
- "@biomejs/cli-linux-arm64": "2.5.12",
55
- "@biomejs/cli-linux-x64-musl": "2.5.12",
56
- "@biomejs/cli-linux-arm64-musl": "2.5.12"
49
+ "@biomejs/cli-win32-x64": "2.5.13",
50
+ "@biomejs/cli-win32-arm64": "2.5.13",
51
+ "@biomejs/cli-darwin-x64": "2.5.13",
52
+ "@biomejs/cli-darwin-arm64": "2.5.13",
53
+ "@biomejs/cli-linux-x64": "2.5.13",
54
+ "@biomejs/cli-linux-arm64": "2.5.13",
55
+ "@biomejs/cli-linux-x64-musl": "2.5.13",
56
+ "@biomejs/cli-linux-arm64-musl": "2.5.13"
57
57
  }
58
58
  }