@biomejs/biome 2.5.1 → 2.5.2
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 +65 -0
- package/package.json +9 -9
|
@@ -2358,6 +2358,25 @@
|
|
|
2358
2358
|
}
|
|
2359
2359
|
]
|
|
2360
2360
|
},
|
|
2361
|
+
"IgnorePrimitives": {
|
|
2362
|
+
"oneOf": [
|
|
2363
|
+
{
|
|
2364
|
+
"description": "When true, ignore all primitive types.",
|
|
2365
|
+
"type": "boolean"
|
|
2366
|
+
},
|
|
2367
|
+
{
|
|
2368
|
+
"description": "Ignore specific primitive types.",
|
|
2369
|
+
"type": "object",
|
|
2370
|
+
"properties": {
|
|
2371
|
+
"bigint": { "type": "boolean" },
|
|
2372
|
+
"boolean": { "type": "boolean" },
|
|
2373
|
+
"number": { "type": "boolean" },
|
|
2374
|
+
"string": { "type": "boolean" }
|
|
2375
|
+
},
|
|
2376
|
+
"additionalProperties": false
|
|
2377
|
+
}
|
|
2378
|
+
]
|
|
2379
|
+
},
|
|
2361
2380
|
"ImportGroup": {
|
|
2362
2381
|
"anyOf": [
|
|
2363
2382
|
{ "type": "null" },
|
|
@@ -5509,6 +5528,27 @@
|
|
|
5509
5528
|
"type": "object",
|
|
5510
5529
|
"additionalProperties": false
|
|
5511
5530
|
},
|
|
5531
|
+
"NoSvelteUnnecessaryStateWrapConfiguration": {
|
|
5532
|
+
"oneOf": [
|
|
5533
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
5534
|
+
{ "$ref": "#/$defs/RuleWithNoSvelteUnnecessaryStateWrapOptions" }
|
|
5535
|
+
]
|
|
5536
|
+
},
|
|
5537
|
+
"NoSvelteUnnecessaryStateWrapOptions": {
|
|
5538
|
+
"type": "object",
|
|
5539
|
+
"properties": {
|
|
5540
|
+
"additionalReactiveClasses": {
|
|
5541
|
+
"description": "Additional class names to treat as already reactive (beyond the built-in `svelte/reactivity` classes).",
|
|
5542
|
+
"type": ["array", "null"],
|
|
5543
|
+
"items": { "type": "string" }
|
|
5544
|
+
},
|
|
5545
|
+
"allowReassign": {
|
|
5546
|
+
"description": "When `true`, allows `$state()` wrapping for variables that are reassigned after declaration.",
|
|
5547
|
+
"type": ["boolean", "null"]
|
|
5548
|
+
}
|
|
5549
|
+
},
|
|
5550
|
+
"additionalProperties": false
|
|
5551
|
+
},
|
|
5512
5552
|
"NoSvgWithoutTitleConfiguration": {
|
|
5513
5553
|
"oneOf": [
|
|
5514
5554
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -6772,6 +6812,13 @@
|
|
|
6772
6812
|
{ "type": "null" }
|
|
6773
6813
|
]
|
|
6774
6814
|
},
|
|
6815
|
+
"noSvelteUnnecessaryStateWrap": {
|
|
6816
|
+
"description": "Disallow unnecessary $state wrapping of reactive classes.\nSee https://biomejs.dev/linter/rules/no-svelte-unnecessary-state-wrap",
|
|
6817
|
+
"anyOf": [
|
|
6818
|
+
{ "$ref": "#/$defs/NoSvelteUnnecessaryStateWrapConfiguration" },
|
|
6819
|
+
{ "type": "null" }
|
|
6820
|
+
]
|
|
6821
|
+
},
|
|
6775
6822
|
"noTopLevelLiterals": {
|
|
6776
6823
|
"description": "Require the JSON top-level value to be an array or object.\nSee https://biomejs.dev/linter/rules/no-top-level-literals",
|
|
6777
6824
|
"anyOf": [
|
|
@@ -9990,6 +10037,16 @@
|
|
|
9990
10037
|
"additionalProperties": false,
|
|
9991
10038
|
"required": ["level"]
|
|
9992
10039
|
},
|
|
10040
|
+
"RuleWithNoSvelteUnnecessaryStateWrapOptions": {
|
|
10041
|
+
"type": "object",
|
|
10042
|
+
"properties": {
|
|
10043
|
+
"fix": { "anyOf": [{ "$ref": "#/$defs/FixKind" }, { "type": "null" }] },
|
|
10044
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
10045
|
+
"options": { "$ref": "#/$defs/NoSvelteUnnecessaryStateWrapOptions" }
|
|
10046
|
+
},
|
|
10047
|
+
"additionalProperties": false,
|
|
10048
|
+
"required": ["level"]
|
|
10049
|
+
},
|
|
9993
10050
|
"RuleWithNoSvgWithoutTitleOptions": {
|
|
9994
10051
|
"type": "object",
|
|
9995
10052
|
"properties": {
|
|
@@ -15758,6 +15815,10 @@
|
|
|
15758
15815
|
"description": "Options for the `useNullishCoalescing` rule.",
|
|
15759
15816
|
"type": "object",
|
|
15760
15817
|
"properties": {
|
|
15818
|
+
"ignoreBooleanCoercion": {
|
|
15819
|
+
"description": "Whether to ignore `||` and `||=` binary operations used inside a `Boolean()` call (default: `false`).",
|
|
15820
|
+
"type": ["boolean", "null"]
|
|
15821
|
+
},
|
|
15761
15822
|
"ignoreConditionalTests": {
|
|
15762
15823
|
"description": "Ignore `||` expressions in conditional test positions (default: `true`).",
|
|
15763
15824
|
"type": ["boolean", "null"]
|
|
@@ -15766,6 +15827,10 @@
|
|
|
15766
15827
|
"description": "Whether to ignore `||` and `||=` binary operations that are part of a mixed logical expression with `&&` (default: `false`).",
|
|
15767
15828
|
"type": ["boolean", "null"]
|
|
15768
15829
|
},
|
|
15830
|
+
"ignorePrimitives": {
|
|
15831
|
+
"description": "Whether to ignore `||` and `||=` operations whose non-nullish operand types are all primitives of the configured kinds. Accepts `true` for every primitive, or an object selecting `string`, `number`, `boolean`, `bigint` (default: none).",
|
|
15832
|
+
"anyOf": [{ "$ref": "#/$defs/IgnorePrimitives" }, { "type": "null" }]
|
|
15833
|
+
},
|
|
15769
15834
|
"ignoreTernaryTests": {
|
|
15770
15835
|
"description": "Ignore ternary expressions that check for `null` or `undefined` (default: `false`).",
|
|
15771
15836
|
"type": ["boolean", "null"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biomejs/biome",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
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.2",
|
|
50
|
+
"@biomejs/cli-win32-arm64": "2.5.2",
|
|
51
|
+
"@biomejs/cli-darwin-x64": "2.5.2",
|
|
52
|
+
"@biomejs/cli-darwin-arm64": "2.5.2",
|
|
53
|
+
"@biomejs/cli-linux-x64": "2.5.2",
|
|
54
|
+
"@biomejs/cli-linux-arm64": "2.5.2",
|
|
55
|
+
"@biomejs/cli-linux-x64-musl": "2.5.2",
|
|
56
|
+
"@biomejs/cli-linux-arm64-musl": "2.5.2"
|
|
57
57
|
}
|
|
58
58
|
}
|