@biomejs/biome 2.5.7 → 2.5.8
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/configuration_schema.json +104 -0
- package/package.json +9 -9
|
@@ -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" },
|
|
@@ -6762,6 +6802,13 @@
|
|
|
6762
6802
|
{ "type": "null" }
|
|
6763
6803
|
]
|
|
6764
6804
|
},
|
|
6805
|
+
"noInvalidPropertyInitValue": {
|
|
6806
|
+
"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",
|
|
6807
|
+
"anyOf": [
|
|
6808
|
+
{ "$ref": "#/$defs/NoInvalidPropertyInitValueConfiguration" },
|
|
6809
|
+
{ "type": "null" }
|
|
6810
|
+
]
|
|
6811
|
+
},
|
|
6765
6812
|
"noJsRestrictedProperties": {
|
|
6766
6813
|
"description": "Disallow specific object properties.\nSee https://biomejs.dev/linter/rules/no-js-restricted-properties",
|
|
6767
6814
|
"anyOf": [
|
|
@@ -6923,6 +6970,13 @@
|
|
|
6923
6970
|
{ "type": "null" }
|
|
6924
6971
|
]
|
|
6925
6972
|
},
|
|
6973
|
+
"noSvelteLegacyConst": {
|
|
6974
|
+
"description": "Disallow legacy Svelte {@const} tags.\nSee https://biomejs.dev/linter/rules/no-svelte-legacy-const",
|
|
6975
|
+
"anyOf": [
|
|
6976
|
+
{ "$ref": "#/$defs/NoSvelteLegacyConstConfiguration" },
|
|
6977
|
+
{ "type": "null" }
|
|
6978
|
+
]
|
|
6979
|
+
},
|
|
6926
6980
|
"noSvelteUnnecessaryStateWrap": {
|
|
6927
6981
|
"description": "Disallow unnecessary $state wrapping of reactive classes.\nSee https://biomejs.dev/linter/rules/no-svelte-unnecessary-state-wrap",
|
|
6928
6982
|
"anyOf": [
|
|
@@ -7157,6 +7211,13 @@
|
|
|
7157
7211
|
{ "type": "null" }
|
|
7158
7212
|
]
|
|
7159
7213
|
},
|
|
7214
|
+
"useReactCompiler": {
|
|
7215
|
+
"description": "Validate files with React Compiler.\nSee https://biomejs.dev/linter/rules/use-react-compiler",
|
|
7216
|
+
"anyOf": [
|
|
7217
|
+
{ "$ref": "#/$defs/UseReactCompilerConfiguration" },
|
|
7218
|
+
{ "type": "null" }
|
|
7219
|
+
]
|
|
7220
|
+
},
|
|
7160
7221
|
"useReactFunctionComponentDefinition": {
|
|
7161
7222
|
"description": "Enforce a specific function type for React function components.\nSee https://biomejs.dev/linter/rules/use-react-function-component-definition",
|
|
7162
7223
|
"anyOf": [
|
|
@@ -9304,6 +9365,15 @@
|
|
|
9304
9365
|
"additionalProperties": false,
|
|
9305
9366
|
"required": ["level"]
|
|
9306
9367
|
},
|
|
9368
|
+
"RuleWithNoInvalidPropertyInitValueOptions": {
|
|
9369
|
+
"type": "object",
|
|
9370
|
+
"properties": {
|
|
9371
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
9372
|
+
"options": { "$ref": "#/$defs/NoInvalidPropertyInitValueOptions" }
|
|
9373
|
+
},
|
|
9374
|
+
"additionalProperties": false,
|
|
9375
|
+
"required": ["level"]
|
|
9376
|
+
},
|
|
9307
9377
|
"RuleWithNoInvalidUseBeforeDeclarationOptions": {
|
|
9308
9378
|
"type": "object",
|
|
9309
9379
|
"properties": {
|
|
@@ -10220,6 +10290,15 @@
|
|
|
10220
10290
|
"additionalProperties": false,
|
|
10221
10291
|
"required": ["level"]
|
|
10222
10292
|
},
|
|
10293
|
+
"RuleWithNoSvelteLegacyConstOptions": {
|
|
10294
|
+
"type": "object",
|
|
10295
|
+
"properties": {
|
|
10296
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
10297
|
+
"options": { "$ref": "#/$defs/NoSvelteLegacyConstOptions" }
|
|
10298
|
+
},
|
|
10299
|
+
"additionalProperties": false,
|
|
10300
|
+
"required": ["level"]
|
|
10301
|
+
},
|
|
10223
10302
|
"RuleWithNoSvelteUnnecessaryStateWrapOptions": {
|
|
10224
10303
|
"type": "object",
|
|
10225
10304
|
"properties": {
|
|
@@ -12155,6 +12234,15 @@
|
|
|
12155
12234
|
"additionalProperties": false,
|
|
12156
12235
|
"required": ["level"]
|
|
12157
12236
|
},
|
|
12237
|
+
"RuleWithUseReactCompilerOptions": {
|
|
12238
|
+
"type": "object",
|
|
12239
|
+
"properties": {
|
|
12240
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
12241
|
+
"options": { "$ref": "#/$defs/UseReactCompilerOptions" }
|
|
12242
|
+
},
|
|
12243
|
+
"additionalProperties": false,
|
|
12244
|
+
"required": ["level"]
|
|
12245
|
+
},
|
|
12158
12246
|
"RuleWithUseReactFunctionComponentDefinitionOptions": {
|
|
12159
12247
|
"type": "object",
|
|
12160
12248
|
"properties": {
|
|
@@ -16201,6 +16289,22 @@
|
|
|
16201
16289
|
"type": "object",
|
|
16202
16290
|
"additionalProperties": false
|
|
16203
16291
|
},
|
|
16292
|
+
"UseReactCompilerConfiguration": {
|
|
16293
|
+
"oneOf": [
|
|
16294
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
16295
|
+
{ "$ref": "#/$defs/RuleWithUseReactCompilerOptions" }
|
|
16296
|
+
]
|
|
16297
|
+
},
|
|
16298
|
+
"UseReactCompilerOptions": {
|
|
16299
|
+
"type": "object",
|
|
16300
|
+
"properties": {
|
|
16301
|
+
"compilationMode": {
|
|
16302
|
+
"description": "Which functions React Compiler analyzes. Defaults to `infer`.",
|
|
16303
|
+
"anyOf": [{ "$ref": "#/$defs/CompilationMode" }, { "type": "null" }]
|
|
16304
|
+
}
|
|
16305
|
+
},
|
|
16306
|
+
"additionalProperties": false
|
|
16307
|
+
},
|
|
16204
16308
|
"UseReactFunctionComponentDefinitionConfiguration": {
|
|
16205
16309
|
"oneOf": [
|
|
16206
16310
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biomejs/biome",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.8",
|
|
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.
|
|
50
|
-
"@biomejs/cli-win32-arm64": "2.5.
|
|
51
|
-
"@biomejs/cli-darwin-x64": "2.5.
|
|
52
|
-
"@biomejs/cli-darwin-arm64": "2.5.
|
|
53
|
-
"@biomejs/cli-linux-x64": "2.5.
|
|
54
|
-
"@biomejs/cli-linux-arm64": "2.5.
|
|
55
|
-
"@biomejs/cli-linux-x64-musl": "2.5.
|
|
56
|
-
"@biomejs/cli-linux-arm64-musl": "2.5.
|
|
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"
|
|
57
57
|
}
|
|
58
58
|
}
|