@biomejs/biome 1.5.0 → 1.5.2-nightly.91c7730
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 +38 -14
- package/package.json +1 -1
|
@@ -500,6 +500,28 @@
|
|
|
500
500
|
},
|
|
501
501
|
"additionalProperties": false
|
|
502
502
|
},
|
|
503
|
+
"ConsistentArrayType": {
|
|
504
|
+
"oneOf": [
|
|
505
|
+
{
|
|
506
|
+
"description": "`ItemType[]`",
|
|
507
|
+
"type": "string",
|
|
508
|
+
"enum": ["shorthand"]
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"description": "`Array<ItemType>`",
|
|
512
|
+
"type": "string",
|
|
513
|
+
"enum": ["generic"]
|
|
514
|
+
}
|
|
515
|
+
]
|
|
516
|
+
},
|
|
517
|
+
"ConsistentArrayTypeOptions": {
|
|
518
|
+
"type": "object",
|
|
519
|
+
"required": ["syntax"],
|
|
520
|
+
"properties": {
|
|
521
|
+
"syntax": { "$ref": "#/definitions/ConsistentArrayType" }
|
|
522
|
+
},
|
|
523
|
+
"additionalProperties": false
|
|
524
|
+
},
|
|
503
525
|
"Correctness": {
|
|
504
526
|
"description": "A list of rules that belong to this group",
|
|
505
527
|
"type": "object",
|
|
@@ -1362,6 +1384,13 @@
|
|
|
1362
1384
|
{ "type": "null" }
|
|
1363
1385
|
]
|
|
1364
1386
|
},
|
|
1387
|
+
"useConsistentArrayType": {
|
|
1388
|
+
"description": "Require consistently using either T[] or Array<T>",
|
|
1389
|
+
"anyOf": [
|
|
1390
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1391
|
+
{ "type": "null" }
|
|
1392
|
+
]
|
|
1393
|
+
},
|
|
1365
1394
|
"useExportType": {
|
|
1366
1395
|
"description": "Promotes the use of export type for types.",
|
|
1367
1396
|
"anyOf": [
|
|
@@ -1610,6 +1639,10 @@
|
|
|
1610
1639
|
"description": "Options for `noExcessiveComplexity` rule",
|
|
1611
1640
|
"allOf": [{ "$ref": "#/definitions/ComplexityOptions" }]
|
|
1612
1641
|
},
|
|
1642
|
+
{
|
|
1643
|
+
"description": "Options for `useConsistentArrayType` rule",
|
|
1644
|
+
"allOf": [{ "$ref": "#/definitions/ConsistentArrayTypeOptions" }]
|
|
1645
|
+
},
|
|
1613
1646
|
{
|
|
1614
1647
|
"description": "Options for `useFilenamingConvention` rule",
|
|
1615
1648
|
"allOf": [{ "$ref": "#/definitions/FilenamingConventionOptions" }]
|
|
@@ -1641,10 +1674,11 @@
|
|
|
1641
1674
|
"RestrictedGlobalsOptions": {
|
|
1642
1675
|
"description": "Options for the rule `noRestrictedGlobals`.",
|
|
1643
1676
|
"type": "object",
|
|
1677
|
+
"required": ["deniedGlobals"],
|
|
1644
1678
|
"properties": {
|
|
1645
1679
|
"deniedGlobals": {
|
|
1646
1680
|
"description": "A list of names that should trigger the rule",
|
|
1647
|
-
"type":
|
|
1681
|
+
"type": "array",
|
|
1648
1682
|
"items": { "type": "string" }
|
|
1649
1683
|
}
|
|
1650
1684
|
},
|
|
@@ -1755,7 +1789,7 @@
|
|
|
1755
1789
|
"type": ["boolean", "null"]
|
|
1756
1790
|
},
|
|
1757
1791
|
"noArguments": {
|
|
1758
|
-
"description": "Disallow the use of arguments",
|
|
1792
|
+
"description": "Disallow the use of arguments.",
|
|
1759
1793
|
"anyOf": [
|
|
1760
1794
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1761
1795
|
{ "type": "null" }
|
|
@@ -1884,13 +1918,6 @@
|
|
|
1884
1918
|
{ "type": "null" }
|
|
1885
1919
|
]
|
|
1886
1920
|
},
|
|
1887
|
-
"useConsistentArrayType": {
|
|
1888
|
-
"description": "Require consistently using either T[] or Array<T>",
|
|
1889
|
-
"anyOf": [
|
|
1890
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1891
|
-
{ "type": "null" }
|
|
1892
|
-
]
|
|
1893
|
-
},
|
|
1894
1921
|
"useConst": {
|
|
1895
1922
|
"description": "Require const declarations for variables that are never reassigned after declared.",
|
|
1896
1923
|
"anyOf": [
|
|
@@ -2349,12 +2376,9 @@
|
|
|
2349
2376
|
},
|
|
2350
2377
|
"ValidAriaRoleOptions": {
|
|
2351
2378
|
"type": "object",
|
|
2352
|
-
"required": ["
|
|
2379
|
+
"required": ["allowInvalidRoles", "ignoreNonDom"],
|
|
2353
2380
|
"properties": {
|
|
2354
|
-
"
|
|
2355
|
-
"type": "array",
|
|
2356
|
-
"items": { "type": "string" }
|
|
2357
|
-
},
|
|
2381
|
+
"allowInvalidRoles": { "type": "array", "items": { "type": "string" } },
|
|
2358
2382
|
"ignoreNonDom": { "type": "boolean" }
|
|
2359
2383
|
},
|
|
2360
2384
|
"additionalProperties": false
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@biomejs/biome","version":"1.5.
|
|
1
|
+
{"name":"@biomejs/biome","version":"1.5.2-nightly.91c7730","bin":"bin/biome","scripts":{"postinstall":"node scripts/postinstall.js"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"packages/@biomejs/biome"},"author":"Emanuele Stoppa","license":"MIT OR Apache-2.0","bugs":"https://github.com/biomejs/biome/issues","description":"Biome is a toolchain for the web: formatter, linter and more","files":["bin/biome","scripts/postinstall.js","configuration_schema.json","README.md","LICENSE-APACHE","LICENSE-MIT","ROME-LICENSE-MIT"],"keywords":["JavaScript","TypeScript","format","lint","toolchain","JSON"],"engines":{"node":">=14.*"},"funding":{"type":"opencollective","url":"https://opencollective.com/biome"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.5.2-nightly.91c7730","@biomejs/cli-win32-arm64":"1.5.2-nightly.91c7730","@biomejs/cli-darwin-x64":"1.5.2-nightly.91c7730","@biomejs/cli-darwin-arm64":"1.5.2-nightly.91c7730","@biomejs/cli-linux-x64":"1.5.2-nightly.91c7730","@biomejs/cli-linux-arm64":"1.5.2-nightly.91c7730","@biomejs/cli-linux-x64-musl":"1.5.2-nightly.91c7730","@biomejs/cli-linux-arm64-musl":"1.5.2-nightly.91c7730"}}
|