@biomejs/biome 2.5.6 → 2.5.8
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 +363 -151
- package/package.json +9 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"title": "Configuration",
|
|
4
|
-
"description": "The configuration
|
|
4
|
+
"description": "The configuration contained in `biome.json`.",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"$schema": {
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"anyOf": [{ "$ref": "#/$defs/Schema" }, { "type": "null" }]
|
|
10
10
|
},
|
|
11
11
|
"assist": {
|
|
12
|
-
"description": "
|
|
12
|
+
"description": "The assist configuration.",
|
|
13
13
|
"anyOf": [{ "$ref": "#/$defs/AssistConfiguration" }, { "type": "null" }]
|
|
14
14
|
},
|
|
15
15
|
"css": {
|
|
16
|
-
"description": "
|
|
16
|
+
"description": "Configuration specific to CSS.",
|
|
17
17
|
"anyOf": [{ "$ref": "#/$defs/CssConfiguration" }, { "type": "null" }]
|
|
18
18
|
},
|
|
19
19
|
"extends": {
|
|
@@ -21,42 +21,42 @@
|
|
|
21
21
|
"anyOf": [{ "$ref": "#/$defs/Extends" }, { "type": "null" }]
|
|
22
22
|
},
|
|
23
23
|
"files": {
|
|
24
|
-
"description": "The
|
|
24
|
+
"description": "The file handling configuration.",
|
|
25
25
|
"anyOf": [{ "$ref": "#/$defs/FilesConfiguration" }, { "type": "null" }]
|
|
26
26
|
},
|
|
27
27
|
"formatter": {
|
|
28
|
-
"description": "The configuration
|
|
28
|
+
"description": "The formatter configuration.",
|
|
29
29
|
"anyOf": [
|
|
30
30
|
{ "$ref": "#/$defs/FormatterConfiguration" },
|
|
31
31
|
{ "type": "null" }
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
"graphql": {
|
|
35
|
-
"description": "
|
|
35
|
+
"description": "Configuration specific to GraphQL.",
|
|
36
36
|
"anyOf": [{ "$ref": "#/$defs/GraphqlConfiguration" }, { "type": "null" }]
|
|
37
37
|
},
|
|
38
38
|
"grit": {
|
|
39
|
-
"description": "
|
|
39
|
+
"description": "Configuration specific to GritQL.",
|
|
40
40
|
"anyOf": [{ "$ref": "#/$defs/GritConfiguration" }, { "type": "null" }]
|
|
41
41
|
},
|
|
42
42
|
"html": {
|
|
43
|
-
"description": "
|
|
43
|
+
"description": "Configuration specific to HTML.",
|
|
44
44
|
"anyOf": [{ "$ref": "#/$defs/HtmlConfiguration" }, { "type": "null" }]
|
|
45
45
|
},
|
|
46
46
|
"javascript": {
|
|
47
|
-
"description": "
|
|
47
|
+
"description": "Configuration specific to JavaScript.",
|
|
48
48
|
"anyOf": [{ "$ref": "#/$defs/JsConfiguration" }, { "type": "null" }]
|
|
49
49
|
},
|
|
50
50
|
"json": {
|
|
51
|
-
"description": "
|
|
51
|
+
"description": "Configuration specific to JSON.",
|
|
52
52
|
"anyOf": [{ "$ref": "#/$defs/JsonConfiguration" }, { "type": "null" }]
|
|
53
53
|
},
|
|
54
54
|
"linter": {
|
|
55
|
-
"description": "The configuration
|
|
55
|
+
"description": "The linter configuration.",
|
|
56
56
|
"anyOf": [{ "$ref": "#/$defs/LinterConfiguration" }, { "type": "null" }]
|
|
57
57
|
},
|
|
58
58
|
"overrides": {
|
|
59
|
-
"description": "A list of granular patterns
|
|
59
|
+
"description": "A list of granular patterns applied only to a subset of files.",
|
|
60
60
|
"anyOf": [{ "$ref": "#/$defs/Overrides" }, { "type": "null" }]
|
|
61
61
|
},
|
|
62
62
|
"plugins": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
69
69
|
},
|
|
70
70
|
"vcs": {
|
|
71
|
-
"description": "The
|
|
71
|
+
"description": "The version control integration configuration.",
|
|
72
72
|
"anyOf": [{ "$ref": "#/$defs/VcsConfiguration" }, { "type": "null" }]
|
|
73
73
|
}
|
|
74
74
|
},
|
|
@@ -462,6 +462,26 @@
|
|
|
462
462
|
}
|
|
463
463
|
]
|
|
464
464
|
},
|
|
465
|
+
"CompilationMode": {
|
|
466
|
+
"description": "Controls which functions React Compiler analyzes.",
|
|
467
|
+
"oneOf": [
|
|
468
|
+
{
|
|
469
|
+
"description": "Analyze functions that follow React conventions: components\n(capitalized functions that create JSX or call hooks) and hooks\n(`use`-prefixed functions).",
|
|
470
|
+
"type": "string",
|
|
471
|
+
"const": "infer"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"description": "Analyze only functions annotated with a `\"use memo\"` directive.",
|
|
475
|
+
"type": "string",
|
|
476
|
+
"const": "annotation"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"description": "Analyze every function. This can report React-specific diagnostics in\nnon-React code, such as utility functions that update module-level\nstate.",
|
|
480
|
+
"type": "string",
|
|
481
|
+
"const": "all"
|
|
482
|
+
}
|
|
483
|
+
]
|
|
484
|
+
},
|
|
465
485
|
"Complexity": {
|
|
466
486
|
"description": "A list of rules that belong to this group",
|
|
467
487
|
"type": "object",
|
|
@@ -1605,22 +1625,22 @@
|
|
|
1605
1625
|
"additionalProperties": false
|
|
1606
1626
|
},
|
|
1607
1627
|
"CssAssistConfiguration": {
|
|
1608
|
-
"description": "Options that
|
|
1628
|
+
"description": "Options that change how CSS assist behaves.",
|
|
1609
1629
|
"type": "object",
|
|
1610
1630
|
"properties": {
|
|
1611
1631
|
"enabled": {
|
|
1612
|
-
"description": "
|
|
1632
|
+
"description": "Controls assist actions for CSS files.",
|
|
1613
1633
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
1614
1634
|
}
|
|
1615
1635
|
},
|
|
1616
1636
|
"additionalProperties": false
|
|
1617
1637
|
},
|
|
1618
1638
|
"CssConfiguration": {
|
|
1619
|
-
"description": "Options applied to CSS files",
|
|
1639
|
+
"description": "Options applied to CSS files.",
|
|
1620
1640
|
"type": "object",
|
|
1621
1641
|
"properties": {
|
|
1622
1642
|
"assist": {
|
|
1623
|
-
"description": "CSS assist options",
|
|
1643
|
+
"description": "CSS assist options.",
|
|
1624
1644
|
"anyOf": [
|
|
1625
1645
|
{ "$ref": "#/$defs/CssAssistConfiguration" },
|
|
1626
1646
|
{ "type": "null" }
|
|
@@ -1628,7 +1648,7 @@
|
|
|
1628
1648
|
"default": null
|
|
1629
1649
|
},
|
|
1630
1650
|
"formatter": {
|
|
1631
|
-
"description": "CSS formatter options",
|
|
1651
|
+
"description": "CSS formatter options.",
|
|
1632
1652
|
"anyOf": [
|
|
1633
1653
|
{ "$ref": "#/$defs/CssFormatterConfiguration" },
|
|
1634
1654
|
{ "type": "null" }
|
|
@@ -1636,13 +1656,13 @@
|
|
|
1636
1656
|
"default": null
|
|
1637
1657
|
},
|
|
1638
1658
|
"globals": {
|
|
1639
|
-
"description": "CSS globals",
|
|
1659
|
+
"description": "CSS globals.",
|
|
1640
1660
|
"type": ["array", "null"],
|
|
1641
1661
|
"items": { "type": "string" },
|
|
1642
1662
|
"uniqueItems": true
|
|
1643
1663
|
},
|
|
1644
1664
|
"linter": {
|
|
1645
|
-
"description": "CSS linter options",
|
|
1665
|
+
"description": "CSS linter options.",
|
|
1646
1666
|
"anyOf": [
|
|
1647
1667
|
{ "$ref": "#/$defs/CssLinterConfiguration" },
|
|
1648
1668
|
{ "type": "null" }
|
|
@@ -1650,7 +1670,7 @@
|
|
|
1650
1670
|
"default": null
|
|
1651
1671
|
},
|
|
1652
1672
|
"parser": {
|
|
1653
|
-
"description": "CSS parsing options",
|
|
1673
|
+
"description": "CSS parsing options.",
|
|
1654
1674
|
"anyOf": [
|
|
1655
1675
|
{ "$ref": "#/$defs/CssParserConfiguration" },
|
|
1656
1676
|
{ "type": "null" }
|
|
@@ -1661,65 +1681,65 @@
|
|
|
1661
1681
|
"additionalProperties": false
|
|
1662
1682
|
},
|
|
1663
1683
|
"CssFormatterConfiguration": {
|
|
1664
|
-
"description": "Options that
|
|
1684
|
+
"description": "Options that change how the CSS formatter behaves.",
|
|
1665
1685
|
"type": "object",
|
|
1666
1686
|
"properties": {
|
|
1667
1687
|
"delimiterSpacing": {
|
|
1668
|
-
"description": "
|
|
1688
|
+
"description": "Controls spaces inside CSS parentheses and square brackets when their content fits on one\nline. When enabled, `rgb(0, 0, 0)` becomes `rgb( 0, 0, 0 )` and `[data-attr]` becomes\n`[ data-attr ]`. Empty delimiters are unchanged.\n\nIf unset, inherits the global delimiter spacing setting.",
|
|
1669
1689
|
"anyOf": [{ "$ref": "#/$defs/DelimiterSpacing" }, { "type": "null" }]
|
|
1670
1690
|
},
|
|
1671
1691
|
"enabled": {
|
|
1672
|
-
"description": "
|
|
1692
|
+
"description": "Controls the formatter for CSS and languages that extend it.",
|
|
1673
1693
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
1674
1694
|
},
|
|
1675
1695
|
"indentStyle": {
|
|
1676
|
-
"description": "The indent style applied to CSS
|
|
1696
|
+
"description": "The indent style applied to CSS and languages that extend it. If unset, inherits the global\nindentation style.",
|
|
1677
1697
|
"anyOf": [{ "$ref": "#/$defs/IndentStyle" }, { "type": "null" }]
|
|
1678
1698
|
},
|
|
1679
1699
|
"indentWidth": {
|
|
1680
|
-
"description": "The
|
|
1700
|
+
"description": "The indentation width applied to CSS and languages that extend it. If unset, inherits the\nglobal indentation width.",
|
|
1681
1701
|
"anyOf": [{ "$ref": "#/$defs/IndentWidth" }, { "type": "null" }]
|
|
1682
1702
|
},
|
|
1683
1703
|
"lineEnding": {
|
|
1684
|
-
"description": "The
|
|
1704
|
+
"description": "The line ending applied to CSS and languages that extend it. If unset, inherits the global\nline ending.",
|
|
1685
1705
|
"anyOf": [{ "$ref": "#/$defs/LineEnding" }, { "type": "null" }]
|
|
1686
1706
|
},
|
|
1687
1707
|
"lineWidth": {
|
|
1688
|
-
"description": "
|
|
1708
|
+
"description": "The maximum line width for CSS and languages that extend it. If unset, inherits the global\nline width.",
|
|
1689
1709
|
"anyOf": [{ "$ref": "#/$defs/LineWidth" }, { "type": "null" }]
|
|
1690
1710
|
},
|
|
1691
1711
|
"quoteStyle": {
|
|
1692
|
-
"description": "The type of quotes used in CSS code. Defaults to double
|
|
1712
|
+
"description": "The type of quotes used in CSS code. Defaults to `double`.",
|
|
1693
1713
|
"anyOf": [{ "$ref": "#/$defs/QuoteStyle" }, { "type": "null" }]
|
|
1694
1714
|
},
|
|
1695
1715
|
"trailingNewline": {
|
|
1696
|
-
"description": "Whether to add a trailing newline at the end of the file
|
|
1716
|
+
"description": "Whether to add a trailing newline at the end of the file. If unset, inherits the global\ntrailing newline setting.",
|
|
1697
1717
|
"anyOf": [{ "$ref": "#/$defs/TrailingNewline" }, { "type": "null" }]
|
|
1698
1718
|
}
|
|
1699
1719
|
},
|
|
1700
1720
|
"additionalProperties": false
|
|
1701
1721
|
},
|
|
1702
1722
|
"CssLinterConfiguration": {
|
|
1703
|
-
"description": "Options that
|
|
1723
|
+
"description": "Options that change how the CSS linter behaves.",
|
|
1704
1724
|
"type": "object",
|
|
1705
1725
|
"properties": {
|
|
1706
1726
|
"enabled": {
|
|
1707
|
-
"description": "
|
|
1727
|
+
"description": "Controls the linter for CSS files.",
|
|
1708
1728
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
1709
1729
|
}
|
|
1710
1730
|
},
|
|
1711
1731
|
"additionalProperties": false
|
|
1712
1732
|
},
|
|
1713
1733
|
"CssParserConfiguration": {
|
|
1714
|
-
"description": "Options that
|
|
1734
|
+
"description": "Options that change how the CSS parser behaves.",
|
|
1715
1735
|
"type": "object",
|
|
1716
1736
|
"properties": {
|
|
1717
1737
|
"allowWrongLineComments": {
|
|
1718
|
-
"description": "
|
|
1738
|
+
"description": "Allows comments to appear on incorrect lines in `.css` files.",
|
|
1719
1739
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
1720
1740
|
},
|
|
1721
1741
|
"cssModules": {
|
|
1722
|
-
"description": "Enables parsing of CSS Modules
|
|
1742
|
+
"description": "Enables parsing of CSS Modules-specific features. Enable this feature only\nwhen your files don't end in `.module.css`.",
|
|
1723
1743
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
1724
1744
|
},
|
|
1725
1745
|
"tailwindDirectives": {
|
|
@@ -1793,7 +1813,7 @@
|
|
|
1793
1813
|
"Expand": {
|
|
1794
1814
|
"oneOf": [
|
|
1795
1815
|
{
|
|
1796
|
-
"description": "Objects are expanded when the first property has a leading newline. Arrays
|
|
1816
|
+
"description": "Objects are expanded when the first property has a leading newline. Arrays remain on one\nline if they fit.",
|
|
1797
1817
|
"type": "string",
|
|
1798
1818
|
"const": "auto"
|
|
1799
1819
|
},
|
|
@@ -1803,7 +1823,7 @@
|
|
|
1803
1823
|
"const": "always"
|
|
1804
1824
|
},
|
|
1805
1825
|
{
|
|
1806
|
-
"description": "Objects and arrays
|
|
1826
|
+
"description": "Objects and arrays remain on one line if they fit.",
|
|
1807
1827
|
"type": "string",
|
|
1808
1828
|
"const": "never"
|
|
1809
1829
|
}
|
|
@@ -1843,7 +1863,7 @@
|
|
|
1843
1863
|
"uniqueItems": true
|
|
1844
1864
|
},
|
|
1845
1865
|
"FilesConfiguration": {
|
|
1846
|
-
"description": "The
|
|
1866
|
+
"description": "The file handling configuration.",
|
|
1847
1867
|
"type": "object",
|
|
1848
1868
|
"properties": {
|
|
1849
1869
|
"experimentalScannerIgnores": {
|
|
@@ -1852,16 +1872,16 @@
|
|
|
1852
1872
|
"items": { "type": "string" }
|
|
1853
1873
|
},
|
|
1854
1874
|
"ignoreUnknown": {
|
|
1855
|
-
"description": "
|
|
1875
|
+
"description": "Prevents Biome from emitting diagnostics for unrecognized file types.",
|
|
1856
1876
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
1857
1877
|
},
|
|
1858
1878
|
"includes": {
|
|
1859
|
-
"description": "A list of glob patterns. Biome
|
|
1879
|
+
"description": "A list of glob patterns. Biome handles only files and directories that match these\npatterns.",
|
|
1860
1880
|
"type": ["array", "null"],
|
|
1861
1881
|
"items": { "$ref": "#/$defs/NormalizedGlob" }
|
|
1862
1882
|
},
|
|
1863
1883
|
"maxSize": {
|
|
1864
|
-
"description": "The maximum
|
|
1884
|
+
"description": "The maximum source file size in bytes. Biome ignores larger files. Defaults to `1 MiB`.",
|
|
1865
1885
|
"anyOf": [{ "$ref": "#/$defs/MaxSize" }, { "type": "null" }]
|
|
1866
1886
|
}
|
|
1867
1887
|
},
|
|
@@ -1902,30 +1922,30 @@
|
|
|
1902
1922
|
"type": "object",
|
|
1903
1923
|
"properties": {
|
|
1904
1924
|
"attributePosition": {
|
|
1905
|
-
"description": "The attribute position style in HTML-
|
|
1925
|
+
"description": "The attribute position style in HTML-like languages. Defaults to `auto`.",
|
|
1906
1926
|
"anyOf": [{ "$ref": "#/$defs/AttributePosition" }, { "type": "null" }]
|
|
1907
1927
|
},
|
|
1908
1928
|
"bracketSameLine": {
|
|
1909
|
-
"description": "
|
|
1929
|
+
"description": "Places the `>` of a multiline HTML or JSX element at the end of the last line instead of on\nthe next line. Self-closing elements are unaffected. Defaults to `false`.",
|
|
1910
1930
|
"anyOf": [{ "$ref": "#/$defs/BracketSameLine" }, { "type": "null" }]
|
|
1911
1931
|
},
|
|
1912
1932
|
"bracketSpacing": {
|
|
1913
|
-
"description": "Whether to insert spaces
|
|
1933
|
+
"description": "Whether to insert spaces inside braces in object literals. Defaults to `true`.",
|
|
1914
1934
|
"anyOf": [{ "$ref": "#/$defs/BracketSpacing" }, { "type": "null" }]
|
|
1915
1935
|
},
|
|
1916
1936
|
"delimiterSpacing": {
|
|
1917
|
-
"description": "
|
|
1937
|
+
"description": "Controls spaces immediately inside supported delimiters when their content fits on one line.\nIt doesn't add spaces before opening delimiters or inside empty delimiters.\n\nThe affected delimiters vary by language. Defaults to `false`.",
|
|
1918
1938
|
"anyOf": [{ "$ref": "#/$defs/DelimiterSpacing" }, { "type": "null" }]
|
|
1919
1939
|
},
|
|
1920
1940
|
"enabled": {
|
|
1921
1941
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
1922
1942
|
},
|
|
1923
1943
|
"expand": {
|
|
1924
|
-
"description": "
|
|
1944
|
+
"description": "Controls whether arrays and objects are formatted on one line or multiple lines.\n\n`auto` formats objects on multiple lines if the first property has a newline, and arrays on\none line if they fit.\n\n`always` formats arrays and objects on multiple lines.\n\n`never` formats arrays and objects on one line if they fit.\n\nDefaults to `auto`.\n\nWhen formatting `package.json`, Biome uses `always` unless configured otherwise.",
|
|
1925
1945
|
"anyOf": [{ "$ref": "#/$defs/Expand" }, { "type": "null" }]
|
|
1926
1946
|
},
|
|
1927
1947
|
"formatWithErrors": {
|
|
1928
|
-
"description": "
|
|
1948
|
+
"description": "Allows formatting files that contain syntax errors when set to `true`. Defaults to `false`.",
|
|
1929
1949
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
1930
1950
|
},
|
|
1931
1951
|
"includes": {
|
|
@@ -1934,27 +1954,27 @@
|
|
|
1934
1954
|
"items": { "$ref": "#/$defs/NormalizedGlob" }
|
|
1935
1955
|
},
|
|
1936
1956
|
"indentStyle": {
|
|
1937
|
-
"description": "
|
|
1957
|
+
"description": "Uses tabs or spaces for indentation. Defaults to `tab`.",
|
|
1938
1958
|
"anyOf": [{ "$ref": "#/$defs/IndentStyle" }, { "type": "null" }]
|
|
1939
1959
|
},
|
|
1940
1960
|
"indentWidth": {
|
|
1941
|
-
"description": "The
|
|
1961
|
+
"description": "The indentation width. Defaults to `2`.",
|
|
1942
1962
|
"anyOf": [{ "$ref": "#/$defs/IndentWidth" }, { "type": "null" }]
|
|
1943
1963
|
},
|
|
1944
1964
|
"lineEnding": {
|
|
1945
|
-
"description": "
|
|
1965
|
+
"description": "Selects the line ending. `auto` uses the platform convention. Defaults to `lf`.",
|
|
1946
1966
|
"anyOf": [{ "$ref": "#/$defs/LineEnding" }, { "type": "null" }]
|
|
1947
1967
|
},
|
|
1948
1968
|
"lineWidth": {
|
|
1949
|
-
"description": "
|
|
1969
|
+
"description": "The maximum line width. Defaults to `80`.",
|
|
1950
1970
|
"anyOf": [{ "$ref": "#/$defs/LineWidth" }, { "type": "null" }]
|
|
1951
1971
|
},
|
|
1952
1972
|
"trailingNewline": {
|
|
1953
|
-
"description": "Whether to add a trailing newline at the end of the file
|
|
1973
|
+
"description": "Whether to add a trailing newline at the end of the file. Defaults to `true`; disabling\nthis option can cause compatibility problems with other tools.",
|
|
1954
1974
|
"anyOf": [{ "$ref": "#/$defs/TrailingNewline" }, { "type": "null" }]
|
|
1955
1975
|
},
|
|
1956
1976
|
"useEditorconfig": {
|
|
1957
|
-
"description": "
|
|
1977
|
+
"description": "Uses `.editorconfig` files to configure the formatter. Settings in `biome.json` or\n`biome.jsonc` override `.editorconfig` settings. Defaults to `false`.",
|
|
1958
1978
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
1959
1979
|
}
|
|
1960
1980
|
},
|
|
@@ -1962,11 +1982,11 @@
|
|
|
1962
1982
|
},
|
|
1963
1983
|
"Glob": { "type": "string" },
|
|
1964
1984
|
"GraphqlAssistConfiguration": {
|
|
1965
|
-
"description": "Options that
|
|
1985
|
+
"description": "Options that change how GraphQL assist behaves.",
|
|
1966
1986
|
"type": "object",
|
|
1967
1987
|
"properties": {
|
|
1968
1988
|
"enabled": {
|
|
1969
|
-
"description": "
|
|
1989
|
+
"description": "Controls assist actions for GraphQL files.",
|
|
1970
1990
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }],
|
|
1971
1991
|
"default": null
|
|
1972
1992
|
}
|
|
@@ -1974,24 +1994,25 @@
|
|
|
1974
1994
|
"additionalProperties": false
|
|
1975
1995
|
},
|
|
1976
1996
|
"GraphqlConfiguration": {
|
|
1977
|
-
"description": "Options applied to GraphQL files",
|
|
1997
|
+
"description": "Options applied to GraphQL files.",
|
|
1978
1998
|
"type": "object",
|
|
1979
1999
|
"properties": {
|
|
1980
2000
|
"assist": {
|
|
1981
|
-
"description": "
|
|
2001
|
+
"description": "GraphQL assist options.",
|
|
1982
2002
|
"anyOf": [
|
|
1983
2003
|
{ "$ref": "#/$defs/GraphqlAssistConfiguration" },
|
|
1984
2004
|
{ "type": "null" }
|
|
1985
2005
|
]
|
|
1986
2006
|
},
|
|
1987
2007
|
"formatter": {
|
|
1988
|
-
"description": "GraphQL formatter options",
|
|
2008
|
+
"description": "GraphQL formatter options.",
|
|
1989
2009
|
"anyOf": [
|
|
1990
2010
|
{ "$ref": "#/$defs/GraphqlFormatterConfiguration" },
|
|
1991
2011
|
{ "type": "null" }
|
|
1992
2012
|
]
|
|
1993
2013
|
},
|
|
1994
2014
|
"linter": {
|
|
2015
|
+
"description": "GraphQL linter options.",
|
|
1995
2016
|
"anyOf": [
|
|
1996
2017
|
{ "$ref": "#/$defs/GraphqlLinterConfiguration" },
|
|
1997
2018
|
{ "type": "null" }
|
|
@@ -2001,46 +2022,46 @@
|
|
|
2001
2022
|
"additionalProperties": false
|
|
2002
2023
|
},
|
|
2003
2024
|
"GraphqlFormatterConfiguration": {
|
|
2004
|
-
"description": "Options that
|
|
2025
|
+
"description": "Options that change how the GraphQL formatter behaves.",
|
|
2005
2026
|
"type": "object",
|
|
2006
2027
|
"properties": {
|
|
2007
2028
|
"bracketSpacing": {
|
|
2008
|
-
"description": "Whether to insert spaces
|
|
2029
|
+
"description": "Whether to insert spaces inside braces in object literals. If unset, inherits the global\nbracket spacing setting.",
|
|
2009
2030
|
"anyOf": [{ "$ref": "#/$defs/BracketSpacing" }, { "type": "null" }],
|
|
2010
2031
|
"default": null
|
|
2011
2032
|
},
|
|
2012
2033
|
"enabled": {
|
|
2013
|
-
"description": "
|
|
2034
|
+
"description": "Controls the formatter for GraphQL files.",
|
|
2014
2035
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }],
|
|
2015
2036
|
"default": null
|
|
2016
2037
|
},
|
|
2017
2038
|
"indentStyle": {
|
|
2018
|
-
"description": "The indent style applied to GraphQL files.",
|
|
2039
|
+
"description": "The indent style applied to GraphQL files. If unset, inherits the global indentation style.",
|
|
2019
2040
|
"anyOf": [{ "$ref": "#/$defs/IndentStyle" }, { "type": "null" }],
|
|
2020
2041
|
"default": null
|
|
2021
2042
|
},
|
|
2022
2043
|
"indentWidth": {
|
|
2023
|
-
"description": "The
|
|
2044
|
+
"description": "The indentation width applied to GraphQL files. If unset, inherits the global indentation\nwidth.",
|
|
2024
2045
|
"anyOf": [{ "$ref": "#/$defs/IndentWidth" }, { "type": "null" }],
|
|
2025
2046
|
"default": null
|
|
2026
2047
|
},
|
|
2027
2048
|
"lineEnding": {
|
|
2028
|
-
"description": "The
|
|
2049
|
+
"description": "The line ending applied to GraphQL files. If unset, inherits the global line ending.",
|
|
2029
2050
|
"anyOf": [{ "$ref": "#/$defs/LineEnding" }, { "type": "null" }],
|
|
2030
2051
|
"default": null
|
|
2031
2052
|
},
|
|
2032
2053
|
"lineWidth": {
|
|
2033
|
-
"description": "
|
|
2054
|
+
"description": "The maximum line width for GraphQL files. If unset, inherits the global line width.",
|
|
2034
2055
|
"anyOf": [{ "$ref": "#/$defs/LineWidth" }, { "type": "null" }],
|
|
2035
2056
|
"default": null
|
|
2036
2057
|
},
|
|
2037
2058
|
"quoteStyle": {
|
|
2038
|
-
"description": "The type of quotes used in GraphQL code. Defaults to double
|
|
2059
|
+
"description": "The type of quotes used in GraphQL code. Defaults to `double`.",
|
|
2039
2060
|
"anyOf": [{ "$ref": "#/$defs/QuoteStyle" }, { "type": "null" }],
|
|
2040
2061
|
"default": null
|
|
2041
2062
|
},
|
|
2042
2063
|
"trailingNewline": {
|
|
2043
|
-
"description": "Whether to add a trailing newline at the end of the file
|
|
2064
|
+
"description": "Whether to add a trailing newline at the end of the file. If unset, inherits the global\ntrailing newline setting.",
|
|
2044
2065
|
"anyOf": [{ "$ref": "#/$defs/TrailingNewline" }, { "type": "null" }]
|
|
2045
2066
|
}
|
|
2046
2067
|
},
|
|
@@ -2051,7 +2072,7 @@
|
|
|
2051
2072
|
"type": "object",
|
|
2052
2073
|
"properties": {
|
|
2053
2074
|
"enabled": {
|
|
2054
|
-
"description": "
|
|
2075
|
+
"description": "Controls the linter for GraphQL files.",
|
|
2055
2076
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }],
|
|
2056
2077
|
"default": null
|
|
2057
2078
|
}
|
|
@@ -2059,35 +2080,36 @@
|
|
|
2059
2080
|
"additionalProperties": false
|
|
2060
2081
|
},
|
|
2061
2082
|
"GritAssistConfiguration": {
|
|
2083
|
+
"description": "Options that change how GritQL assist behaves.",
|
|
2062
2084
|
"type": "object",
|
|
2063
2085
|
"properties": {
|
|
2064
2086
|
"enabled": {
|
|
2065
|
-
"description": "
|
|
2087
|
+
"description": "Controls assist actions for GritQL files.",
|
|
2066
2088
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2067
2089
|
}
|
|
2068
2090
|
},
|
|
2069
2091
|
"additionalProperties": false
|
|
2070
2092
|
},
|
|
2071
2093
|
"GritConfiguration": {
|
|
2072
|
-
"description": "Options applied to GritQL files",
|
|
2094
|
+
"description": "Options applied to GritQL files.",
|
|
2073
2095
|
"type": "object",
|
|
2074
2096
|
"properties": {
|
|
2075
2097
|
"assist": {
|
|
2076
|
-
"description": "
|
|
2098
|
+
"description": "GritQL assist options.",
|
|
2077
2099
|
"anyOf": [
|
|
2078
2100
|
{ "$ref": "#/$defs/GritAssistConfiguration" },
|
|
2079
2101
|
{ "type": "null" }
|
|
2080
2102
|
]
|
|
2081
2103
|
},
|
|
2082
2104
|
"formatter": {
|
|
2083
|
-
"description": "
|
|
2105
|
+
"description": "GritQL formatter options.",
|
|
2084
2106
|
"anyOf": [
|
|
2085
2107
|
{ "$ref": "#/$defs/GritFormatterConfiguration" },
|
|
2086
2108
|
{ "type": "null" }
|
|
2087
2109
|
]
|
|
2088
2110
|
},
|
|
2089
2111
|
"linter": {
|
|
2090
|
-
"description": "
|
|
2112
|
+
"description": "GritQL linter options.",
|
|
2091
2113
|
"anyOf": [
|
|
2092
2114
|
{ "$ref": "#/$defs/GritLinterConfiguration" },
|
|
2093
2115
|
{ "type": "null" }
|
|
@@ -2097,40 +2119,42 @@
|
|
|
2097
2119
|
"additionalProperties": false
|
|
2098
2120
|
},
|
|
2099
2121
|
"GritFormatterConfiguration": {
|
|
2122
|
+
"description": "Options that change how the GritQL formatter behaves.",
|
|
2100
2123
|
"type": "object",
|
|
2101
2124
|
"properties": {
|
|
2102
2125
|
"enabled": {
|
|
2103
|
-
"description": "
|
|
2126
|
+
"description": "Controls the formatter for GritQL files.",
|
|
2104
2127
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2105
2128
|
},
|
|
2106
2129
|
"indentStyle": {
|
|
2107
|
-
"description": "The indent style applied to
|
|
2130
|
+
"description": "The indent style applied to GritQL files. If unset, inherits the global indentation style.",
|
|
2108
2131
|
"anyOf": [{ "$ref": "#/$defs/IndentStyle" }, { "type": "null" }]
|
|
2109
2132
|
},
|
|
2110
2133
|
"indentWidth": {
|
|
2111
|
-
"description": "The
|
|
2134
|
+
"description": "The indentation width applied to GritQL files. If unset, inherits the global indentation\nwidth.",
|
|
2112
2135
|
"anyOf": [{ "$ref": "#/$defs/IndentWidth" }, { "type": "null" }]
|
|
2113
2136
|
},
|
|
2114
2137
|
"lineEnding": {
|
|
2115
|
-
"description": "The
|
|
2138
|
+
"description": "The line ending applied to GritQL files. If unset, inherits the global line ending.",
|
|
2116
2139
|
"anyOf": [{ "$ref": "#/$defs/LineEnding" }, { "type": "null" }]
|
|
2117
2140
|
},
|
|
2118
2141
|
"lineWidth": {
|
|
2119
|
-
"description": "
|
|
2142
|
+
"description": "The maximum line width for GritQL files. If unset, inherits the global line width.",
|
|
2120
2143
|
"anyOf": [{ "$ref": "#/$defs/LineWidth" }, { "type": "null" }]
|
|
2121
2144
|
},
|
|
2122
2145
|
"trailingNewline": {
|
|
2123
|
-
"description": "Whether to add a trailing newline at the end of the file
|
|
2146
|
+
"description": "Whether to add a trailing newline at the end of the file. If unset, inherits the global\ntrailing newline setting.",
|
|
2124
2147
|
"anyOf": [{ "$ref": "#/$defs/TrailingNewline" }, { "type": "null" }]
|
|
2125
2148
|
}
|
|
2126
2149
|
},
|
|
2127
2150
|
"additionalProperties": false
|
|
2128
2151
|
},
|
|
2129
2152
|
"GritLinterConfiguration": {
|
|
2153
|
+
"description": "Options that change how the GritQL linter behaves.",
|
|
2130
2154
|
"type": "object",
|
|
2131
2155
|
"properties": {
|
|
2132
2156
|
"enabled": {
|
|
2133
|
-
"description": "
|
|
2157
|
+
"description": "Controls the linter for GritQL files.",
|
|
2134
2158
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2135
2159
|
}
|
|
2136
2160
|
},
|
|
@@ -2204,46 +2228,47 @@
|
|
|
2204
2228
|
"additionalProperties": false
|
|
2205
2229
|
},
|
|
2206
2230
|
"HtmlAssistConfiguration": {
|
|
2207
|
-
"description": "Options that
|
|
2231
|
+
"description": "Options that change how HTML assist behaves.",
|
|
2208
2232
|
"type": "object",
|
|
2209
2233
|
"properties": {
|
|
2210
2234
|
"enabled": {
|
|
2211
|
-
"description": "
|
|
2235
|
+
"description": "Controls assist actions for HTML and languages that extend it.",
|
|
2212
2236
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2213
2237
|
}
|
|
2214
2238
|
},
|
|
2215
2239
|
"additionalProperties": false
|
|
2216
2240
|
},
|
|
2217
2241
|
"HtmlConfiguration": {
|
|
2218
|
-
"description": "Options applied to HTML files",
|
|
2242
|
+
"description": "Options applied to HTML files.",
|
|
2219
2243
|
"type": "object",
|
|
2220
2244
|
"properties": {
|
|
2221
2245
|
"assist": {
|
|
2246
|
+
"description": "HTML assist options.",
|
|
2222
2247
|
"anyOf": [
|
|
2223
2248
|
{ "$ref": "#/$defs/HtmlAssistConfiguration" },
|
|
2224
2249
|
{ "type": "null" }
|
|
2225
2250
|
]
|
|
2226
2251
|
},
|
|
2227
2252
|
"experimentalFullSupportEnabled": {
|
|
2228
|
-
"description": "Enables full support for HTML, Vue, Svelte and Astro files.",
|
|
2253
|
+
"description": "Enables full support for HTML, Vue, Svelte, and Astro files.",
|
|
2229
2254
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2230
2255
|
},
|
|
2231
2256
|
"formatter": {
|
|
2232
|
-
"description": "HTML formatter options",
|
|
2257
|
+
"description": "HTML formatter options.",
|
|
2233
2258
|
"anyOf": [
|
|
2234
2259
|
{ "$ref": "#/$defs/HtmlFormatterConfiguration" },
|
|
2235
2260
|
{ "type": "null" }
|
|
2236
2261
|
]
|
|
2237
2262
|
},
|
|
2238
2263
|
"linter": {
|
|
2239
|
-
"description": "HTML linter options",
|
|
2264
|
+
"description": "HTML linter options.",
|
|
2240
2265
|
"anyOf": [
|
|
2241
2266
|
{ "$ref": "#/$defs/HtmlLinterConfiguration" },
|
|
2242
2267
|
{ "type": "null" }
|
|
2243
2268
|
]
|
|
2244
2269
|
},
|
|
2245
2270
|
"parser": {
|
|
2246
|
-
"description": "HTML parsing options",
|
|
2271
|
+
"description": "HTML parsing options.",
|
|
2247
2272
|
"anyOf": [
|
|
2248
2273
|
{ "$ref": "#/$defs/HtmlParserConfiguration" },
|
|
2249
2274
|
{ "type": "null" }
|
|
@@ -2253,57 +2278,57 @@
|
|
|
2253
2278
|
"additionalProperties": false
|
|
2254
2279
|
},
|
|
2255
2280
|
"HtmlFormatterConfiguration": {
|
|
2256
|
-
"description": "Options that
|
|
2281
|
+
"description": "Options that change how the HTML formatter behaves.",
|
|
2257
2282
|
"type": "object",
|
|
2258
2283
|
"properties": {
|
|
2259
2284
|
"attributePosition": {
|
|
2260
|
-
"description": "The attribute position style in HTML elements.
|
|
2285
|
+
"description": "The attribute position style in HTML elements. If unset, inherits the global attribute\nposition setting.",
|
|
2261
2286
|
"anyOf": [{ "$ref": "#/$defs/AttributePosition" }, { "type": "null" }]
|
|
2262
2287
|
},
|
|
2263
2288
|
"bracketSameLine": {
|
|
2264
|
-
"description": "Whether to
|
|
2289
|
+
"description": "Whether to place the closing bracket of a multiline HTML tag at the end of the last line\ninstead of on its own line. If unset, inherits the global `bracketSameLine` setting.",
|
|
2265
2290
|
"anyOf": [{ "$ref": "#/$defs/BracketSameLine" }, { "type": "null" }]
|
|
2266
2291
|
},
|
|
2267
2292
|
"enabled": {
|
|
2268
|
-
"description": "
|
|
2293
|
+
"description": "Controls the formatter for HTML and languages that extend it.",
|
|
2269
2294
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2270
2295
|
},
|
|
2271
2296
|
"indentScriptAndStyle": {
|
|
2272
|
-
"description": "Whether to indent
|
|
2297
|
+
"description": "Whether to indent `<script>` and `<style>` tags in HTML and languages that extend it.\nDefaults to `false`.",
|
|
2273
2298
|
"anyOf": [
|
|
2274
2299
|
{ "$ref": "#/$defs/IndentScriptAndStyle" },
|
|
2275
2300
|
{ "type": "null" }
|
|
2276
2301
|
]
|
|
2277
2302
|
},
|
|
2278
2303
|
"indentStyle": {
|
|
2279
|
-
"description": "The indent style applied to HTML
|
|
2304
|
+
"description": "The indent style applied to HTML and languages that extend it. If unset, inherits the global\nindentation style.",
|
|
2280
2305
|
"anyOf": [{ "$ref": "#/$defs/IndentStyle" }, { "type": "null" }]
|
|
2281
2306
|
},
|
|
2282
2307
|
"indentWidth": {
|
|
2283
|
-
"description": "The
|
|
2308
|
+
"description": "The indentation width applied to HTML and languages that extend it. If unset, inherits the\nglobal indentation width.",
|
|
2284
2309
|
"anyOf": [{ "$ref": "#/$defs/IndentWidth" }, { "type": "null" }]
|
|
2285
2310
|
},
|
|
2286
2311
|
"lineEnding": {
|
|
2287
|
-
"description": "The
|
|
2312
|
+
"description": "The line ending applied to HTML and languages that extend it. If unset, inherits the global\nline ending.",
|
|
2288
2313
|
"anyOf": [{ "$ref": "#/$defs/LineEnding" }, { "type": "null" }]
|
|
2289
2314
|
},
|
|
2290
2315
|
"lineWidth": {
|
|
2291
|
-
"description": "
|
|
2316
|
+
"description": "The maximum line width for HTML and languages that extend it. If unset, inherits the global\nline width.",
|
|
2292
2317
|
"anyOf": [{ "$ref": "#/$defs/LineWidth" }, { "type": "null" }]
|
|
2293
2318
|
},
|
|
2294
2319
|
"selfCloseVoidElements": {
|
|
2295
|
-
"description": "
|
|
2320
|
+
"description": "Controls whether void elements are self-closed. Defaults to `never`.",
|
|
2296
2321
|
"anyOf": [
|
|
2297
2322
|
{ "$ref": "#/$defs/SelfCloseVoidElements" },
|
|
2298
2323
|
{ "type": "null" }
|
|
2299
2324
|
]
|
|
2300
2325
|
},
|
|
2301
2326
|
"trailingNewline": {
|
|
2302
|
-
"description": "Whether to add a trailing newline at the end of the file
|
|
2327
|
+
"description": "Whether to add a trailing newline at the end of the file. Unlike other language-specific\ntrailing newline settings, this option defaults to `true` instead of inheriting the global\nsetting.",
|
|
2303
2328
|
"anyOf": [{ "$ref": "#/$defs/TrailingNewline" }, { "type": "null" }]
|
|
2304
2329
|
},
|
|
2305
2330
|
"whitespaceSensitivity": {
|
|
2306
|
-
"description": "Whether to account for whitespace sensitivity when formatting HTML
|
|
2331
|
+
"description": "Whether to account for whitespace sensitivity when formatting HTML and languages that\nextend it. Defaults to `css`.",
|
|
2307
2332
|
"anyOf": [
|
|
2308
2333
|
{ "$ref": "#/$defs/WhitespaceSensitivity" },
|
|
2309
2334
|
{ "type": "null" }
|
|
@@ -2313,26 +2338,26 @@
|
|
|
2313
2338
|
"additionalProperties": false
|
|
2314
2339
|
},
|
|
2315
2340
|
"HtmlLinterConfiguration": {
|
|
2316
|
-
"description": "Options that
|
|
2341
|
+
"description": "Options that change how the HTML linter behaves.",
|
|
2317
2342
|
"type": "object",
|
|
2318
2343
|
"properties": {
|
|
2319
2344
|
"enabled": {
|
|
2320
|
-
"description": "
|
|
2345
|
+
"description": "Controls the linter for HTML and languages that extend it.",
|
|
2321
2346
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2322
2347
|
}
|
|
2323
2348
|
},
|
|
2324
2349
|
"additionalProperties": false
|
|
2325
2350
|
},
|
|
2326
2351
|
"HtmlParserConfiguration": {
|
|
2327
|
-
"description": "Options that
|
|
2352
|
+
"description": "Options that change how the HTML parser behaves.",
|
|
2328
2353
|
"type": "object",
|
|
2329
2354
|
"properties": {
|
|
2330
2355
|
"interpolation": {
|
|
2331
|
-
"description": "Enables
|
|
2356
|
+
"description": "Enables parsing double text expressions such as `{{ expression }}` inside `.html` files.",
|
|
2332
2357
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2333
2358
|
},
|
|
2334
2359
|
"vue": {
|
|
2335
|
-
"description": "Enables parsing
|
|
2360
|
+
"description": "Enables parsing Vue syntax (`v-if`, `v-bind`, etc.) in `.html` files. Enabling this option\nalso enables `interpolation` implicitly.\n\nBiome will already automatically enable Vue parsing in `.vue` files, so you probably don't need\nto enable this option. This only affects `.html` files, and does not change how `.vue`, `.svelte`,\nor `.astro` files are parsed.",
|
|
2336
2361
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2337
2362
|
}
|
|
2338
2363
|
},
|
|
@@ -2432,7 +2457,7 @@
|
|
|
2432
2457
|
"type": "object",
|
|
2433
2458
|
"properties": {
|
|
2434
2459
|
"enabled": {
|
|
2435
|
-
"description": "
|
|
2460
|
+
"description": "Controls assist actions for JavaScript and languages that extend it.",
|
|
2436
2461
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2437
2462
|
}
|
|
2438
2463
|
},
|
|
@@ -2499,75 +2524,75 @@
|
|
|
2499
2524
|
"type": "object",
|
|
2500
2525
|
"properties": {
|
|
2501
2526
|
"arrowParentheses": {
|
|
2502
|
-
"description": "Whether to add
|
|
2527
|
+
"description": "Whether to add parentheses around arrow function parameters. Defaults to `always`.",
|
|
2503
2528
|
"anyOf": [{ "$ref": "#/$defs/ArrowParentheses" }, { "type": "null" }]
|
|
2504
2529
|
},
|
|
2505
2530
|
"attributePosition": {
|
|
2506
|
-
"description": "The attribute position style in JSX elements.
|
|
2531
|
+
"description": "The attribute position style in JSX elements. If unset, inherits the global attribute\nposition setting.",
|
|
2507
2532
|
"anyOf": [{ "$ref": "#/$defs/AttributePosition" }, { "type": "null" }]
|
|
2508
2533
|
},
|
|
2509
2534
|
"bracketSameLine": {
|
|
2510
|
-
"description": "Whether to hug the closing bracket of multiline HTML/JSX tags to the end of the last line
|
|
2535
|
+
"description": "Whether to hug the closing bracket of multiline HTML/JSX tags to the end of the last line,\nrather than being alone on the following line. If unset, inherits the global bracket\nplacement setting.",
|
|
2511
2536
|
"anyOf": [{ "$ref": "#/$defs/BracketSameLine" }, { "type": "null" }]
|
|
2512
2537
|
},
|
|
2513
2538
|
"bracketSpacing": {
|
|
2514
|
-
"description": "Whether to insert spaces
|
|
2539
|
+
"description": "Whether to insert spaces inside braces in object literals. If unset, inherits the global\nbracket spacing setting.",
|
|
2515
2540
|
"anyOf": [{ "$ref": "#/$defs/BracketSpacing" }, { "type": "null" }]
|
|
2516
2541
|
},
|
|
2517
2542
|
"delimiterSpacing": {
|
|
2518
|
-
"description": "
|
|
2543
|
+
"description": "Controls spaces immediately inside supported JavaScript and TypeScript delimiters when their\ncontent fits on one line. It doesn't add spaces before opening delimiters or inside empty\ndelimiters.\n\nIt affects parentheses, square brackets, template interpolations, TypeScript angle brackets,\nJSX expression braces, and logical NOT. In operator chains, only the final operator receives\na following space.\n\nIf unset, inherits the global delimiter spacing setting.",
|
|
2519
2544
|
"anyOf": [{ "$ref": "#/$defs/DelimiterSpacing" }, { "type": "null" }]
|
|
2520
2545
|
},
|
|
2521
2546
|
"enabled": {
|
|
2522
|
-
"description": "
|
|
2547
|
+
"description": "Controls the formatter for JavaScript and languages that extend it.",
|
|
2523
2548
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2524
2549
|
},
|
|
2525
2550
|
"expand": {
|
|
2526
|
-
"description": "
|
|
2551
|
+
"description": "Uses the same `auto`, `always`, and `never` behavior as the global expansion setting.\n\nIf unset, inherits the global expansion setting.",
|
|
2527
2552
|
"anyOf": [{ "$ref": "#/$defs/Expand" }, { "type": "null" }]
|
|
2528
2553
|
},
|
|
2529
2554
|
"indentStyle": {
|
|
2530
|
-
"description": "The indent style applied to JavaScript
|
|
2555
|
+
"description": "The indent style applied to JavaScript and languages that extend it. If unset, inherits the\nglobal indentation style.",
|
|
2531
2556
|
"anyOf": [{ "$ref": "#/$defs/IndentStyle" }, { "type": "null" }]
|
|
2532
2557
|
},
|
|
2533
2558
|
"indentWidth": {
|
|
2534
|
-
"description": "The
|
|
2559
|
+
"description": "The indentation width applied to JavaScript and languages that extend it. If unset,\ninherits the global indentation width.",
|
|
2535
2560
|
"anyOf": [{ "$ref": "#/$defs/IndentWidth" }, { "type": "null" }]
|
|
2536
2561
|
},
|
|
2537
2562
|
"jsxQuoteStyle": {
|
|
2538
|
-
"description": "The type of quotes used in JSX. Defaults to double
|
|
2563
|
+
"description": "The type of quotes used in JSX. Defaults to `double`.",
|
|
2539
2564
|
"anyOf": [{ "$ref": "#/$defs/QuoteStyle" }, { "type": "null" }]
|
|
2540
2565
|
},
|
|
2541
2566
|
"lineEnding": {
|
|
2542
|
-
"description": "The
|
|
2567
|
+
"description": "The line ending applied to JavaScript and languages that extend it. If unset, inherits the\nglobal line ending.",
|
|
2543
2568
|
"anyOf": [{ "$ref": "#/$defs/LineEnding" }, { "type": "null" }]
|
|
2544
2569
|
},
|
|
2545
2570
|
"lineWidth": {
|
|
2546
|
-
"description": "
|
|
2571
|
+
"description": "The maximum line width applied to JavaScript and languages that extend it. If unset,\ninherits the global line width.",
|
|
2547
2572
|
"anyOf": [{ "$ref": "#/$defs/LineWidth" }, { "type": "null" }]
|
|
2548
2573
|
},
|
|
2549
2574
|
"operatorLinebreak": {
|
|
2550
|
-
"description": "When breaking binary expressions into multiple lines, whether to break them before or after
|
|
2575
|
+
"description": "When breaking binary expressions into multiple lines, whether to break them before or after\nthe binary operator. Defaults to `after`.",
|
|
2551
2576
|
"anyOf": [{ "$ref": "#/$defs/OperatorLinebreak" }, { "type": "null" }]
|
|
2552
2577
|
},
|
|
2553
2578
|
"quoteProperties": {
|
|
2554
|
-
"description": "
|
|
2579
|
+
"description": "Controls when object properties are quoted. Defaults to `asNeeded` in configuration\n(`as-needed` on the CLI).",
|
|
2555
2580
|
"anyOf": [{ "$ref": "#/$defs/QuoteProperties" }, { "type": "null" }]
|
|
2556
2581
|
},
|
|
2557
2582
|
"quoteStyle": {
|
|
2558
|
-
"description": "The type of quotes used in JavaScript code. Defaults to double
|
|
2583
|
+
"description": "The type of quotes used in JavaScript code. Defaults to `double`.",
|
|
2559
2584
|
"anyOf": [{ "$ref": "#/$defs/QuoteStyle" }, { "type": "null" }]
|
|
2560
2585
|
},
|
|
2561
2586
|
"semicolons": {
|
|
2562
|
-
"description": "
|
|
2587
|
+
"description": "Prints semicolons after every statement or only where needed to avoid automatic semicolon\ninsertion hazards. Defaults to `always`.",
|
|
2563
2588
|
"anyOf": [{ "$ref": "#/$defs/Semicolons" }, { "type": "null" }]
|
|
2564
2589
|
},
|
|
2565
2590
|
"trailingCommas": {
|
|
2566
|
-
"description": "
|
|
2591
|
+
"description": "Prints trailing commas wherever possible in multiline comma-separated structures. Defaults\nto `all`.",
|
|
2567
2592
|
"anyOf": [{ "$ref": "#/$defs/JsTrailingCommas" }, { "type": "null" }]
|
|
2568
2593
|
},
|
|
2569
2594
|
"trailingNewline": {
|
|
2570
|
-
"description": "Whether to add a trailing newline at the end of the file
|
|
2595
|
+
"description": "Whether to add a trailing newline at the end of the file. If unset, inherits the global\ntrailing newline setting.",
|
|
2571
2596
|
"anyOf": [{ "$ref": "#/$defs/TrailingNewline" }, { "type": "null" }]
|
|
2572
2597
|
}
|
|
2573
2598
|
},
|
|
@@ -2578,14 +2603,14 @@
|
|
|
2578
2603
|
"type": "object",
|
|
2579
2604
|
"properties": {
|
|
2580
2605
|
"enabled": {
|
|
2581
|
-
"description": "
|
|
2606
|
+
"description": "Controls the linter for JavaScript and languages that extend it.",
|
|
2582
2607
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2583
2608
|
}
|
|
2584
2609
|
},
|
|
2585
2610
|
"additionalProperties": false
|
|
2586
2611
|
},
|
|
2587
2612
|
"JsParserConfiguration": {
|
|
2588
|
-
"description": "Options that
|
|
2613
|
+
"description": "Options that change how the JavaScript parser behaves.",
|
|
2589
2614
|
"type": "object",
|
|
2590
2615
|
"properties": {
|
|
2591
2616
|
"gritMetavariables": {
|
|
@@ -2593,7 +2618,7 @@
|
|
|
2593
2618
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2594
2619
|
},
|
|
2595
2620
|
"jsxEverywhere": {
|
|
2596
|
-
"description": "When enabled, files
|
|
2621
|
+
"description": "When enabled, files such as `.js`, `.mjs`, and `.cjs` may contain JSX syntax. Defaults to\n`true`.",
|
|
2597
2622
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2598
2623
|
},
|
|
2599
2624
|
"unsafeParameterDecoratorsEnabled": {
|
|
@@ -2608,7 +2633,7 @@
|
|
|
2608
2633
|
"type": "object",
|
|
2609
2634
|
"properties": {
|
|
2610
2635
|
"experimentalPnpmCatalogs": {
|
|
2611
|
-
"description": "Enables pnpm workspace catalog resolution for JavaScript package manifests.\n\nOpt-in:\n- Set `javascript.resolver.experimentalPnpmCatalogs` to `true`.\n\nScope:\n- Resolves `catalog:` and `catalog:<name>` dependency versions from\n `package.json`.\n- Applies to `dependencies`, `devDependencies`, and `peerDependencies`.\n\nFail-safe behavior:\n- If `pnpm-workspace.yaml` is missing, unreadable, or cannot be parsed,\n Biome silently falls back to the default behavior (as if this option\n were disabled).\n- Unknown keys and unsupported value shapes in `pnpm-workspace.yaml` are\n ignored.\n\nLimitations:\n- Only `pnpm-workspace.yaml` is read.\n- Biome only reads top-level `catalog` / `catalogs` mappings and scalar\n string entries.\n\
|
|
2636
|
+
"description": "Enables pnpm workspace catalog resolution for JavaScript package manifests.\n\nOpt-in:\n- Set `javascript.resolver.experimentalPnpmCatalogs` to `true`.\n\nScope:\n- Resolves `catalog:` and `catalog:<name>` dependency versions from\n `package.json`.\n- Applies to `dependencies`, `devDependencies`, and `peerDependencies`.\n\nFail-safe behavior:\n- If `pnpm-workspace.yaml` is missing, unreadable, or cannot be parsed,\n Biome silently falls back to the default behavior (as if this option\n were disabled).\n- Unknown keys and unsupported value shapes in `pnpm-workspace.yaml` are\n ignored.\n\nLimitations:\n- Only `pnpm-workspace.yaml` is read.\n- Biome only reads top-level `catalog` / `catalogs` mappings and scalar\n string entries.\n\nDefaults to `false`.",
|
|
2612
2637
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2613
2638
|
}
|
|
2614
2639
|
},
|
|
@@ -2624,7 +2649,7 @@
|
|
|
2624
2649
|
"type": "object",
|
|
2625
2650
|
"properties": {
|
|
2626
2651
|
"enabled": {
|
|
2627
|
-
"description": "
|
|
2652
|
+
"description": "Controls assist actions for JSON and languages that extend it.",
|
|
2628
2653
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2629
2654
|
}
|
|
2630
2655
|
},
|
|
@@ -2669,46 +2694,46 @@
|
|
|
2669
2694
|
"type": "object",
|
|
2670
2695
|
"properties": {
|
|
2671
2696
|
"bracketSpacing": {
|
|
2672
|
-
"description": "Whether to insert spaces
|
|
2697
|
+
"description": "Whether to insert spaces inside braces in object literals. If unset, inherits the global\nbracket spacing setting.",
|
|
2673
2698
|
"anyOf": [{ "$ref": "#/$defs/BracketSpacing" }, { "type": "null" }]
|
|
2674
2699
|
},
|
|
2675
2700
|
"delimiterSpacing": {
|
|
2676
|
-
"description": "
|
|
2701
|
+
"description": "Controls spaces inside JSON square brackets when their content fits on one line. When\nenabled, `[1, 2, 3]` becomes `[ 1, 2, 3 ]`. Empty brackets are unchanged.\n\nIf unset, inherits the global delimiter spacing setting.",
|
|
2677
2702
|
"anyOf": [{ "$ref": "#/$defs/DelimiterSpacing" }, { "type": "null" }]
|
|
2678
2703
|
},
|
|
2679
2704
|
"enabled": {
|
|
2680
|
-
"description": "
|
|
2705
|
+
"description": "Controls the formatter for JSON and languages that extend it.",
|
|
2681
2706
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2682
2707
|
},
|
|
2683
2708
|
"expand": {
|
|
2684
|
-
"description": "
|
|
2709
|
+
"description": "Uses the same `auto`, `always`, and `never` behavior as the global expansion setting.\n\nIf unset, inherits the global expansion setting.\n\nWhen formatting `package.json`, Biome uses `always` unless configured otherwise.",
|
|
2685
2710
|
"anyOf": [{ "$ref": "#/$defs/Expand" }, { "type": "null" }]
|
|
2686
2711
|
},
|
|
2687
2712
|
"indentStyle": {
|
|
2688
|
-
"description": "The indent style applied to JSON
|
|
2713
|
+
"description": "The indent style applied to JSON and languages that extend it. If unset, inherits the global\nindentation style.",
|
|
2689
2714
|
"anyOf": [{ "$ref": "#/$defs/IndentStyle" }, { "type": "null" }]
|
|
2690
2715
|
},
|
|
2691
2716
|
"indentWidth": {
|
|
2692
|
-
"description": "The
|
|
2717
|
+
"description": "The indentation width applied to JSON and languages that extend it. If unset, inherits the\nglobal indentation width.",
|
|
2693
2718
|
"anyOf": [{ "$ref": "#/$defs/IndentWidth" }, { "type": "null" }]
|
|
2694
2719
|
},
|
|
2695
2720
|
"lineEnding": {
|
|
2696
|
-
"description": "The
|
|
2721
|
+
"description": "The line ending applied to JSON and languages that extend it. If unset, inherits the global\nline ending.",
|
|
2697
2722
|
"anyOf": [{ "$ref": "#/$defs/LineEnding" }, { "type": "null" }]
|
|
2698
2723
|
},
|
|
2699
2724
|
"lineWidth": {
|
|
2700
|
-
"description": "
|
|
2725
|
+
"description": "The maximum line width applied to JSON and languages that extend it. If unset, inherits the\nglobal line width.",
|
|
2701
2726
|
"anyOf": [{ "$ref": "#/$defs/LineWidth" }, { "type": "null" }]
|
|
2702
2727
|
},
|
|
2703
2728
|
"trailingCommas": {
|
|
2704
|
-
"description": "
|
|
2729
|
+
"description": "Prints trailing commas wherever possible in multiline comma-separated structures. Defaults\nto `none`.",
|
|
2705
2730
|
"anyOf": [
|
|
2706
2731
|
{ "$ref": "#/$defs/JsonTrailingCommas" },
|
|
2707
2732
|
{ "type": "null" }
|
|
2708
2733
|
]
|
|
2709
2734
|
},
|
|
2710
2735
|
"trailingNewline": {
|
|
2711
|
-
"description": "Whether to add a trailing newline at the end of the file
|
|
2736
|
+
"description": "Whether to add a trailing newline at the end of the file. If unset, inherits the global\ntrailing newline setting.",
|
|
2712
2737
|
"anyOf": [{ "$ref": "#/$defs/TrailingNewline" }, { "type": "null" }]
|
|
2713
2738
|
}
|
|
2714
2739
|
},
|
|
@@ -2719,22 +2744,22 @@
|
|
|
2719
2744
|
"type": "object",
|
|
2720
2745
|
"properties": {
|
|
2721
2746
|
"enabled": {
|
|
2722
|
-
"description": "
|
|
2747
|
+
"description": "Controls the linter for JSON and languages that extend it.",
|
|
2723
2748
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2724
2749
|
}
|
|
2725
2750
|
},
|
|
2726
2751
|
"additionalProperties": false
|
|
2727
2752
|
},
|
|
2728
2753
|
"JsonParserConfiguration": {
|
|
2729
|
-
"description": "Options that
|
|
2754
|
+
"description": "Options that change how the JSON parser behaves.",
|
|
2730
2755
|
"type": "object",
|
|
2731
2756
|
"properties": {
|
|
2732
2757
|
"allowComments": {
|
|
2733
|
-
"description": "
|
|
2758
|
+
"description": "Allows parsing comments in `.json` files.",
|
|
2734
2759
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2735
2760
|
},
|
|
2736
2761
|
"allowTrailingCommas": {
|
|
2737
|
-
"description": "
|
|
2762
|
+
"description": "Allows parsing trailing commas in `.json` files.",
|
|
2738
2763
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
2739
2764
|
}
|
|
2740
2765
|
},
|
|
@@ -4106,6 +4131,24 @@
|
|
|
4106
4131
|
"type": "object",
|
|
4107
4132
|
"additionalProperties": false
|
|
4108
4133
|
},
|
|
4134
|
+
"NoExtendNativeConfiguration": {
|
|
4135
|
+
"oneOf": [
|
|
4136
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
4137
|
+
{ "$ref": "#/$defs/RuleWithNoExtendNativeOptions" }
|
|
4138
|
+
]
|
|
4139
|
+
},
|
|
4140
|
+
"NoExtendNativeOptions": {
|
|
4141
|
+
"description": "Options for the `noExtendNative` rule.",
|
|
4142
|
+
"type": "object",
|
|
4143
|
+
"properties": {
|
|
4144
|
+
"ignore": {
|
|
4145
|
+
"description": "Built-in names to ignore. Extending the prototype of an ignored\nname will not trigger this rule.",
|
|
4146
|
+
"type": ["array", "null"],
|
|
4147
|
+
"items": { "type": "string" }
|
|
4148
|
+
}
|
|
4149
|
+
},
|
|
4150
|
+
"additionalProperties": false
|
|
4151
|
+
},
|
|
4109
4152
|
"NoExtraBooleanCastConfiguration": {
|
|
4110
4153
|
"oneOf": [
|
|
4111
4154
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -4499,6 +4542,16 @@
|
|
|
4499
4542
|
"type": "object",
|
|
4500
4543
|
"additionalProperties": false
|
|
4501
4544
|
},
|
|
4545
|
+
"NoInvalidPropertyInitValueConfiguration": {
|
|
4546
|
+
"oneOf": [
|
|
4547
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
4548
|
+
{ "$ref": "#/$defs/RuleWithNoInvalidPropertyInitValueOptions" }
|
|
4549
|
+
]
|
|
4550
|
+
},
|
|
4551
|
+
"NoInvalidPropertyInitValueOptions": {
|
|
4552
|
+
"type": "object",
|
|
4553
|
+
"additionalProperties": false
|
|
4554
|
+
},
|
|
4502
4555
|
"NoInvalidUseBeforeDeclarationConfiguration": {
|
|
4503
4556
|
"oneOf": [
|
|
4504
4557
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -4843,6 +4896,16 @@
|
|
|
4843
4896
|
"type": "object",
|
|
4844
4897
|
"additionalProperties": false
|
|
4845
4898
|
},
|
|
4899
|
+
"NoNonScalableViewportConfiguration": {
|
|
4900
|
+
"oneOf": [
|
|
4901
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
4902
|
+
{ "$ref": "#/$defs/RuleWithNoNonScalableViewportOptions" }
|
|
4903
|
+
]
|
|
4904
|
+
},
|
|
4905
|
+
"NoNonScalableViewportOptions": {
|
|
4906
|
+
"type": "object",
|
|
4907
|
+
"additionalProperties": false
|
|
4908
|
+
},
|
|
4846
4909
|
"NoNoninteractiveElementInteractionsConfiguration": {
|
|
4847
4910
|
"oneOf": [
|
|
4848
4911
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -5555,6 +5618,16 @@
|
|
|
5555
5618
|
"type": "object",
|
|
5556
5619
|
"additionalProperties": false
|
|
5557
5620
|
},
|
|
5621
|
+
"NoSvelteLegacyConstConfiguration": {
|
|
5622
|
+
"oneOf": [
|
|
5623
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
5624
|
+
{ "$ref": "#/$defs/RuleWithNoSvelteLegacyConstOptions" }
|
|
5625
|
+
]
|
|
5626
|
+
},
|
|
5627
|
+
"NoSvelteLegacyConstOptions": {
|
|
5628
|
+
"type": "object",
|
|
5629
|
+
"additionalProperties": false
|
|
5630
|
+
},
|
|
5558
5631
|
"NoSvelteUnnecessaryStateWrapConfiguration": {
|
|
5559
5632
|
"oneOf": [
|
|
5560
5633
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -5603,6 +5676,29 @@
|
|
|
5603
5676
|
]
|
|
5604
5677
|
},
|
|
5605
5678
|
"NoSyncScriptsOptions": { "type": "object", "additionalProperties": false },
|
|
5679
|
+
"NoTailwindArbitraryValueConfiguration": {
|
|
5680
|
+
"oneOf": [
|
|
5681
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
5682
|
+
{ "$ref": "#/$defs/RuleWithNoTailwindArbitraryValueOptions" }
|
|
5683
|
+
]
|
|
5684
|
+
},
|
|
5685
|
+
"NoTailwindArbitraryValueOptions": {
|
|
5686
|
+
"description": "Options for the `noTailwindArbitraryValue` rule.\n\nControls which attributes and utility functions are checked for arbitrary values.",
|
|
5687
|
+
"type": "object",
|
|
5688
|
+
"properties": {
|
|
5689
|
+
"attributes": {
|
|
5690
|
+
"description": "Additional attributes that will be checked.",
|
|
5691
|
+
"type": ["array", "null"],
|
|
5692
|
+
"items": { "type": "string" }
|
|
5693
|
+
},
|
|
5694
|
+
"functions": {
|
|
5695
|
+
"description": "Names of the functions or tagged templates that will be checked.",
|
|
5696
|
+
"type": ["array", "null"],
|
|
5697
|
+
"items": { "type": "string" }
|
|
5698
|
+
}
|
|
5699
|
+
},
|
|
5700
|
+
"additionalProperties": false
|
|
5701
|
+
},
|
|
5606
5702
|
"NoTemplateCurlyInStringConfiguration": {
|
|
5607
5703
|
"oneOf": [
|
|
5608
5704
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -6671,6 +6767,13 @@
|
|
|
6671
6767
|
{ "type": "null" }
|
|
6672
6768
|
]
|
|
6673
6769
|
},
|
|
6770
|
+
"noExtendNative": {
|
|
6771
|
+
"description": "Disallow extending the prototype of built-in objects.\nSee https://biomejs.dev/linter/rules/no-extend-native",
|
|
6772
|
+
"anyOf": [
|
|
6773
|
+
{ "$ref": "#/$defs/NoExtendNativeConfiguration" },
|
|
6774
|
+
{ "type": "null" }
|
|
6775
|
+
]
|
|
6776
|
+
},
|
|
6674
6777
|
"noFloatingPromises": {
|
|
6675
6778
|
"description": "Require Promise-like statements to be handled appropriately.\nSee https://biomejs.dev/linter/rules/no-floating-promises",
|
|
6676
6779
|
"anyOf": [
|
|
@@ -6699,6 +6802,13 @@
|
|
|
6699
6802
|
{ "type": "null" }
|
|
6700
6803
|
]
|
|
6701
6804
|
},
|
|
6805
|
+
"noInvalidPropertyInitValue": {
|
|
6806
|
+
"description": "Checks that the initial-value of an @property rule follows the value format declared by its syntax.\nSee https://biomejs.dev/linter/rules/no-invalid-property-init-value",
|
|
6807
|
+
"anyOf": [
|
|
6808
|
+
{ "$ref": "#/$defs/NoInvalidPropertyInitValueConfiguration" },
|
|
6809
|
+
{ "type": "null" }
|
|
6810
|
+
]
|
|
6811
|
+
},
|
|
6702
6812
|
"noJsRestrictedProperties": {
|
|
6703
6813
|
"description": "Disallow specific object properties.\nSee https://biomejs.dev/linter/rules/no-js-restricted-properties",
|
|
6704
6814
|
"anyOf": [
|
|
@@ -6748,6 +6858,13 @@
|
|
|
6748
6858
|
{ "type": "null" }
|
|
6749
6859
|
]
|
|
6750
6860
|
},
|
|
6861
|
+
"noNonScalableViewport": {
|
|
6862
|
+
"description": "Disallow disabling zoom with user-scalable=no in the \\<meta name=\"viewport\"> element.\nSee https://biomejs.dev/linter/rules/no-non-scalable-viewport",
|
|
6863
|
+
"anyOf": [
|
|
6864
|
+
{ "$ref": "#/$defs/NoNonScalableViewportConfiguration" },
|
|
6865
|
+
{ "type": "null" }
|
|
6866
|
+
]
|
|
6867
|
+
},
|
|
6751
6868
|
"noPlaywrightElementHandle": {
|
|
6752
6869
|
"description": "Disallow usage of element handles (page.$() and page.$$()).\nSee https://biomejs.dev/linter/rules/no-playwright-element-handle",
|
|
6753
6870
|
"anyOf": [
|
|
@@ -6853,6 +6970,13 @@
|
|
|
6853
6970
|
{ "type": "null" }
|
|
6854
6971
|
]
|
|
6855
6972
|
},
|
|
6973
|
+
"noSvelteLegacyConst": {
|
|
6974
|
+
"description": "Disallow legacy Svelte {@const} tags.\nSee https://biomejs.dev/linter/rules/no-svelte-legacy-const",
|
|
6975
|
+
"anyOf": [
|
|
6976
|
+
{ "$ref": "#/$defs/NoSvelteLegacyConstConfiguration" },
|
|
6977
|
+
{ "type": "null" }
|
|
6978
|
+
]
|
|
6979
|
+
},
|
|
6856
6980
|
"noSvelteUnnecessaryStateWrap": {
|
|
6857
6981
|
"description": "Disallow unnecessary $state wrapping of reactive classes.\nSee https://biomejs.dev/linter/rules/no-svelte-unnecessary-state-wrap",
|
|
6858
6982
|
"anyOf": [
|
|
@@ -6860,6 +6984,13 @@
|
|
|
6860
6984
|
{ "type": "null" }
|
|
6861
6985
|
]
|
|
6862
6986
|
},
|
|
6987
|
+
"noTailwindArbitraryValue": {
|
|
6988
|
+
"description": "Disallow arbitrary values in Tailwind CSS utility classes.\nSee https://biomejs.dev/linter/rules/no-tailwind-arbitrary-value",
|
|
6989
|
+
"anyOf": [
|
|
6990
|
+
{ "$ref": "#/$defs/NoTailwindArbitraryValueConfiguration" },
|
|
6991
|
+
{ "type": "null" }
|
|
6992
|
+
]
|
|
6993
|
+
},
|
|
6863
6994
|
"noTopLevelLiterals": {
|
|
6864
6995
|
"description": "Require the JSON top-level value to be an array or object.\nSee https://biomejs.dev/linter/rules/no-top-level-literals",
|
|
6865
6996
|
"anyOf": [
|
|
@@ -7080,6 +7211,13 @@
|
|
|
7080
7211
|
{ "type": "null" }
|
|
7081
7212
|
]
|
|
7082
7213
|
},
|
|
7214
|
+
"useReactCompiler": {
|
|
7215
|
+
"description": "Validate files with React Compiler.\nSee https://biomejs.dev/linter/rules/use-react-compiler",
|
|
7216
|
+
"anyOf": [
|
|
7217
|
+
{ "$ref": "#/$defs/UseReactCompilerConfiguration" },
|
|
7218
|
+
{ "type": "null" }
|
|
7219
|
+
]
|
|
7220
|
+
},
|
|
7083
7221
|
"useReactFunctionComponentDefinition": {
|
|
7084
7222
|
"description": "Enforce a specific function type for React function components.\nSee https://biomejs.dev/linter/rules/use-react-function-component-definition",
|
|
7085
7223
|
"anyOf": [
|
|
@@ -7294,14 +7432,14 @@
|
|
|
7294
7432
|
"anyOf": [{ "$ref": "#/$defs/BracketSpacing" }, { "type": "null" }]
|
|
7295
7433
|
},
|
|
7296
7434
|
"delimiterSpacing": {
|
|
7297
|
-
"description": "
|
|
7435
|
+
"description": "Controls spaces immediately inside supported delimiters when their content fits on one line.\nIt doesn't add spaces before opening delimiters or inside empty delimiters.\n\nThe affected delimiters vary by language. If unset, uses the configured formatter setting.",
|
|
7298
7436
|
"anyOf": [{ "$ref": "#/$defs/DelimiterSpacing" }, { "type": "null" }]
|
|
7299
7437
|
},
|
|
7300
7438
|
"enabled": {
|
|
7301
7439
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
7302
7440
|
},
|
|
7303
7441
|
"expand": {
|
|
7304
|
-
"description": "
|
|
7442
|
+
"description": "Controls whether arrays and objects are formatted on one line or multiple lines.\n\n`auto` formats objects on multiple lines if the first property has a newline, and arrays on\none line if they fit.\n\n`always` formats arrays and objects on multiple lines.\n\n`never` formats arrays and objects on one line if they fit.\n\nIf unset, uses the configured formatter setting.\n\nWhen formatting `package.json`, Biome uses `always` unless configured otherwise.",
|
|
7305
7443
|
"anyOf": [{ "$ref": "#/$defs/Expand" }, { "type": "null" }]
|
|
7306
7444
|
},
|
|
7307
7445
|
"formatWithErrors": {
|
|
@@ -8847,6 +8985,15 @@
|
|
|
8847
8985
|
"additionalProperties": false,
|
|
8848
8986
|
"required": ["level"]
|
|
8849
8987
|
},
|
|
8988
|
+
"RuleWithNoExtendNativeOptions": {
|
|
8989
|
+
"type": "object",
|
|
8990
|
+
"properties": {
|
|
8991
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
8992
|
+
"options": { "$ref": "#/$defs/NoExtendNativeOptions" }
|
|
8993
|
+
},
|
|
8994
|
+
"additionalProperties": false,
|
|
8995
|
+
"required": ["level"]
|
|
8996
|
+
},
|
|
8850
8997
|
"RuleWithNoExtraBooleanCastOptions": {
|
|
8851
8998
|
"type": "object",
|
|
8852
8999
|
"properties": {
|
|
@@ -9218,6 +9365,15 @@
|
|
|
9218
9365
|
"additionalProperties": false,
|
|
9219
9366
|
"required": ["level"]
|
|
9220
9367
|
},
|
|
9368
|
+
"RuleWithNoInvalidPropertyInitValueOptions": {
|
|
9369
|
+
"type": "object",
|
|
9370
|
+
"properties": {
|
|
9371
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
9372
|
+
"options": { "$ref": "#/$defs/NoInvalidPropertyInitValueOptions" }
|
|
9373
|
+
},
|
|
9374
|
+
"additionalProperties": false,
|
|
9375
|
+
"required": ["level"]
|
|
9376
|
+
},
|
|
9221
9377
|
"RuleWithNoInvalidUseBeforeDeclarationOptions": {
|
|
9222
9378
|
"type": "object",
|
|
9223
9379
|
"properties": {
|
|
@@ -9513,6 +9669,15 @@
|
|
|
9513
9669
|
"additionalProperties": false,
|
|
9514
9670
|
"required": ["level"]
|
|
9515
9671
|
},
|
|
9672
|
+
"RuleWithNoNonScalableViewportOptions": {
|
|
9673
|
+
"type": "object",
|
|
9674
|
+
"properties": {
|
|
9675
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
9676
|
+
"options": { "$ref": "#/$defs/NoNonScalableViewportOptions" }
|
|
9677
|
+
},
|
|
9678
|
+
"additionalProperties": false,
|
|
9679
|
+
"required": ["level"]
|
|
9680
|
+
},
|
|
9516
9681
|
"RuleWithNoNoninteractiveElementInteractionsOptions": {
|
|
9517
9682
|
"type": "object",
|
|
9518
9683
|
"properties": {
|
|
@@ -10125,6 +10290,15 @@
|
|
|
10125
10290
|
"additionalProperties": false,
|
|
10126
10291
|
"required": ["level"]
|
|
10127
10292
|
},
|
|
10293
|
+
"RuleWithNoSvelteLegacyConstOptions": {
|
|
10294
|
+
"type": "object",
|
|
10295
|
+
"properties": {
|
|
10296
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
10297
|
+
"options": { "$ref": "#/$defs/NoSvelteLegacyConstOptions" }
|
|
10298
|
+
},
|
|
10299
|
+
"additionalProperties": false,
|
|
10300
|
+
"required": ["level"]
|
|
10301
|
+
},
|
|
10128
10302
|
"RuleWithNoSvelteUnnecessaryStateWrapOptions": {
|
|
10129
10303
|
"type": "object",
|
|
10130
10304
|
"properties": {
|
|
@@ -10163,6 +10337,15 @@
|
|
|
10163
10337
|
"additionalProperties": false,
|
|
10164
10338
|
"required": ["level"]
|
|
10165
10339
|
},
|
|
10340
|
+
"RuleWithNoTailwindArbitraryValueOptions": {
|
|
10341
|
+
"type": "object",
|
|
10342
|
+
"properties": {
|
|
10343
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
10344
|
+
"options": { "$ref": "#/$defs/NoTailwindArbitraryValueOptions" }
|
|
10345
|
+
},
|
|
10346
|
+
"additionalProperties": false,
|
|
10347
|
+
"required": ["level"]
|
|
10348
|
+
},
|
|
10166
10349
|
"RuleWithNoTemplateCurlyInStringOptions": {
|
|
10167
10350
|
"type": "object",
|
|
10168
10351
|
"properties": {
|
|
@@ -12051,6 +12234,15 @@
|
|
|
12051
12234
|
"additionalProperties": false,
|
|
12052
12235
|
"required": ["level"]
|
|
12053
12236
|
},
|
|
12237
|
+
"RuleWithUseReactCompilerOptions": {
|
|
12238
|
+
"type": "object",
|
|
12239
|
+
"properties": {
|
|
12240
|
+
"level": { "$ref": "#/$defs/RulePlainConfiguration" },
|
|
12241
|
+
"options": { "$ref": "#/$defs/UseReactCompilerOptions" }
|
|
12242
|
+
},
|
|
12243
|
+
"additionalProperties": false,
|
|
12244
|
+
"required": ["level"]
|
|
12245
|
+
},
|
|
12054
12246
|
"RuleWithUseReactFunctionComponentDefinitionOptions": {
|
|
12055
12247
|
"type": "object",
|
|
12056
12248
|
"properties": {
|
|
@@ -15918,6 +16110,10 @@
|
|
|
15918
16110
|
"description": "Ignore `||` expressions in conditional test positions (default: `true`).",
|
|
15919
16111
|
"type": ["boolean", "null"]
|
|
15920
16112
|
},
|
|
16113
|
+
"ignoreIfStatements": {
|
|
16114
|
+
"description": "Whether to ignore `if` statements that only assign to a nullish variable and could be rewritten as `??=` (default: `false`).",
|
|
16115
|
+
"type": ["boolean", "null"]
|
|
16116
|
+
},
|
|
15921
16117
|
"ignoreMixedLogicalExpressions": {
|
|
15922
16118
|
"description": "Whether to ignore `||` and `||=` binary operations that are part of a mixed logical expression with `&&` (default: `false`).",
|
|
15923
16119
|
"type": ["boolean", "null"]
|
|
@@ -16093,6 +16289,22 @@
|
|
|
16093
16289
|
"type": "object",
|
|
16094
16290
|
"additionalProperties": false
|
|
16095
16291
|
},
|
|
16292
|
+
"UseReactCompilerConfiguration": {
|
|
16293
|
+
"oneOf": [
|
|
16294
|
+
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
16295
|
+
{ "$ref": "#/$defs/RuleWithUseReactCompilerOptions" }
|
|
16296
|
+
]
|
|
16297
|
+
},
|
|
16298
|
+
"UseReactCompilerOptions": {
|
|
16299
|
+
"type": "object",
|
|
16300
|
+
"properties": {
|
|
16301
|
+
"compilationMode": {
|
|
16302
|
+
"description": "Which functions React Compiler analyzes. Defaults to `infer`.",
|
|
16303
|
+
"anyOf": [{ "$ref": "#/$defs/CompilationMode" }, { "type": "null" }]
|
|
16304
|
+
}
|
|
16305
|
+
},
|
|
16306
|
+
"additionalProperties": false
|
|
16307
|
+
},
|
|
16096
16308
|
"UseReactFunctionComponentDefinitionConfiguration": {
|
|
16097
16309
|
"oneOf": [
|
|
16098
16310
|
{ "$ref": "#/$defs/RulePlainConfiguration" },
|
|
@@ -17013,34 +17225,34 @@
|
|
|
17013
17225
|
"VcsClientKind": {
|
|
17014
17226
|
"oneOf": [
|
|
17015
17227
|
{
|
|
17016
|
-
"description": "Integration with the
|
|
17228
|
+
"description": "Integration with Git as the version control client.",
|
|
17017
17229
|
"type": "string",
|
|
17018
17230
|
"const": "git"
|
|
17019
17231
|
}
|
|
17020
17232
|
]
|
|
17021
17233
|
},
|
|
17022
17234
|
"VcsConfiguration": {
|
|
17023
|
-
"description": "
|
|
17235
|
+
"description": "Settings for integrating Biome with version control.",
|
|
17024
17236
|
"type": "object",
|
|
17025
17237
|
"properties": {
|
|
17026
17238
|
"clientKind": {
|
|
17027
|
-
"description": "The
|
|
17239
|
+
"description": "The version control client.",
|
|
17028
17240
|
"anyOf": [{ "$ref": "#/$defs/VcsClientKind" }, { "type": "null" }]
|
|
17029
17241
|
},
|
|
17030
17242
|
"defaultBranch": {
|
|
17031
|
-
"description": "The
|
|
17243
|
+
"description": "The project's default branch.",
|
|
17032
17244
|
"type": ["string", "null"]
|
|
17033
17245
|
},
|
|
17034
17246
|
"enabled": {
|
|
17035
|
-
"description": "Whether Biome should integrate
|
|
17247
|
+
"description": "Whether Biome should integrate with the version control client.",
|
|
17036
17248
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
17037
17249
|
},
|
|
17038
17250
|
"root": {
|
|
17039
|
-
"description": "
|
|
17251
|
+
"description": "Sets the directory where Biome checks for version control files.\n\nDefaults to the directory containing `biome.json` or `biome.jsonc`. If no configuration is\nfound, Biome uses the current working directory.\n\nIf neither directory is available, Biome disables version control integration and emits a\ndiagnostic.",
|
|
17040
17252
|
"type": ["string", "null"]
|
|
17041
17253
|
},
|
|
17042
17254
|
"useIgnoreFile": {
|
|
17043
|
-
"description": "
|
|
17255
|
+
"description": "When `true`, Biome ignores files listed in `.gitignore`, `.ignore`, and Git's local\nexclude file.",
|
|
17044
17256
|
"anyOf": [{ "$ref": "#/$defs/Bool" }, { "type": "null" }]
|
|
17045
17257
|
}
|
|
17046
17258
|
},
|