@biomejs/biome 2.5.1 → 2.5.3
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 +72 -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": {
|
|
@@ -15047,6 +15104,13 @@
|
|
|
15047
15104
|
},
|
|
15048
15105
|
"UseDomQuerySelectorOptions": {
|
|
15049
15106
|
"type": "object",
|
|
15107
|
+
"properties": {
|
|
15108
|
+
"ignore": {
|
|
15109
|
+
"description": "A list of receiver identifiers to ignore.\n\nIn the expression `document.querySelector('div')`, the receiver is `document`.",
|
|
15110
|
+
"type": ["array", "null"],
|
|
15111
|
+
"items": { "type": "string" }
|
|
15112
|
+
}
|
|
15113
|
+
},
|
|
15050
15114
|
"additionalProperties": false
|
|
15051
15115
|
},
|
|
15052
15116
|
"UseEnumInitializersConfiguration": {
|
|
@@ -15758,6 +15822,10 @@
|
|
|
15758
15822
|
"description": "Options for the `useNullishCoalescing` rule.",
|
|
15759
15823
|
"type": "object",
|
|
15760
15824
|
"properties": {
|
|
15825
|
+
"ignoreBooleanCoercion": {
|
|
15826
|
+
"description": "Whether to ignore `||` and `||=` binary operations used inside a `Boolean()` call (default: `false`).",
|
|
15827
|
+
"type": ["boolean", "null"]
|
|
15828
|
+
},
|
|
15761
15829
|
"ignoreConditionalTests": {
|
|
15762
15830
|
"description": "Ignore `||` expressions in conditional test positions (default: `true`).",
|
|
15763
15831
|
"type": ["boolean", "null"]
|
|
@@ -15766,6 +15834,10 @@
|
|
|
15766
15834
|
"description": "Whether to ignore `||` and `||=` binary operations that are part of a mixed logical expression with `&&` (default: `false`).",
|
|
15767
15835
|
"type": ["boolean", "null"]
|
|
15768
15836
|
},
|
|
15837
|
+
"ignorePrimitives": {
|
|
15838
|
+
"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).",
|
|
15839
|
+
"anyOf": [{ "$ref": "#/$defs/IgnorePrimitives" }, { "type": "null" }]
|
|
15840
|
+
},
|
|
15769
15841
|
"ignoreTernaryTests": {
|
|
15770
15842
|
"description": "Ignore ternary expressions that check for `null` or `undefined` (default: `false`).",
|
|
15771
15843
|
"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.3",
|
|
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.3",
|
|
50
|
+
"@biomejs/cli-win32-arm64": "2.5.3",
|
|
51
|
+
"@biomejs/cli-darwin-x64": "2.5.3",
|
|
52
|
+
"@biomejs/cli-darwin-arm64": "2.5.3",
|
|
53
|
+
"@biomejs/cli-linux-x64": "2.5.3",
|
|
54
|
+
"@biomejs/cli-linux-arm64": "2.5.3",
|
|
55
|
+
"@biomejs/cli-linux-x64-musl": "2.5.3",
|
|
56
|
+
"@biomejs/cli-linux-arm64-musl": "2.5.3"
|
|
57
57
|
}
|
|
58
58
|
}
|