@biomejs/biome 1.7.4-nightly.125f34b → 1.8.0

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.
@@ -608,6 +608,13 @@
608
608
  { "type": "null" }
609
609
  ]
610
610
  },
611
+ "noConstantMathMinMaxClamp": {
612
+ "description": "Disallow the use of Math.min and Math.max to clamp a value where the result itself is constant.",
613
+ "anyOf": [
614
+ { "$ref": "#/definitions/RuleFixConfiguration_for_Null" },
615
+ { "type": "null" }
616
+ ]
617
+ },
611
618
  "noConstructorReturn": {
612
619
  "description": "Disallow returning a value from a constructor.",
613
620
  "anyOf": [
@@ -629,6 +636,13 @@
629
636
  { "type": "null" }
630
637
  ]
631
638
  },
639
+ "noFlatMapIdentity": {
640
+ "description": "Disallow to use unnecessary callback on flatMap.",
641
+ "anyOf": [
642
+ { "$ref": "#/definitions/RuleFixConfiguration_for_Null" },
643
+ { "type": "null" }
644
+ ]
645
+ },
632
646
  "noGlobalObjectCalls": {
633
647
  "description": "Disallow calling global object properties as functions",
634
648
  "anyOf": [
@@ -671,6 +685,13 @@
671
685
  { "type": "null" }
672
686
  ]
673
687
  },
688
+ "noNodejsModules": {
689
+ "description": "Forbid the use of Node.js builtin modules.",
690
+ "anyOf": [
691
+ { "$ref": "#/definitions/RuleConfiguration" },
692
+ { "type": "null" }
693
+ ]
694
+ },
674
695
  "noNonoctalDecimalEscape": {
675
696
  "description": "Disallow \\8 and \\9 escape sequences in string literals.",
676
697
  "anyOf": [
@@ -808,6 +829,13 @@
808
829
  "description": "It enables the recommended rules for this group",
809
830
  "type": ["boolean", "null"]
810
831
  },
832
+ "useArrayLiterals": {
833
+ "description": "Disallow Array constructors.",
834
+ "anyOf": [
835
+ { "$ref": "#/definitions/RuleFixConfiguration_for_Null" },
836
+ { "type": "null" }
837
+ ]
838
+ },
811
839
  "useExhaustiveDependencies": {
812
840
  "description": "Enforce all dependencies are correctly specified in a React hook.",
813
841
  "anyOf": [
@@ -929,6 +957,10 @@
929
957
  "allowWrongLineComments": {
930
958
  "description": "Allow comments to appear on incorrect lines in `.css` files",
931
959
  "type": ["boolean", "null"]
960
+ },
961
+ "cssModules": {
962
+ "description": "Enables parsing of CSS Modules specific features.",
963
+ "type": ["boolean", "null"]
932
964
  }
933
965
  },
934
966
  "additionalProperties": false
@@ -1462,7 +1494,7 @@
1462
1494
  "enum": ["function"]
1463
1495
  },
1464
1496
  {
1465
- "description": "TypeScript mamespaces, import and export namesapces",
1497
+ "description": "TypeScript namespaces, import and export namespaces",
1466
1498
  "type": "string",
1467
1499
  "enum": ["namespaceLike"]
1468
1500
  },
@@ -1599,6 +1631,34 @@
1599
1631
  },
1600
1632
  "additionalProperties": false
1601
1633
  },
1634
+ "NoLabelWithoutControlConfiguration": {
1635
+ "anyOf": [
1636
+ { "$ref": "#/definitions/RulePlainConfiguration" },
1637
+ { "$ref": "#/definitions/RuleWithNoLabelWithoutControlOptions" }
1638
+ ]
1639
+ },
1640
+ "NoLabelWithoutControlOptions": {
1641
+ "type": "object",
1642
+ "required": ["inputComponents", "labelAttributes", "labelComponents"],
1643
+ "properties": {
1644
+ "inputComponents": {
1645
+ "description": "Array of component names that should be considered the same as an `input` element.",
1646
+ "type": "array",
1647
+ "items": { "type": "string" }
1648
+ },
1649
+ "labelAttributes": {
1650
+ "description": "Array of attributes that should be treated as the `label` accessible text content.",
1651
+ "type": "array",
1652
+ "items": { "type": "string" }
1653
+ },
1654
+ "labelComponents": {
1655
+ "description": "Array of component names that should be considered the same as a `label` element.",
1656
+ "type": "array",
1657
+ "items": { "type": "string" }
1658
+ }
1659
+ },
1660
+ "additionalProperties": false
1661
+ },
1602
1662
  "Nursery": {
1603
1663
  "description": "A list of rules that belong to this group",
1604
1664
  "type": "object",
@@ -1614,13 +1674,6 @@
1614
1674
  { "type": "null" }
1615
1675
  ]
1616
1676
  },
1617
- "noConstantMathMinMaxClamp": {
1618
- "description": "Disallow the use of Math.min and Math.max to clamp a value where the result itself is constant.",
1619
- "anyOf": [
1620
- { "$ref": "#/definitions/RuleFixConfiguration_for_Null" },
1621
- { "type": "null" }
1622
- ]
1623
- },
1624
1677
  "noDoneCallback": {
1625
1678
  "description": "Disallow using a callback in asynchronous tests and hooks.",
1626
1679
  "anyOf": [
@@ -1670,20 +1723,13 @@
1670
1723
  { "type": "null" }
1671
1724
  ]
1672
1725
  },
1673
- "noEvolvingAny": {
1726
+ "noEvolvingTypes": {
1674
1727
  "description": "Disallow variables from evolving into any type through reassignments.",
1675
1728
  "anyOf": [
1676
1729
  { "$ref": "#/definitions/RuleConfiguration" },
1677
1730
  { "type": "null" }
1678
1731
  ]
1679
1732
  },
1680
- "noFlatMapIdentity": {
1681
- "description": "Disallow to use unnecessary callback on flatMap.",
1682
- "anyOf": [
1683
- { "$ref": "#/definitions/RuleFixConfiguration_for_Null" },
1684
- { "type": "null" }
1685
- ]
1686
- },
1687
1733
  "noImportantInKeyframe": {
1688
1734
  "description": "Disallow invalid !important within keyframe declarations",
1689
1735
  "anyOf": [
@@ -1698,15 +1744,15 @@
1698
1744
  { "type": "null" }
1699
1745
  ]
1700
1746
  },
1701
- "noMisplacedAssertion": {
1702
- "description": "Checks that the assertion function, for example expect, is placed inside an it() function call.",
1747
+ "noLabelWithoutControl": {
1748
+ "description": "Enforce that a label element or component has a text label and an associated input.",
1703
1749
  "anyOf": [
1704
- { "$ref": "#/definitions/RuleConfiguration" },
1750
+ { "$ref": "#/definitions/NoLabelWithoutControlConfiguration" },
1705
1751
  { "type": "null" }
1706
1752
  ]
1707
1753
  },
1708
- "noNodejsModules": {
1709
- "description": "Forbid the use of Node.js builtin modules.",
1754
+ "noMisplacedAssertion": {
1755
+ "description": "Checks that the assertion function, for example expect, is placed inside an it() function call.",
1710
1756
  "anyOf": [
1711
1757
  { "$ref": "#/definitions/RuleConfiguration" },
1712
1758
  { "type": "null" }
@@ -1775,6 +1821,13 @@
1775
1821
  { "type": "null" }
1776
1822
  ]
1777
1823
  },
1824
+ "noUnusedFunctionParameters": {
1825
+ "description": "Disallow unused function parameters.",
1826
+ "anyOf": [
1827
+ { "$ref": "#/definitions/RuleFixConfiguration_for_Null" },
1828
+ { "type": "null" }
1829
+ ]
1830
+ },
1778
1831
  "noUselessStringConcat": {
1779
1832
  "description": "Disallow unnecessary concatenation of string or template literals.",
1780
1833
  "anyOf": [
@@ -1807,15 +1860,15 @@
1807
1860
  { "type": "null" }
1808
1861
  ]
1809
1862
  },
1810
- "useArrayLiterals": {
1811
- "description": "Disallow Array constructors.",
1863
+ "useConsistentBuiltinInstantiation": {
1864
+ "description": "Enforce the use of new for all builtins, except String, Number, Boolean, Symbol and BigInt.",
1812
1865
  "anyOf": [
1813
1866
  { "$ref": "#/definitions/RuleFixConfiguration_for_Null" },
1814
1867
  { "type": "null" }
1815
1868
  ]
1816
1869
  },
1817
- "useConsistentBuiltinInstantiation": {
1818
- "description": "Enforce the use of new for all builtins, except String, Number, Boolean, Symbol and BigInt.",
1870
+ "useDateNow": {
1871
+ "description": "Use Date.now() to get the number of milliseconds since the Unix Epoch.",
1819
1872
  "anyOf": [
1820
1873
  { "$ref": "#/definitions/RuleFixConfiguration_for_Null" },
1821
1874
  { "type": "null" }
@@ -1828,6 +1881,13 @@
1828
1881
  { "type": "null" }
1829
1882
  ]
1830
1883
  },
1884
+ "useErrorMessage": {
1885
+ "description": "Enforce passing a message value when creating a built-in error.",
1886
+ "anyOf": [
1887
+ { "$ref": "#/definitions/RuleConfiguration" },
1888
+ { "type": "null" }
1889
+ ]
1890
+ },
1831
1891
  "useExplicitLengthCheck": {
1832
1892
  "description": "Enforce explicitly comparing the length, size, byteLength or byteOffset property of a value.",
1833
1893
  "anyOf": [
@@ -2195,7 +2255,7 @@
2195
2255
  },
2196
2256
  "RulePlainConfiguration": {
2197
2257
  "type": "string",
2198
- "enum": ["warn", "error", "off"]
2258
+ "enum": ["warn", "error", "info", "off"]
2199
2259
  },
2200
2260
  "RuleWithComplexityOptions": {
2201
2261
  "type": "object",
@@ -2349,6 +2409,21 @@
2349
2409
  },
2350
2410
  "additionalProperties": false
2351
2411
  },
2412
+ "RuleWithNoLabelWithoutControlOptions": {
2413
+ "type": "object",
2414
+ "required": ["level", "options"],
2415
+ "properties": {
2416
+ "level": {
2417
+ "description": "The severity of the emitted diagnostics by the rule",
2418
+ "allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
2419
+ },
2420
+ "options": {
2421
+ "description": "Rule's options",
2422
+ "allOf": [{ "$ref": "#/definitions/NoLabelWithoutControlOptions" }]
2423
+ }
2424
+ },
2425
+ "additionalProperties": false
2426
+ },
2352
2427
  "RuleWithNoOptions": {
2353
2428
  "type": "object",
2354
2429
  "required": ["level"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biomejs/biome",
3
- "version": "1.7.4-nightly.125f34b",
3
+ "version": "1.8.0",
4
4
  "bin": "bin/biome",
5
5
  "scripts": {
6
6
  "postinstall": "node scripts/postinstall.js"
@@ -40,13 +40,13 @@
40
40
  "url": "https://opencollective.com/biome"
41
41
  },
42
42
  "optionalDependencies": {
43
- "@biomejs/cli-win32-x64": "1.7.4-nightly.125f34b",
44
- "@biomejs/cli-win32-arm64": "1.7.4-nightly.125f34b",
45
- "@biomejs/cli-darwin-x64": "1.7.4-nightly.125f34b",
46
- "@biomejs/cli-darwin-arm64": "1.7.4-nightly.125f34b",
47
- "@biomejs/cli-linux-x64": "1.7.4-nightly.125f34b",
48
- "@biomejs/cli-linux-arm64": "1.7.4-nightly.125f34b",
49
- "@biomejs/cli-linux-x64-musl": "1.7.4-nightly.125f34b",
50
- "@biomejs/cli-linux-arm64-musl": "1.7.4-nightly.125f34b"
43
+ "@biomejs/cli-win32-x64": "1.8.0",
44
+ "@biomejs/cli-win32-arm64": "1.8.0",
45
+ "@biomejs/cli-darwin-x64": "1.8.0",
46
+ "@biomejs/cli-darwin-arm64": "1.8.0",
47
+ "@biomejs/cli-linux-x64": "1.8.0",
48
+ "@biomejs/cli-linux-arm64": "1.8.0",
49
+ "@biomejs/cli-linux-x64-musl": "1.8.0",
50
+ "@biomejs/cli-linux-arm64-musl": "1.8.0"
51
51
  }
52
52
  }