@biomejs/biome 2.5.8 → 2.5.9

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.
@@ -6079,6 +6079,16 @@
6079
6079
  "type": "object",
6080
6080
  "additionalProperties": false
6081
6081
  },
6082
+ "NoUnsafeTypeAssertionConfiguration": {
6083
+ "oneOf": [
6084
+ { "$ref": "#/$defs/RulePlainConfiguration" },
6085
+ { "$ref": "#/$defs/RuleWithNoUnsafeTypeAssertionOptions" }
6086
+ ]
6087
+ },
6088
+ "NoUnsafeTypeAssertionOptions": {
6089
+ "type": "object",
6090
+ "additionalProperties": false
6091
+ },
6082
6092
  "NoUntrustedLicensesConfiguration": {
6083
6093
  "oneOf": [
6084
6094
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -7019,6 +7029,13 @@
7019
7029
  { "type": "null" }
7020
7030
  ]
7021
7031
  },
7032
+ "noUnsafeTypeAssertion": {
7033
+ "description": "Disallow TypeScript type assertions other than const assertions.\nSee https://biomejs.dev/linter/rules/no-unsafe-type-assertion",
7034
+ "anyOf": [
7035
+ { "$ref": "#/$defs/NoUnsafeTypeAssertionConfiguration" },
7036
+ { "type": "null" }
7037
+ ]
7038
+ },
7022
7039
  "noUntrustedLicenses": {
7023
7040
  "description": "Disallow dependencies with untrusted licenses.\nSee https://biomejs.dev/linter/rules/no-untrusted-licenses",
7024
7041
  "anyOf": [
@@ -7076,6 +7093,13 @@
7076
7093
  { "type": "null" }
7077
7094
  ]
7078
7095
  },
7096
+ "useAstroClientOnlyDirectiveValue": {
7097
+ "description": "Require a value for Astro's client:only directive.\nSee https://biomejs.dev/linter/rules/use-astro-client-only-directive-value",
7098
+ "anyOf": [
7099
+ { "$ref": "#/$defs/UseAstroClientOnlyDirectiveValueConfiguration" },
7100
+ { "type": "null" }
7101
+ ]
7102
+ },
7079
7103
  "useAwaitThenable": {
7080
7104
  "description": "Enforce that await is only used on Promise values.\nSee https://biomejs.dev/linter/rules/use-await-thenable",
7081
7105
  "anyOf": [
@@ -7097,6 +7121,13 @@
7097
7121
  { "type": "null" }
7098
7122
  ]
7099
7123
  },
7124
+ "useControlLabel": {
7125
+ "description": "Enforce that interactive control elements have an accessible label.\nSee https://biomejs.dev/linter/rules/use-control-label",
7126
+ "anyOf": [
7127
+ { "$ref": "#/$defs/UseControlLabelConfiguration" },
7128
+ { "type": "null" }
7129
+ ]
7130
+ },
7100
7131
  "useDisposables": {
7101
7132
  "description": "Detects a disposable object assigned to a variable without using or await using syntax.\nSee https://biomejs.dev/linter/rules/use-disposables",
7102
7133
  "anyOf": [
@@ -7181,6 +7212,13 @@
7181
7212
  { "type": "null" }
7182
7213
  ]
7183
7214
  },
7215
+ "useNamedLayer": {
7216
+ "description": "Disallow anonymous cascade layers.\nSee https://biomejs.dev/linter/rules/use-named-layer",
7217
+ "anyOf": [
7218
+ { "$ref": "#/$defs/UseNamedLayerConfiguration" },
7219
+ { "type": "null" }
7220
+ ]
7221
+ },
7184
7222
  "useNullishCoalescing": {
7185
7223
  "description": "Enforce using the nullish coalescing operator (??) instead of logical or (||).\nSee https://biomejs.dev/linter/rules/use-nullish-coalescing",
7186
7224
  "anyOf": [
@@ -7283,6 +7321,13 @@
7283
7321
  { "type": "null" }
7284
7322
  ]
7285
7323
  },
7324
+ "useTailwindShorthandClasses": {
7325
+ "description": "Enforce using fewer Tailwind utilities instead of multiple utilities that are functionally the same.\nSee https://biomejs.dev/linter/rules/use-tailwind-shorthand-classes",
7326
+ "anyOf": [
7327
+ { "$ref": "#/$defs/UseTailwindShorthandClassesConfiguration" },
7328
+ { "type": "null" }
7329
+ ]
7330
+ },
7286
7331
  "useTestHooksInOrder": {
7287
7332
  "description": "Enforce that test lifecycle hooks are declared in the order they execute.\nSee https://biomejs.dev/linter/rules/use-test-hooks-in-order",
7288
7333
  "anyOf": [
@@ -7912,6 +7957,11 @@
7912
7957
  "RuleDomain": {
7913
7958
  "description": "Rule domains",
7914
7959
  "oneOf": [
7960
+ {
7961
+ "description": "Astro framework rules",
7962
+ "type": "string",
7963
+ "const": "astro"
7964
+ },
7915
7965
  {
7916
7966
  "description": "Drizzle ORM rules",
7917
7967
  "type": "string",
@@ -10629,6 +10679,15 @@
10629
10679
  "additionalProperties": false,
10630
10680
  "required": ["level"]
10631
10681
  },
10682
+ "RuleWithNoUnsafeTypeAssertionOptions": {
10683
+ "type": "object",
10684
+ "properties": {
10685
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10686
+ "options": { "$ref": "#/$defs/NoUnsafeTypeAssertionOptions" }
10687
+ },
10688
+ "additionalProperties": false,
10689
+ "required": ["level"]
10690
+ },
10632
10691
  "RuleWithNoUntrustedLicensesOptions": {
10633
10692
  "type": "object",
10634
10693
  "properties": {
@@ -11243,6 +11302,15 @@
11243
11302
  "additionalProperties": false,
11244
11303
  "required": ["level"]
11245
11304
  },
11305
+ "RuleWithUseAstroClientOnlyDirectiveValueOptions": {
11306
+ "type": "object",
11307
+ "properties": {
11308
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
11309
+ "options": { "$ref": "#/$defs/UseAstroClientOnlyDirectiveValueOptions" }
11310
+ },
11311
+ "additionalProperties": false,
11312
+ "required": ["level"]
11313
+ },
11246
11314
  "RuleWithUseAtIndexOptions": {
11247
11315
  "type": "object",
11248
11316
  "properties": {
@@ -11457,6 +11525,15 @@
11457
11525
  "additionalProperties": false,
11458
11526
  "required": ["level"]
11459
11527
  },
11528
+ "RuleWithUseControlLabelOptions": {
11529
+ "type": "object",
11530
+ "properties": {
11531
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
11532
+ "options": { "$ref": "#/$defs/UseControlLabelOptions" }
11533
+ },
11534
+ "additionalProperties": false,
11535
+ "required": ["level"]
11536
+ },
11460
11537
  "RuleWithUseDateNowOptions": {
11461
11538
  "type": "object",
11462
11539
  "properties": {
@@ -12057,6 +12134,15 @@
12057
12134
  "additionalProperties": false,
12058
12135
  "required": ["level"]
12059
12136
  },
12137
+ "RuleWithUseNamedLayerOptions": {
12138
+ "type": "object",
12139
+ "properties": {
12140
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
12141
+ "options": { "$ref": "#/$defs/UseNamedLayerOptions" }
12142
+ },
12143
+ "additionalProperties": false,
12144
+ "required": ["level"]
12145
+ },
12060
12146
  "RuleWithUseNamespaceKeywordOptions": {
12061
12147
  "type": "object",
12062
12148
  "properties": {
@@ -12497,6 +12583,16 @@
12497
12583
  "additionalProperties": false,
12498
12584
  "required": ["level"]
12499
12585
  },
12586
+ "RuleWithUseTailwindShorthandClassesOptions": {
12587
+ "type": "object",
12588
+ "properties": {
12589
+ "fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
12590
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
12591
+ "options": { "$ref": "#/$defs/UseTailwindShorthandClassesOptions" }
12592
+ },
12593
+ "additionalProperties": false,
12594
+ "required": ["level"]
12595
+ },
12500
12596
  "RuleWithUseTemplateOptions": {
12501
12597
  "type": "object",
12502
12598
  "properties": {
@@ -14914,6 +15010,16 @@
14914
15010
  "type": "object",
14915
15011
  "additionalProperties": false
14916
15012
  },
15013
+ "UseAstroClientOnlyDirectiveValueConfiguration": {
15014
+ "oneOf": [
15015
+ { "$ref": "#/$defs/RulePlainConfiguration" },
15016
+ { "$ref": "#/$defs/RuleWithUseAstroClientOnlyDirectiveValueOptions" }
15017
+ ]
15018
+ },
15019
+ "UseAstroClientOnlyDirectiveValueOptions": {
15020
+ "type": "object",
15021
+ "additionalProperties": false
15022
+ },
14917
15023
  "UseAtIndexConfiguration": {
14918
15024
  "oneOf": [
14919
15025
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -15274,6 +15380,17 @@
15274
15380
  ]
15275
15381
  },
15276
15382
  "UseConstOptions": { "type": "object", "additionalProperties": false },
15383
+ "UseControlLabelConfiguration": {
15384
+ "oneOf": [
15385
+ { "$ref": "#/$defs/RulePlainConfiguration" },
15386
+ { "$ref": "#/$defs/RuleWithUseControlLabelOptions" }
15387
+ ]
15388
+ },
15389
+ "UseControlLabelOptions": {
15390
+ "description": "Configuration for the `useControlLabel` lint rule.",
15391
+ "type": "object",
15392
+ "additionalProperties": false
15393
+ },
15277
15394
  "UseDateNowConfiguration": {
15278
15395
  "oneOf": [
15279
15396
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -16036,6 +16153,13 @@
16036
16153
  "type": "object",
16037
16154
  "additionalProperties": false
16038
16155
  },
16156
+ "UseNamedLayerConfiguration": {
16157
+ "oneOf": [
16158
+ { "$ref": "#/$defs/RulePlainConfiguration" },
16159
+ { "$ref": "#/$defs/RuleWithUseNamedLayerOptions" }
16160
+ ]
16161
+ },
16162
+ "UseNamedLayerOptions": { "type": "object", "additionalProperties": false },
16039
16163
  "UseNamespaceKeywordConfiguration": {
16040
16164
  "oneOf": [
16041
16165
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -16698,6 +16822,16 @@
16698
16822
  "type": "object",
16699
16823
  "additionalProperties": false
16700
16824
  },
16825
+ "UseTailwindShorthandClassesConfiguration": {
16826
+ "oneOf": [
16827
+ { "$ref": "#/$defs/RulePlainConfiguration" },
16828
+ { "$ref": "#/$defs/RuleWithUseTailwindShorthandClassesOptions" }
16829
+ ]
16830
+ },
16831
+ "UseTailwindShorthandClassesOptions": {
16832
+ "type": "object",
16833
+ "additionalProperties": false
16834
+ },
16701
16835
  "UseTemplateConfiguration": {
16702
16836
  "oneOf": [
16703
16837
  { "$ref": "#/$defs/RulePlainConfiguration" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biomejs/biome",
3
- "version": "2.5.8",
3
+ "version": "2.5.9",
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.8",
50
- "@biomejs/cli-win32-arm64": "2.5.8",
51
- "@biomejs/cli-darwin-x64": "2.5.8",
52
- "@biomejs/cli-darwin-arm64": "2.5.8",
53
- "@biomejs/cli-linux-x64": "2.5.8",
54
- "@biomejs/cli-linux-arm64": "2.5.8",
55
- "@biomejs/cli-linux-x64-musl": "2.5.8",
56
- "@biomejs/cli-linux-arm64-musl": "2.5.8"
49
+ "@biomejs/cli-win32-x64": "2.5.9",
50
+ "@biomejs/cli-win32-arm64": "2.5.9",
51
+ "@biomejs/cli-darwin-x64": "2.5.9",
52
+ "@biomejs/cli-darwin-arm64": "2.5.9",
53
+ "@biomejs/cli-linux-x64": "2.5.9",
54
+ "@biomejs/cli-linux-arm64": "2.5.9",
55
+ "@biomejs/cli-linux-x64-musl": "2.5.9",
56
+ "@biomejs/cli-linux-arm64-musl": "2.5.9"
57
57
  }
58
58
  }