@biomejs/biome 2.5.7 → 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.
@@ -462,6 +462,26 @@
462
462
  }
463
463
  ]
464
464
  },
465
+ "CompilationMode": {
466
+ "description": "Controls which functions React Compiler analyzes.",
467
+ "oneOf": [
468
+ {
469
+ "description": "Analyze functions that follow React conventions: components\n(capitalized functions that create JSX or call hooks) and hooks\n(`use`-prefixed functions).",
470
+ "type": "string",
471
+ "const": "infer"
472
+ },
473
+ {
474
+ "description": "Analyze only functions annotated with a `\"use memo\"` directive.",
475
+ "type": "string",
476
+ "const": "annotation"
477
+ },
478
+ {
479
+ "description": "Analyze every function. This can report React-specific diagnostics in\nnon-React code, such as utility functions that update module-level\nstate.",
480
+ "type": "string",
481
+ "const": "all"
482
+ }
483
+ ]
484
+ },
465
485
  "Complexity": {
466
486
  "description": "A list of rules that belong to this group",
467
487
  "type": "object",
@@ -4522,6 +4542,16 @@
4522
4542
  "type": "object",
4523
4543
  "additionalProperties": false
4524
4544
  },
4545
+ "NoInvalidPropertyInitValueConfiguration": {
4546
+ "oneOf": [
4547
+ { "$ref": "#/$defs/RulePlainConfiguration" },
4548
+ { "$ref": "#/$defs/RuleWithNoInvalidPropertyInitValueOptions" }
4549
+ ]
4550
+ },
4551
+ "NoInvalidPropertyInitValueOptions": {
4552
+ "type": "object",
4553
+ "additionalProperties": false
4554
+ },
4525
4555
  "NoInvalidUseBeforeDeclarationConfiguration": {
4526
4556
  "oneOf": [
4527
4557
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -5588,6 +5618,16 @@
5588
5618
  "type": "object",
5589
5619
  "additionalProperties": false
5590
5620
  },
5621
+ "NoSvelteLegacyConstConfiguration": {
5622
+ "oneOf": [
5623
+ { "$ref": "#/$defs/RulePlainConfiguration" },
5624
+ { "$ref": "#/$defs/RuleWithNoSvelteLegacyConstOptions" }
5625
+ ]
5626
+ },
5627
+ "NoSvelteLegacyConstOptions": {
5628
+ "type": "object",
5629
+ "additionalProperties": false
5630
+ },
5591
5631
  "NoSvelteUnnecessaryStateWrapConfiguration": {
5592
5632
  "oneOf": [
5593
5633
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -6039,6 +6079,16 @@
6039
6079
  "type": "object",
6040
6080
  "additionalProperties": false
6041
6081
  },
6082
+ "NoUnsafeTypeAssertionConfiguration": {
6083
+ "oneOf": [
6084
+ { "$ref": "#/$defs/RulePlainConfiguration" },
6085
+ { "$ref": "#/$defs/RuleWithNoUnsafeTypeAssertionOptions" }
6086
+ ]
6087
+ },
6088
+ "NoUnsafeTypeAssertionOptions": {
6089
+ "type": "object",
6090
+ "additionalProperties": false
6091
+ },
6042
6092
  "NoUntrustedLicensesConfiguration": {
6043
6093
  "oneOf": [
6044
6094
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -6762,6 +6812,13 @@
6762
6812
  { "type": "null" }
6763
6813
  ]
6764
6814
  },
6815
+ "noInvalidPropertyInitValue": {
6816
+ "description": "Checks that the initial-value of an @property rule follows the value format declared by its syntax.\nSee https://biomejs.dev/linter/rules/no-invalid-property-init-value",
6817
+ "anyOf": [
6818
+ { "$ref": "#/$defs/NoInvalidPropertyInitValueConfiguration" },
6819
+ { "type": "null" }
6820
+ ]
6821
+ },
6765
6822
  "noJsRestrictedProperties": {
6766
6823
  "description": "Disallow specific object properties.\nSee https://biomejs.dev/linter/rules/no-js-restricted-properties",
6767
6824
  "anyOf": [
@@ -6923,6 +6980,13 @@
6923
6980
  { "type": "null" }
6924
6981
  ]
6925
6982
  },
6983
+ "noSvelteLegacyConst": {
6984
+ "description": "Disallow legacy Svelte {@const} tags.\nSee https://biomejs.dev/linter/rules/no-svelte-legacy-const",
6985
+ "anyOf": [
6986
+ { "$ref": "#/$defs/NoSvelteLegacyConstConfiguration" },
6987
+ { "type": "null" }
6988
+ ]
6989
+ },
6926
6990
  "noSvelteUnnecessaryStateWrap": {
6927
6991
  "description": "Disallow unnecessary $state wrapping of reactive classes.\nSee https://biomejs.dev/linter/rules/no-svelte-unnecessary-state-wrap",
6928
6992
  "anyOf": [
@@ -6965,6 +7029,13 @@
6965
7029
  { "type": "null" }
6966
7030
  ]
6967
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
+ },
6968
7039
  "noUntrustedLicenses": {
6969
7040
  "description": "Disallow dependencies with untrusted licenses.\nSee https://biomejs.dev/linter/rules/no-untrusted-licenses",
6970
7041
  "anyOf": [
@@ -7022,6 +7093,13 @@
7022
7093
  { "type": "null" }
7023
7094
  ]
7024
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
+ },
7025
7103
  "useAwaitThenable": {
7026
7104
  "description": "Enforce that await is only used on Promise values.\nSee https://biomejs.dev/linter/rules/use-await-thenable",
7027
7105
  "anyOf": [
@@ -7043,6 +7121,13 @@
7043
7121
  { "type": "null" }
7044
7122
  ]
7045
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
+ },
7046
7131
  "useDisposables": {
7047
7132
  "description": "Detects a disposable object assigned to a variable without using or await using syntax.\nSee https://biomejs.dev/linter/rules/use-disposables",
7048
7133
  "anyOf": [
@@ -7127,6 +7212,13 @@
7127
7212
  { "type": "null" }
7128
7213
  ]
7129
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
+ },
7130
7222
  "useNullishCoalescing": {
7131
7223
  "description": "Enforce using the nullish coalescing operator (??) instead of logical or (||).\nSee https://biomejs.dev/linter/rules/use-nullish-coalescing",
7132
7224
  "anyOf": [
@@ -7157,6 +7249,13 @@
7157
7249
  { "type": "null" }
7158
7250
  ]
7159
7251
  },
7252
+ "useReactCompiler": {
7253
+ "description": "Validate files with React Compiler.\nSee https://biomejs.dev/linter/rules/use-react-compiler",
7254
+ "anyOf": [
7255
+ { "$ref": "#/$defs/UseReactCompilerConfiguration" },
7256
+ { "type": "null" }
7257
+ ]
7258
+ },
7160
7259
  "useReactFunctionComponentDefinition": {
7161
7260
  "description": "Enforce a specific function type for React function components.\nSee https://biomejs.dev/linter/rules/use-react-function-component-definition",
7162
7261
  "anyOf": [
@@ -7222,6 +7321,13 @@
7222
7321
  { "type": "null" }
7223
7322
  ]
7224
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
+ },
7225
7331
  "useTestHooksInOrder": {
7226
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",
7227
7333
  "anyOf": [
@@ -7851,6 +7957,11 @@
7851
7957
  "RuleDomain": {
7852
7958
  "description": "Rule domains",
7853
7959
  "oneOf": [
7960
+ {
7961
+ "description": "Astro framework rules",
7962
+ "type": "string",
7963
+ "const": "astro"
7964
+ },
7854
7965
  {
7855
7966
  "description": "Drizzle ORM rules",
7856
7967
  "type": "string",
@@ -9304,6 +9415,15 @@
9304
9415
  "additionalProperties": false,
9305
9416
  "required": ["level"]
9306
9417
  },
9418
+ "RuleWithNoInvalidPropertyInitValueOptions": {
9419
+ "type": "object",
9420
+ "properties": {
9421
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
9422
+ "options": { "$ref": "#/$defs/NoInvalidPropertyInitValueOptions" }
9423
+ },
9424
+ "additionalProperties": false,
9425
+ "required": ["level"]
9426
+ },
9307
9427
  "RuleWithNoInvalidUseBeforeDeclarationOptions": {
9308
9428
  "type": "object",
9309
9429
  "properties": {
@@ -10220,6 +10340,15 @@
10220
10340
  "additionalProperties": false,
10221
10341
  "required": ["level"]
10222
10342
  },
10343
+ "RuleWithNoSvelteLegacyConstOptions": {
10344
+ "type": "object",
10345
+ "properties": {
10346
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10347
+ "options": { "$ref": "#/$defs/NoSvelteLegacyConstOptions" }
10348
+ },
10349
+ "additionalProperties": false,
10350
+ "required": ["level"]
10351
+ },
10223
10352
  "RuleWithNoSvelteUnnecessaryStateWrapOptions": {
10224
10353
  "type": "object",
10225
10354
  "properties": {
@@ -10550,6 +10679,15 @@
10550
10679
  "additionalProperties": false,
10551
10680
  "required": ["level"]
10552
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
+ },
10553
10691
  "RuleWithNoUntrustedLicensesOptions": {
10554
10692
  "type": "object",
10555
10693
  "properties": {
@@ -11164,6 +11302,15 @@
11164
11302
  "additionalProperties": false,
11165
11303
  "required": ["level"]
11166
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
+ },
11167
11314
  "RuleWithUseAtIndexOptions": {
11168
11315
  "type": "object",
11169
11316
  "properties": {
@@ -11378,6 +11525,15 @@
11378
11525
  "additionalProperties": false,
11379
11526
  "required": ["level"]
11380
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
+ },
11381
11537
  "RuleWithUseDateNowOptions": {
11382
11538
  "type": "object",
11383
11539
  "properties": {
@@ -11978,6 +12134,15 @@
11978
12134
  "additionalProperties": false,
11979
12135
  "required": ["level"]
11980
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
+ },
11981
12146
  "RuleWithUseNamespaceKeywordOptions": {
11982
12147
  "type": "object",
11983
12148
  "properties": {
@@ -12155,6 +12320,15 @@
12155
12320
  "additionalProperties": false,
12156
12321
  "required": ["level"]
12157
12322
  },
12323
+ "RuleWithUseReactCompilerOptions": {
12324
+ "type": "object",
12325
+ "properties": {
12326
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
12327
+ "options": { "$ref": "#/$defs/UseReactCompilerOptions" }
12328
+ },
12329
+ "additionalProperties": false,
12330
+ "required": ["level"]
12331
+ },
12158
12332
  "RuleWithUseReactFunctionComponentDefinitionOptions": {
12159
12333
  "type": "object",
12160
12334
  "properties": {
@@ -12409,6 +12583,16 @@
12409
12583
  "additionalProperties": false,
12410
12584
  "required": ["level"]
12411
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
+ },
12412
12596
  "RuleWithUseTemplateOptions": {
12413
12597
  "type": "object",
12414
12598
  "properties": {
@@ -14826,6 +15010,16 @@
14826
15010
  "type": "object",
14827
15011
  "additionalProperties": false
14828
15012
  },
15013
+ "UseAstroClientOnlyDirectiveValueConfiguration": {
15014
+ "oneOf": [
15015
+ { "$ref": "#/$defs/RulePlainConfiguration" },
15016
+ { "$ref": "#/$defs/RuleWithUseAstroClientOnlyDirectiveValueOptions" }
15017
+ ]
15018
+ },
15019
+ "UseAstroClientOnlyDirectiveValueOptions": {
15020
+ "type": "object",
15021
+ "additionalProperties": false
15022
+ },
14829
15023
  "UseAtIndexConfiguration": {
14830
15024
  "oneOf": [
14831
15025
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -15186,6 +15380,17 @@
15186
15380
  ]
15187
15381
  },
15188
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
+ },
15189
15394
  "UseDateNowConfiguration": {
15190
15395
  "oneOf": [
15191
15396
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -15948,6 +16153,13 @@
15948
16153
  "type": "object",
15949
16154
  "additionalProperties": false
15950
16155
  },
16156
+ "UseNamedLayerConfiguration": {
16157
+ "oneOf": [
16158
+ { "$ref": "#/$defs/RulePlainConfiguration" },
16159
+ { "$ref": "#/$defs/RuleWithUseNamedLayerOptions" }
16160
+ ]
16161
+ },
16162
+ "UseNamedLayerOptions": { "type": "object", "additionalProperties": false },
15951
16163
  "UseNamespaceKeywordConfiguration": {
15952
16164
  "oneOf": [
15953
16165
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -16201,6 +16413,22 @@
16201
16413
  "type": "object",
16202
16414
  "additionalProperties": false
16203
16415
  },
16416
+ "UseReactCompilerConfiguration": {
16417
+ "oneOf": [
16418
+ { "$ref": "#/$defs/RulePlainConfiguration" },
16419
+ { "$ref": "#/$defs/RuleWithUseReactCompilerOptions" }
16420
+ ]
16421
+ },
16422
+ "UseReactCompilerOptions": {
16423
+ "type": "object",
16424
+ "properties": {
16425
+ "compilationMode": {
16426
+ "description": "Which functions React Compiler analyzes. Defaults to `infer`.",
16427
+ "anyOf": [{ "$ref": "#/$defs/CompilationMode" }, { "type": "null" }]
16428
+ }
16429
+ },
16430
+ "additionalProperties": false
16431
+ },
16204
16432
  "UseReactFunctionComponentDefinitionConfiguration": {
16205
16433
  "oneOf": [
16206
16434
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -16594,6 +16822,16 @@
16594
16822
  "type": "object",
16595
16823
  "additionalProperties": false
16596
16824
  },
16825
+ "UseTailwindShorthandClassesConfiguration": {
16826
+ "oneOf": [
16827
+ { "$ref": "#/$defs/RulePlainConfiguration" },
16828
+ { "$ref": "#/$defs/RuleWithUseTailwindShorthandClassesOptions" }
16829
+ ]
16830
+ },
16831
+ "UseTailwindShorthandClassesOptions": {
16832
+ "type": "object",
16833
+ "additionalProperties": false
16834
+ },
16597
16835
  "UseTemplateConfiguration": {
16598
16836
  "oneOf": [
16599
16837
  { "$ref": "#/$defs/RulePlainConfiguration" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biomejs/biome",
3
- "version": "2.5.7",
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.7",
50
- "@biomejs/cli-win32-arm64": "2.5.7",
51
- "@biomejs/cli-darwin-x64": "2.5.7",
52
- "@biomejs/cli-darwin-arm64": "2.5.7",
53
- "@biomejs/cli-linux-x64": "2.5.7",
54
- "@biomejs/cli-linux-arm64": "2.5.7",
55
- "@biomejs/cli-linux-x64-musl": "2.5.7",
56
- "@biomejs/cli-linux-arm64-musl": "2.5.7"
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
  }