@biomejs/biome 2.2.6 → 2.3.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.
- package/configuration_schema.json +200 -92
- package/package.json +9 -9
|
@@ -974,6 +974,13 @@
|
|
|
974
974
|
{ "type": "null" }
|
|
975
975
|
]
|
|
976
976
|
},
|
|
977
|
+
"noQwikUseVisibleTask": {
|
|
978
|
+
"description": "Disallow useVisibleTask$() functions in Qwik components.",
|
|
979
|
+
"anyOf": [
|
|
980
|
+
{ "$ref": "#/definitions/NoQwikUseVisibleTaskConfiguration" },
|
|
981
|
+
{ "type": "null" }
|
|
982
|
+
]
|
|
983
|
+
},
|
|
977
984
|
"noReactPropAssignments": {
|
|
978
985
|
"description": "Disallow assigning to React component props.",
|
|
979
986
|
"anyOf": [
|
|
@@ -1204,6 +1211,13 @@
|
|
|
1204
1211
|
{ "type": "null" }
|
|
1205
1212
|
]
|
|
1206
1213
|
},
|
|
1214
|
+
"useImageSize": {
|
|
1215
|
+
"description": "Enforces that \\<img> elements have both width and height attributes.",
|
|
1216
|
+
"anyOf": [
|
|
1217
|
+
{ "$ref": "#/definitions/UseImageSizeConfiguration" },
|
|
1218
|
+
{ "type": "null" }
|
|
1219
|
+
]
|
|
1220
|
+
},
|
|
1207
1221
|
"useImportExtensions": {
|
|
1208
1222
|
"description": "Enforce file extensions for relative imports.",
|
|
1209
1223
|
"anyOf": [
|
|
@@ -1239,6 +1253,13 @@
|
|
|
1239
1253
|
{ "type": "null" }
|
|
1240
1254
|
]
|
|
1241
1255
|
},
|
|
1256
|
+
"useQwikClasslist": {
|
|
1257
|
+
"description": "Prefer using the class prop as a classlist over the classnames helper.",
|
|
1258
|
+
"anyOf": [
|
|
1259
|
+
{ "$ref": "#/definitions/UseQwikClasslistConfiguration" },
|
|
1260
|
+
{ "type": "null" }
|
|
1261
|
+
]
|
|
1262
|
+
},
|
|
1242
1263
|
"useSingleJsDocAsterisk": {
|
|
1243
1264
|
"description": "Enforce JSDoc comment lines to start with a single asterisk, except for the first one.",
|
|
1244
1265
|
"anyOf": [
|
|
@@ -1350,7 +1371,7 @@
|
|
|
1350
1371
|
"anyOf": [{ "$ref": "#/definitions/IndentWidth" }, { "type": "null" }]
|
|
1351
1372
|
},
|
|
1352
1373
|
"lineEnding": {
|
|
1353
|
-
"description": "The type of line ending applied to CSS (and its super languages) files.",
|
|
1374
|
+
"description": "The type of line ending applied to CSS (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.",
|
|
1354
1375
|
"anyOf": [{ "$ref": "#/definitions/LineEnding" }, { "type": "null" }]
|
|
1355
1376
|
},
|
|
1356
1377
|
"lineWidth": {
|
|
@@ -1381,11 +1402,14 @@
|
|
|
1381
1402
|
"properties": {
|
|
1382
1403
|
"allowWrongLineComments": {
|
|
1383
1404
|
"description": "Allow comments to appear on incorrect lines in `.css` files",
|
|
1384
|
-
"default": null,
|
|
1385
1405
|
"anyOf": [{ "$ref": "#/definitions/Bool" }, { "type": "null" }]
|
|
1386
1406
|
},
|
|
1387
1407
|
"cssModules": {
|
|
1388
1408
|
"description": "Enables parsing of CSS Modules specific features.",
|
|
1409
|
+
"anyOf": [{ "$ref": "#/definitions/Bool" }, { "type": "null" }]
|
|
1410
|
+
},
|
|
1411
|
+
"tailwindDirectives": {
|
|
1412
|
+
"description": "Enables parsing of Tailwind CSS 4.0 directives and functions.",
|
|
1389
1413
|
"default": null,
|
|
1390
1414
|
"anyOf": [{ "$ref": "#/definitions/Bool" }, { "type": "null" }]
|
|
1391
1415
|
}
|
|
@@ -1486,12 +1510,12 @@
|
|
|
1486
1510
|
"type": "object",
|
|
1487
1511
|
"properties": {
|
|
1488
1512
|
"experimentalScannerIgnores": {
|
|
1489
|
-
"description": "
|
|
1513
|
+
"description": "**Deprecated:** Please use _force-ignore syntax_ in `files.includes` instead: https://biomejs.dev/reference/configuration/#filesincludes\n\nSet of file and folder names that should be unconditionally ignored by Biome's scanner.",
|
|
1490
1514
|
"type": ["array", "null"],
|
|
1491
1515
|
"items": { "type": "string" }
|
|
1492
1516
|
},
|
|
1493
1517
|
"ignoreUnknown": {
|
|
1494
|
-
"description": "Tells Biome to not emit diagnostics when handling files that doesn't know",
|
|
1518
|
+
"description": "Tells Biome to not emit diagnostics when handling files that it doesn't know",
|
|
1495
1519
|
"anyOf": [{ "$ref": "#/definitions/Bool" }, { "type": "null" }]
|
|
1496
1520
|
},
|
|
1497
1521
|
"includes": {
|
|
@@ -1569,7 +1593,7 @@
|
|
|
1569
1593
|
"anyOf": [{ "$ref": "#/definitions/Expand" }, { "type": "null" }]
|
|
1570
1594
|
},
|
|
1571
1595
|
"formatWithErrors": {
|
|
1572
|
-
"description": "
|
|
1596
|
+
"description": "Whether formatting should be allowed to proceed if a given file has syntax errors",
|
|
1573
1597
|
"anyOf": [{ "$ref": "#/definitions/Bool" }, { "type": "null" }]
|
|
1574
1598
|
},
|
|
1575
1599
|
"includes": {
|
|
@@ -1668,7 +1692,7 @@
|
|
|
1668
1692
|
"anyOf": [{ "$ref": "#/definitions/IndentWidth" }, { "type": "null" }]
|
|
1669
1693
|
},
|
|
1670
1694
|
"lineEnding": {
|
|
1671
|
-
"description": "The type of line ending applied to GraphQL files.",
|
|
1695
|
+
"description": "The type of line ending applied to GraphQL files. `auto` uses CRLF on Windows and LF on other platforms.",
|
|
1672
1696
|
"default": null,
|
|
1673
1697
|
"anyOf": [{ "$ref": "#/definitions/LineEnding" }, { "type": "null" }]
|
|
1674
1698
|
},
|
|
@@ -1839,10 +1863,31 @@
|
|
|
1839
1863
|
},
|
|
1840
1864
|
"additionalProperties": false
|
|
1841
1865
|
},
|
|
1866
|
+
"HtmlAssistConfiguration": {
|
|
1867
|
+
"description": "Options that changes how the HTML assist behaves",
|
|
1868
|
+
"type": "object",
|
|
1869
|
+
"properties": {
|
|
1870
|
+
"enabled": {
|
|
1871
|
+
"description": "Control the assist for HTML (and its super languages) files.",
|
|
1872
|
+
"anyOf": [{ "$ref": "#/definitions/Bool" }, { "type": "null" }]
|
|
1873
|
+
}
|
|
1874
|
+
},
|
|
1875
|
+
"additionalProperties": false
|
|
1876
|
+
},
|
|
1842
1877
|
"HtmlConfiguration": {
|
|
1843
1878
|
"description": "Options applied to HTML files",
|
|
1844
1879
|
"type": "object",
|
|
1845
1880
|
"properties": {
|
|
1881
|
+
"assist": {
|
|
1882
|
+
"anyOf": [
|
|
1883
|
+
{ "$ref": "#/definitions/HtmlAssistConfiguration" },
|
|
1884
|
+
{ "type": "null" }
|
|
1885
|
+
]
|
|
1886
|
+
},
|
|
1887
|
+
"experimentalFullSupportEnabled": {
|
|
1888
|
+
"description": "Enables full support for HTML, Vue, Svelte and Astro files.",
|
|
1889
|
+
"anyOf": [{ "$ref": "#/definitions/Bool" }, { "type": "null" }]
|
|
1890
|
+
},
|
|
1846
1891
|
"formatter": {
|
|
1847
1892
|
"description": "HTML formatter options",
|
|
1848
1893
|
"anyOf": [
|
|
@@ -1850,6 +1895,13 @@
|
|
|
1850
1895
|
{ "type": "null" }
|
|
1851
1896
|
]
|
|
1852
1897
|
},
|
|
1898
|
+
"linter": {
|
|
1899
|
+
"description": "HTML linter options",
|
|
1900
|
+
"anyOf": [
|
|
1901
|
+
{ "$ref": "#/definitions/HtmlLinterConfiguration" },
|
|
1902
|
+
{ "type": "null" }
|
|
1903
|
+
]
|
|
1904
|
+
},
|
|
1853
1905
|
"parser": {
|
|
1854
1906
|
"description": "HTML parsing options",
|
|
1855
1907
|
"anyOf": [
|
|
@@ -1898,7 +1950,7 @@
|
|
|
1898
1950
|
"anyOf": [{ "$ref": "#/definitions/IndentWidth" }, { "type": "null" }]
|
|
1899
1951
|
},
|
|
1900
1952
|
"lineEnding": {
|
|
1901
|
-
"description": "The type of line ending applied to HTML (and its super languages) files.",
|
|
1953
|
+
"description": "The type of line ending applied to HTML (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.",
|
|
1902
1954
|
"anyOf": [{ "$ref": "#/definitions/LineEnding" }, { "type": "null" }]
|
|
1903
1955
|
},
|
|
1904
1956
|
"lineWidth": {
|
|
@@ -1922,6 +1974,17 @@
|
|
|
1922
1974
|
},
|
|
1923
1975
|
"additionalProperties": false
|
|
1924
1976
|
},
|
|
1977
|
+
"HtmlLinterConfiguration": {
|
|
1978
|
+
"description": "Options that changes how the HTML linter behaves",
|
|
1979
|
+
"type": "object",
|
|
1980
|
+
"properties": {
|
|
1981
|
+
"enabled": {
|
|
1982
|
+
"description": "Control the linter for HTML (and its super languages) files.",
|
|
1983
|
+
"anyOf": [{ "$ref": "#/definitions/Bool" }, { "type": "null" }]
|
|
1984
|
+
}
|
|
1985
|
+
},
|
|
1986
|
+
"additionalProperties": false
|
|
1987
|
+
},
|
|
1925
1988
|
"HtmlParserConfiguration": {
|
|
1926
1989
|
"description": "Options that changes how the HTML parser behaves",
|
|
1927
1990
|
"type": "object",
|
|
@@ -2080,7 +2143,7 @@
|
|
|
2080
2143
|
"anyOf": [{ "$ref": "#/definitions/QuoteStyle" }, { "type": "null" }]
|
|
2081
2144
|
},
|
|
2082
2145
|
"lineEnding": {
|
|
2083
|
-
"description": "The type of line ending applied to JavaScript (and its super languages) files.",
|
|
2146
|
+
"description": "The type of line ending applied to JavaScript (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.",
|
|
2084
2147
|
"anyOf": [{ "$ref": "#/definitions/LineEnding" }, { "type": "null" }]
|
|
2085
2148
|
},
|
|
2086
2149
|
"lineWidth": {
|
|
@@ -2150,7 +2213,7 @@
|
|
|
2150
2213
|
"additionalProperties": false
|
|
2151
2214
|
},
|
|
2152
2215
|
"JsonAssistConfiguration": {
|
|
2153
|
-
"description": "
|
|
2216
|
+
"description": "Assist options specific to the JSON linter",
|
|
2154
2217
|
"type": "object",
|
|
2155
2218
|
"properties": {
|
|
2156
2219
|
"enabled": {
|
|
@@ -2222,7 +2285,7 @@
|
|
|
2222
2285
|
"anyOf": [{ "$ref": "#/definitions/IndentWidth" }, { "type": "null" }]
|
|
2223
2286
|
},
|
|
2224
2287
|
"lineEnding": {
|
|
2225
|
-
"description": "The type of line ending applied to JSON (and its super languages) files.",
|
|
2288
|
+
"description": "The type of line ending applied to JSON (and its super languages) files. `auto` uses CRLF on Windows and LF on other platforms.",
|
|
2226
2289
|
"anyOf": [{ "$ref": "#/definitions/LineEnding" }, { "type": "null" }]
|
|
2227
2290
|
},
|
|
2228
2291
|
"lineWidth": {
|
|
@@ -2399,6 +2462,11 @@
|
|
|
2399
2462
|
"description": "Carriage Return character only (\\r), used very rarely",
|
|
2400
2463
|
"type": "string",
|
|
2401
2464
|
"enum": ["cr"]
|
|
2465
|
+
},
|
|
2466
|
+
{
|
|
2467
|
+
"description": "Automatically use CRLF on Windows and LF on other platforms",
|
|
2468
|
+
"type": "string",
|
|
2469
|
+
"enum": ["auto"]
|
|
2402
2470
|
}
|
|
2403
2471
|
]
|
|
2404
2472
|
},
|
|
@@ -3128,6 +3196,23 @@
|
|
|
3128
3196
|
"type": "object",
|
|
3129
3197
|
"additionalProperties": false
|
|
3130
3198
|
},
|
|
3199
|
+
"NoEmptySourceConfiguration": {
|
|
3200
|
+
"anyOf": [
|
|
3201
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
3202
|
+
{ "$ref": "#/definitions/RuleWithNoEmptySourceOptions" }
|
|
3203
|
+
]
|
|
3204
|
+
},
|
|
3205
|
+
"NoEmptySourceOptions": {
|
|
3206
|
+
"type": "object",
|
|
3207
|
+
"properties": {
|
|
3208
|
+
"allowComments": {
|
|
3209
|
+
"description": "Whether comments are considered meaningful",
|
|
3210
|
+
"default": false,
|
|
3211
|
+
"type": "boolean"
|
|
3212
|
+
}
|
|
3213
|
+
},
|
|
3214
|
+
"additionalProperties": false
|
|
3215
|
+
},
|
|
3131
3216
|
"NoEmptyTypeParametersConfiguration": {
|
|
3132
3217
|
"anyOf": [
|
|
3133
3218
|
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
@@ -3189,7 +3274,7 @@
|
|
|
3189
3274
|
"description": "The maximum number of lines allowed in a function body.",
|
|
3190
3275
|
"default": 50,
|
|
3191
3276
|
"type": "integer",
|
|
3192
|
-
"format": "
|
|
3277
|
+
"format": "uint16",
|
|
3193
3278
|
"minimum": 1.0
|
|
3194
3279
|
},
|
|
3195
3280
|
"skipBlankLines": {
|
|
@@ -4423,6 +4508,13 @@
|
|
|
4423
4508
|
},
|
|
4424
4509
|
"NoUnknownAtRulesOptions": {
|
|
4425
4510
|
"type": "object",
|
|
4511
|
+
"properties": {
|
|
4512
|
+
"ignore": {
|
|
4513
|
+
"description": "A list of unknown at-rule names to ignore (case-insensitive).",
|
|
4514
|
+
"type": "array",
|
|
4515
|
+
"items": { "type": "string" }
|
|
4516
|
+
}
|
|
4517
|
+
},
|
|
4426
4518
|
"additionalProperties": false
|
|
4427
4519
|
},
|
|
4428
4520
|
"NoUnknownFunctionConfiguration": {
|
|
@@ -5003,6 +5095,13 @@
|
|
|
5003
5095
|
{ "type": "null" }
|
|
5004
5096
|
]
|
|
5005
5097
|
},
|
|
5098
|
+
"noEmptySource": {
|
|
5099
|
+
"description": "Disallow empty sources.",
|
|
5100
|
+
"anyOf": [
|
|
5101
|
+
{ "$ref": "#/definitions/NoEmptySourceConfiguration" },
|
|
5102
|
+
{ "type": "null" }
|
|
5103
|
+
]
|
|
5104
|
+
},
|
|
5006
5105
|
"noFloatingPromises": {
|
|
5007
5106
|
"description": "Require Promise-like statements to be handled appropriately.",
|
|
5008
5107
|
"anyOf": [
|
|
@@ -5038,22 +5137,6 @@
|
|
|
5038
5137
|
{ "type": "null" }
|
|
5039
5138
|
]
|
|
5040
5139
|
},
|
|
5041
|
-
"noNonNullAssertedOptionalChain": {
|
|
5042
|
-
"description": "Disallow non-null assertions after optional chaining expressions.",
|
|
5043
|
-
"anyOf": [
|
|
5044
|
-
{
|
|
5045
|
-
"$ref": "#/definitions/NoNonNullAssertedOptionalChainConfiguration"
|
|
5046
|
-
},
|
|
5047
|
-
{ "type": "null" }
|
|
5048
|
-
]
|
|
5049
|
-
},
|
|
5050
|
-
"noQwikUseVisibleTask": {
|
|
5051
|
-
"description": "Disallow useVisibleTask$() functions in Qwik components.",
|
|
5052
|
-
"anyOf": [
|
|
5053
|
-
{ "$ref": "#/definitions/NoQwikUseVisibleTaskConfiguration" },
|
|
5054
|
-
{ "type": "null" }
|
|
5055
|
-
]
|
|
5056
|
-
},
|
|
5057
5140
|
"noReactForwardRef": {
|
|
5058
5141
|
"description": "Replaces usages of forwardRef with passing ref as a prop.",
|
|
5059
5142
|
"anyOf": [
|
|
@@ -5061,13 +5144,6 @@
|
|
|
5061
5144
|
{ "type": "null" }
|
|
5062
5145
|
]
|
|
5063
5146
|
},
|
|
5064
|
-
"noSecrets": {
|
|
5065
|
-
"description": "Disallow usage of sensitive data such as API keys and tokens.",
|
|
5066
|
-
"anyOf": [
|
|
5067
|
-
{ "$ref": "#/definitions/NoSecretsConfiguration" },
|
|
5068
|
-
{ "type": "null" }
|
|
5069
|
-
]
|
|
5070
|
-
},
|
|
5071
5147
|
"noShadow": {
|
|
5072
5148
|
"description": "Disallow variable declarations from shadowing variables declared in the outer scope.",
|
|
5073
5149
|
"anyOf": [
|
|
@@ -5142,13 +5218,6 @@
|
|
|
5142
5218
|
"description": "Enables the recommended rules for this group",
|
|
5143
5219
|
"type": ["boolean", "null"]
|
|
5144
5220
|
},
|
|
5145
|
-
"useAnchorHref": {
|
|
5146
|
-
"description": "Enforces href attribute for \\<a> elements.",
|
|
5147
|
-
"anyOf": [
|
|
5148
|
-
{ "$ref": "#/definitions/UseAnchorHrefConfiguration" },
|
|
5149
|
-
{ "type": "null" }
|
|
5150
|
-
]
|
|
5151
|
-
},
|
|
5152
5221
|
"useConsistentArrowReturn": {
|
|
5153
5222
|
"description": "Enforce consistent arrow function bodies.",
|
|
5154
5223
|
"anyOf": [
|
|
@@ -5156,15 +5225,6 @@
|
|
|
5156
5225
|
{ "type": "null" }
|
|
5157
5226
|
]
|
|
5158
5227
|
},
|
|
5159
|
-
"useConsistentTypeDefinitions": {
|
|
5160
|
-
"description": "Enforce type definitions to consistently use either interface or type.",
|
|
5161
|
-
"anyOf": [
|
|
5162
|
-
{
|
|
5163
|
-
"$ref": "#/definitions/UseConsistentTypeDefinitionsConfiguration"
|
|
5164
|
-
},
|
|
5165
|
-
{ "type": "null" }
|
|
5166
|
-
]
|
|
5167
|
-
},
|
|
5168
5228
|
"useDeprecatedDate": {
|
|
5169
5229
|
"description": "Require the @deprecated directive to specify a deletion date.",
|
|
5170
5230
|
"anyOf": [
|
|
@@ -5186,13 +5246,6 @@
|
|
|
5186
5246
|
{ "type": "null" }
|
|
5187
5247
|
]
|
|
5188
5248
|
},
|
|
5189
|
-
"useImageSize": {
|
|
5190
|
-
"description": "Enforces that \\<img> elements have both width and height attributes.",
|
|
5191
|
-
"anyOf": [
|
|
5192
|
-
{ "$ref": "#/definitions/UseImageSizeConfiguration" },
|
|
5193
|
-
{ "type": "null" }
|
|
5194
|
-
]
|
|
5195
|
-
},
|
|
5196
5249
|
"useMaxParams": {
|
|
5197
5250
|
"description": "Enforce a maximum number of parameters in function definitions.",
|
|
5198
5251
|
"anyOf": [
|
|
@@ -5200,13 +5253,6 @@
|
|
|
5200
5253
|
{ "type": "null" }
|
|
5201
5254
|
]
|
|
5202
5255
|
},
|
|
5203
|
-
"useQwikClasslist": {
|
|
5204
|
-
"description": "Prefer using the class prop as a classlist over the classnames helper.",
|
|
5205
|
-
"anyOf": [
|
|
5206
|
-
{ "$ref": "#/definitions/UseQwikClasslistConfiguration" },
|
|
5207
|
-
{ "type": "null" }
|
|
5208
|
-
]
|
|
5209
|
-
},
|
|
5210
5256
|
"useQwikMethodUsage": {
|
|
5211
5257
|
"description": "Disallow use* hooks outside of component$ or other use* hooks in Qwik applications.",
|
|
5212
5258
|
"anyOf": [
|
|
@@ -5221,17 +5267,17 @@
|
|
|
5221
5267
|
{ "type": "null" }
|
|
5222
5268
|
]
|
|
5223
5269
|
},
|
|
5224
|
-
"
|
|
5225
|
-
"description": "Enforce
|
|
5270
|
+
"useSortedClasses": {
|
|
5271
|
+
"description": "Enforce the sorting of CSS utility classes.",
|
|
5226
5272
|
"anyOf": [
|
|
5227
|
-
{ "$ref": "#/definitions/
|
|
5273
|
+
{ "$ref": "#/definitions/UseSortedClassesConfiguration" },
|
|
5228
5274
|
{ "type": "null" }
|
|
5229
5275
|
]
|
|
5230
5276
|
},
|
|
5231
|
-
"
|
|
5232
|
-
"description": "Enforce
|
|
5277
|
+
"useVueDefineMacrosOrder": {
|
|
5278
|
+
"description": "Enforce specific order of Vue compiler macros.",
|
|
5233
5279
|
"anyOf": [
|
|
5234
|
-
{ "$ref": "#/definitions/
|
|
5280
|
+
{ "$ref": "#/definitions/UseVueDefineMacrosOrderConfiguration" },
|
|
5235
5281
|
{ "type": "null" }
|
|
5236
5282
|
]
|
|
5237
5283
|
},
|
|
@@ -6959,6 +7005,21 @@
|
|
|
6959
7005
|
},
|
|
6960
7006
|
"additionalProperties": false
|
|
6961
7007
|
},
|
|
7008
|
+
"RuleWithNoEmptySourceOptions": {
|
|
7009
|
+
"type": "object",
|
|
7010
|
+
"required": ["level"],
|
|
7011
|
+
"properties": {
|
|
7012
|
+
"level": {
|
|
7013
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
7014
|
+
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
7015
|
+
},
|
|
7016
|
+
"options": {
|
|
7017
|
+
"description": "Rule's options",
|
|
7018
|
+
"allOf": [{ "$ref": "#/definitions/NoEmptySourceOptions" }]
|
|
7019
|
+
}
|
|
7020
|
+
},
|
|
7021
|
+
"additionalProperties": false
|
|
7022
|
+
},
|
|
6962
7023
|
"RuleWithNoEmptyTypeParametersOptions": {
|
|
6963
7024
|
"type": "object",
|
|
6964
7025
|
"required": ["level"],
|
|
@@ -9953,21 +10014,6 @@
|
|
|
9953
10014
|
},
|
|
9954
10015
|
"additionalProperties": false
|
|
9955
10016
|
},
|
|
9956
|
-
"RuleWithUseAnchorHrefOptions": {
|
|
9957
|
-
"type": "object",
|
|
9958
|
-
"required": ["level"],
|
|
9959
|
-
"properties": {
|
|
9960
|
-
"level": {
|
|
9961
|
-
"description": "The severity of the emitted diagnostics by the rule",
|
|
9962
|
-
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
9963
|
-
},
|
|
9964
|
-
"options": {
|
|
9965
|
-
"description": "Rule's options",
|
|
9966
|
-
"allOf": [{ "$ref": "#/definitions/UseAnchorHrefOptions" }]
|
|
9967
|
-
}
|
|
9968
|
-
},
|
|
9969
|
-
"additionalProperties": false
|
|
9970
|
-
},
|
|
9971
10017
|
"RuleWithUseAriaActivedescendantWithTabindexOptions": {
|
|
9972
10018
|
"type": "object",
|
|
9973
10019
|
"required": ["level"],
|
|
@@ -11974,6 +12020,25 @@
|
|
|
11974
12020
|
},
|
|
11975
12021
|
"additionalProperties": false
|
|
11976
12022
|
},
|
|
12023
|
+
"RuleWithUseVueDefineMacrosOrderOptions": {
|
|
12024
|
+
"type": "object",
|
|
12025
|
+
"required": ["level"],
|
|
12026
|
+
"properties": {
|
|
12027
|
+
"fix": {
|
|
12028
|
+
"description": "The kind of the code actions emitted by the rule",
|
|
12029
|
+
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
12030
|
+
},
|
|
12031
|
+
"level": {
|
|
12032
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
12033
|
+
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
12034
|
+
},
|
|
12035
|
+
"options": {
|
|
12036
|
+
"description": "Rule's options",
|
|
12037
|
+
"allOf": [{ "$ref": "#/definitions/UseVueDefineMacrosOrderOptions" }]
|
|
12038
|
+
}
|
|
12039
|
+
},
|
|
12040
|
+
"additionalProperties": false
|
|
12041
|
+
},
|
|
11977
12042
|
"RuleWithUseVueMultiWordComponentNamesOptions": {
|
|
11978
12043
|
"type": "object",
|
|
11979
12044
|
"required": ["level"],
|
|
@@ -12119,6 +12184,13 @@
|
|
|
12119
12184
|
{ "type": "null" }
|
|
12120
12185
|
]
|
|
12121
12186
|
},
|
|
12187
|
+
"noSecrets": {
|
|
12188
|
+
"description": "Disallow usage of sensitive data such as API keys and tokens.",
|
|
12189
|
+
"anyOf": [
|
|
12190
|
+
{ "$ref": "#/definitions/NoSecretsConfiguration" },
|
|
12191
|
+
{ "type": "null" }
|
|
12192
|
+
]
|
|
12193
|
+
},
|
|
12122
12194
|
"recommended": {
|
|
12123
12195
|
"description": "Enables the recommended rules for this group",
|
|
12124
12196
|
"type": ["boolean", "null"]
|
|
@@ -12575,6 +12647,15 @@
|
|
|
12575
12647
|
{ "type": "null" }
|
|
12576
12648
|
]
|
|
12577
12649
|
},
|
|
12650
|
+
"useConsistentTypeDefinitions": {
|
|
12651
|
+
"description": "Enforce type definitions to consistently use either interface or type.",
|
|
12652
|
+
"anyOf": [
|
|
12653
|
+
{
|
|
12654
|
+
"$ref": "#/definitions/UseConsistentTypeDefinitionsConfiguration"
|
|
12655
|
+
},
|
|
12656
|
+
{ "type": "null" }
|
|
12657
|
+
]
|
|
12658
|
+
},
|
|
12578
12659
|
"useConst": {
|
|
12579
12660
|
"description": "Require const declarations for variables that are only assigned once.",
|
|
12580
12661
|
"anyOf": [
|
|
@@ -12729,6 +12810,13 @@
|
|
|
12729
12810
|
{ "type": "null" }
|
|
12730
12811
|
]
|
|
12731
12812
|
},
|
|
12813
|
+
"useReactFunctionComponents": {
|
|
12814
|
+
"description": "Enforce that components are defined as functions and never as classes.",
|
|
12815
|
+
"anyOf": [
|
|
12816
|
+
{ "$ref": "#/definitions/UseReactFunctionComponentsConfiguration" },
|
|
12817
|
+
{ "type": "null" }
|
|
12818
|
+
]
|
|
12819
|
+
},
|
|
12732
12820
|
"useReadonlyClassProperties": {
|
|
12733
12821
|
"description": "Enforce marking members as readonly if they are never modified outside the constructor.",
|
|
12734
12822
|
"anyOf": [
|
|
@@ -13242,6 +13330,15 @@
|
|
|
13242
13330
|
{ "type": "null" }
|
|
13243
13331
|
]
|
|
13244
13332
|
},
|
|
13333
|
+
"noNonNullAssertedOptionalChain": {
|
|
13334
|
+
"description": "Disallow non-null assertions after optional chaining expressions.",
|
|
13335
|
+
"anyOf": [
|
|
13336
|
+
{
|
|
13337
|
+
"$ref": "#/definitions/NoNonNullAssertedOptionalChainConfiguration"
|
|
13338
|
+
},
|
|
13339
|
+
{ "type": "null" }
|
|
13340
|
+
]
|
|
13341
|
+
},
|
|
13245
13342
|
"noOctalEscape": {
|
|
13246
13343
|
"description": "Disallow octal escape sequences in string literals",
|
|
13247
13344
|
"anyOf": [
|
|
@@ -13575,13 +13672,6 @@
|
|
|
13575
13672
|
"type": "object",
|
|
13576
13673
|
"additionalProperties": false
|
|
13577
13674
|
},
|
|
13578
|
-
"UseAnchorHrefConfiguration": {
|
|
13579
|
-
"anyOf": [
|
|
13580
|
-
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
13581
|
-
{ "$ref": "#/definitions/RuleWithUseAnchorHrefOptions" }
|
|
13582
|
-
]
|
|
13583
|
-
},
|
|
13584
|
-
"UseAnchorHrefOptions": { "type": "null" },
|
|
13585
13675
|
"UseAriaActivedescendantWithTabindexConfiguration": {
|
|
13586
13676
|
"anyOf": [
|
|
13587
13677
|
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
@@ -14911,6 +15001,24 @@
|
|
|
14911
15001
|
"type": "object",
|
|
14912
15002
|
"additionalProperties": false
|
|
14913
15003
|
},
|
|
15004
|
+
"UseVueDefineMacrosOrderConfiguration": {
|
|
15005
|
+
"anyOf": [
|
|
15006
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
15007
|
+
{ "$ref": "#/definitions/RuleWithUseVueDefineMacrosOrderOptions" }
|
|
15008
|
+
]
|
|
15009
|
+
},
|
|
15010
|
+
"UseVueDefineMacrosOrderOptions": {
|
|
15011
|
+
"type": "object",
|
|
15012
|
+
"properties": {
|
|
15013
|
+
"order": {
|
|
15014
|
+
"description": "The order of the Vue define macros.",
|
|
15015
|
+
"default": [],
|
|
15016
|
+
"type": "array",
|
|
15017
|
+
"items": { "type": "string" }
|
|
15018
|
+
}
|
|
15019
|
+
},
|
|
15020
|
+
"additionalProperties": false
|
|
15021
|
+
},
|
|
14914
15022
|
"UseVueMultiWordComponentNamesConfiguration": {
|
|
14915
15023
|
"anyOf": [
|
|
14916
15024
|
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biomejs/biome",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
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.
|
|
50
|
-
"@biomejs/cli-win32-arm64": "2.
|
|
51
|
-
"@biomejs/cli-darwin-x64": "2.
|
|
52
|
-
"@biomejs/cli-darwin-arm64": "2.
|
|
53
|
-
"@biomejs/cli-linux-x64": "2.
|
|
54
|
-
"@biomejs/cli-linux-arm64": "2.
|
|
55
|
-
"@biomejs/cli-linux-x64-musl": "2.
|
|
56
|
-
"@biomejs/cli-linux-arm64-musl": "2.
|
|
49
|
+
"@biomejs/cli-win32-x64": "2.3.0",
|
|
50
|
+
"@biomejs/cli-win32-arm64": "2.3.0",
|
|
51
|
+
"@biomejs/cli-darwin-x64": "2.3.0",
|
|
52
|
+
"@biomejs/cli-darwin-arm64": "2.3.0",
|
|
53
|
+
"@biomejs/cli-linux-x64": "2.3.0",
|
|
54
|
+
"@biomejs/cli-linux-arm64": "2.3.0",
|
|
55
|
+
"@biomejs/cli-linux-x64-musl": "2.3.0",
|
|
56
|
+
"@biomejs/cli-linux-arm64-musl": "2.3.0"
|
|
57
57
|
}
|
|
58
58
|
}
|