@biomejs/biome 1.5.0 → 1.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.
@@ -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" }]
@@ -1755,7 +1788,7 @@
1755
1788
  "type": ["boolean", "null"]
1756
1789
  },
1757
1790
  "noArguments": {
1758
- "description": "Disallow the use of arguments",
1791
+ "description": "Disallow the use of arguments.",
1759
1792
  "anyOf": [
1760
1793
  { "$ref": "#/definitions/RuleConfiguration" },
1761
1794
  { "type": "null" }
@@ -1884,13 +1917,6 @@
1884
1917
  { "type": "null" }
1885
1918
  ]
1886
1919
  },
1887
- "useConsistentArrayType": {
1888
- "description": "Require consistently using either T[] or Array<T>",
1889
- "anyOf": [
1890
- { "$ref": "#/definitions/RuleConfiguration" },
1891
- { "type": "null" }
1892
- ]
1893
- },
1894
1920
  "useConst": {
1895
1921
  "description": "Require const declarations for variables that are never reassigned after declared.",
1896
1922
  "anyOf": [
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@biomejs/biome","version":"1.5.0","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.0","@biomejs/cli-win32-arm64":"1.5.0","@biomejs/cli-darwin-x64":"1.5.0","@biomejs/cli-darwin-arm64":"1.5.0","@biomejs/cli-linux-x64":"1.5.0","@biomejs/cli-linux-arm64":"1.5.0","@biomejs/cli-linux-x64-musl":"1.5.0","@biomejs/cli-linux-arm64-musl":"1.5.0"}}
1
+ {"name":"@biomejs/biome","version":"1.5.2","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","@biomejs/cli-win32-arm64":"1.5.2","@biomejs/cli-darwin-x64":"1.5.2","@biomejs/cli-darwin-arm64":"1.5.2","@biomejs/cli-linux-x64":"1.5.2","@biomejs/cli-linux-arm64":"1.5.2","@biomejs/cli-linux-x64-musl":"1.5.2","@biomejs/cli-linux-arm64-musl":"1.5.2"}}