@biomejs/biome 1.5.2 → 1.5.3-nightly.6cbf1c7
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 +46 -17
- package/package.json +1 -1
|
@@ -921,7 +921,6 @@
|
|
|
921
921
|
},
|
|
922
922
|
"maxSize": {
|
|
923
923
|
"description": "The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB",
|
|
924
|
-
"default": null,
|
|
925
924
|
"type": ["integer", "null"],
|
|
926
925
|
"format": "uint64",
|
|
927
926
|
"minimum": 1.0
|
|
@@ -933,10 +932,9 @@
|
|
|
933
932
|
"description": "Generic options applied to all files",
|
|
934
933
|
"type": "object",
|
|
935
934
|
"properties": {
|
|
936
|
-
"enabled": { "
|
|
935
|
+
"enabled": { "type": ["boolean", "null"] },
|
|
937
936
|
"formatWithErrors": {
|
|
938
937
|
"description": "Stores whether formatting should be allowed to proceed if a given file has syntax errors",
|
|
939
|
-
"default": false,
|
|
940
938
|
"type": ["boolean", "null"]
|
|
941
939
|
},
|
|
942
940
|
"ignore": {
|
|
@@ -949,14 +947,12 @@
|
|
|
949
947
|
},
|
|
950
948
|
"indentSize": {
|
|
951
949
|
"description": "The size of the indentation, 2 by default (deprecated, use `indent-width`)",
|
|
952
|
-
"default": 2,
|
|
953
950
|
"type": ["integer", "null"],
|
|
954
951
|
"format": "uint8",
|
|
955
952
|
"minimum": 0.0
|
|
956
953
|
},
|
|
957
954
|
"indentStyle": {
|
|
958
955
|
"description": "The indent style.",
|
|
959
|
-
"default": "tab",
|
|
960
956
|
"anyOf": [
|
|
961
957
|
{ "$ref": "#/definitions/PlainIndentStyle" },
|
|
962
958
|
{ "type": "null" }
|
|
@@ -964,19 +960,16 @@
|
|
|
964
960
|
},
|
|
965
961
|
"indentWidth": {
|
|
966
962
|
"description": "The size of the indentation, 2 by default",
|
|
967
|
-
"default": 2,
|
|
968
963
|
"type": ["integer", "null"],
|
|
969
964
|
"format": "uint8",
|
|
970
965
|
"minimum": 0.0
|
|
971
966
|
},
|
|
972
967
|
"lineEnding": {
|
|
973
968
|
"description": "The type of line ending.",
|
|
974
|
-
"default": "lf",
|
|
975
969
|
"anyOf": [{ "$ref": "#/definitions/LineEnding" }, { "type": "null" }]
|
|
976
970
|
},
|
|
977
971
|
"lineWidth": {
|
|
978
972
|
"description": "What's the max width of a line. Defaults to 80.",
|
|
979
|
-
"default": 80,
|
|
980
973
|
"anyOf": [{ "$ref": "#/definitions/LineWidth" }, { "type": "null" }]
|
|
981
974
|
}
|
|
982
975
|
},
|
|
@@ -1240,7 +1233,6 @@
|
|
|
1240
1233
|
"properties": {
|
|
1241
1234
|
"enabled": {
|
|
1242
1235
|
"description": "if `false`, it disables the feature and the linter won't be executed. `true` by default",
|
|
1243
|
-
"default": true,
|
|
1244
1236
|
"type": ["boolean", "null"]
|
|
1245
1237
|
},
|
|
1246
1238
|
"ignore": {
|
|
@@ -1253,7 +1245,6 @@
|
|
|
1253
1245
|
},
|
|
1254
1246
|
"rules": {
|
|
1255
1247
|
"description": "List of rules",
|
|
1256
|
-
"default": { "recommended": true },
|
|
1257
1248
|
"anyOf": [{ "$ref": "#/definitions/Rules" }, { "type": "null" }]
|
|
1258
1249
|
}
|
|
1259
1250
|
},
|
|
@@ -1303,6 +1294,13 @@
|
|
|
1303
1294
|
{ "type": "null" }
|
|
1304
1295
|
]
|
|
1305
1296
|
},
|
|
1297
|
+
"noFocusedTests": {
|
|
1298
|
+
"description": "Disallow focused tests.",
|
|
1299
|
+
"anyOf": [
|
|
1300
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1301
|
+
{ "type": "null" }
|
|
1302
|
+
]
|
|
1303
|
+
},
|
|
1306
1304
|
"noGlobalAssign": {
|
|
1307
1305
|
"description": "Disallow assignments to native objects and read-only global variables.",
|
|
1308
1306
|
"anyOf": [
|
|
@@ -1338,6 +1336,13 @@
|
|
|
1338
1336
|
{ "type": "null" }
|
|
1339
1337
|
]
|
|
1340
1338
|
},
|
|
1339
|
+
"noSkippedTests": {
|
|
1340
|
+
"description": "Disallow disabled tests.",
|
|
1341
|
+
"anyOf": [
|
|
1342
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1343
|
+
{ "type": "null" }
|
|
1344
|
+
]
|
|
1345
|
+
},
|
|
1341
1346
|
"noThenProperty": {
|
|
1342
1347
|
"description": "Disallow then property.",
|
|
1343
1348
|
"anyOf": [
|
|
@@ -1453,6 +1458,13 @@
|
|
|
1453
1458
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1454
1459
|
{ "type": "null" }
|
|
1455
1460
|
]
|
|
1461
|
+
},
|
|
1462
|
+
"useSortedClasses": {
|
|
1463
|
+
"description": "Enforce the sorting of CSS utility classes.",
|
|
1464
|
+
"anyOf": [
|
|
1465
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1466
|
+
{ "type": "null" }
|
|
1467
|
+
]
|
|
1456
1468
|
}
|
|
1457
1469
|
}
|
|
1458
1470
|
},
|
|
@@ -1461,7 +1473,6 @@
|
|
|
1461
1473
|
"properties": {
|
|
1462
1474
|
"enabled": {
|
|
1463
1475
|
"description": "Enables the organization of imports",
|
|
1464
|
-
"default": true,
|
|
1465
1476
|
"type": ["boolean", "null"]
|
|
1466
1477
|
},
|
|
1467
1478
|
"ignore": {
|
|
@@ -1666,6 +1677,10 @@
|
|
|
1666
1677
|
{
|
|
1667
1678
|
"description": "Options for `useValidAriaRole` rule",
|
|
1668
1679
|
"allOf": [{ "$ref": "#/definitions/ValidAriaRoleOptions" }]
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"description": "Options for `useSortedClasses` rule",
|
|
1683
|
+
"allOf": [{ "$ref": "#/definitions/UtilityClassSortingOptions" }]
|
|
1669
1684
|
}
|
|
1670
1685
|
]
|
|
1671
1686
|
},
|
|
@@ -1674,10 +1689,11 @@
|
|
|
1674
1689
|
"RestrictedGlobalsOptions": {
|
|
1675
1690
|
"description": "Options for the rule `noRestrictedGlobals`.",
|
|
1676
1691
|
"type": "object",
|
|
1692
|
+
"required": ["deniedGlobals"],
|
|
1677
1693
|
"properties": {
|
|
1678
1694
|
"deniedGlobals": {
|
|
1679
1695
|
"description": "A list of names that should trigger the rule",
|
|
1680
|
-
"type":
|
|
1696
|
+
"type": "array",
|
|
1681
1697
|
"items": { "type": "string" }
|
|
1682
1698
|
}
|
|
1683
1699
|
},
|
|
@@ -2033,7 +2049,7 @@
|
|
|
2033
2049
|
"type": ["boolean", "null"]
|
|
2034
2050
|
},
|
|
2035
2051
|
"noApproximativeNumericConstant": {
|
|
2036
|
-
"description": "
|
|
2052
|
+
"description": "Use standard constants instead of approximated literals.",
|
|
2037
2053
|
"anyOf": [
|
|
2038
2054
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2039
2055
|
{ "type": "null" }
|
|
@@ -2373,14 +2389,27 @@
|
|
|
2373
2389
|
}
|
|
2374
2390
|
]
|
|
2375
2391
|
},
|
|
2376
|
-
"
|
|
2392
|
+
"UtilityClassSortingOptions": {
|
|
2377
2393
|
"type": "object",
|
|
2378
|
-
"required": ["allowedInvalidRoles", "ignoreNonDom"],
|
|
2379
2394
|
"properties": {
|
|
2380
|
-
"
|
|
2381
|
-
"
|
|
2395
|
+
"attributes": {
|
|
2396
|
+
"description": "Additional attributes that will be sorted.",
|
|
2397
|
+
"type": ["array", "null"],
|
|
2382
2398
|
"items": { "type": "string" }
|
|
2383
2399
|
},
|
|
2400
|
+
"functions": {
|
|
2401
|
+
"description": "Names of the functions or tagged templates that will be sorted.",
|
|
2402
|
+
"type": ["array", "null"],
|
|
2403
|
+
"items": { "type": "string" }
|
|
2404
|
+
}
|
|
2405
|
+
},
|
|
2406
|
+
"additionalProperties": false
|
|
2407
|
+
},
|
|
2408
|
+
"ValidAriaRoleOptions": {
|
|
2409
|
+
"type": "object",
|
|
2410
|
+
"required": ["allowInvalidRoles", "ignoreNonDom"],
|
|
2411
|
+
"properties": {
|
|
2412
|
+
"allowInvalidRoles": { "type": "array", "items": { "type": "string" } },
|
|
2384
2413
|
"ignoreNonDom": { "type": "boolean" }
|
|
2385
2414
|
},
|
|
2386
2415
|
"additionalProperties": false
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@biomejs/biome","version":"1.5.
|
|
1
|
+
{"name":"@biomejs/biome","version":"1.5.3-nightly.6cbf1c7","bin":"bin/biome","scripts":{"postinstall":"node scripts/postinstall.js"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"packages/@biomejs/biome"},"author":"Emanuele Stoppa","license":"MIT OR Apache-2.0","bugs":"https://github.com/biomejs/biome/issues","description":"Biome is a toolchain for the web: formatter, linter and more","files":["bin/biome","scripts/postinstall.js","configuration_schema.json","README.md","LICENSE-APACHE","LICENSE-MIT","ROME-LICENSE-MIT"],"keywords":["JavaScript","TypeScript","format","lint","toolchain","JSON"],"engines":{"node":">=14.*"},"funding":{"type":"opencollective","url":"https://opencollective.com/biome"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.5.3-nightly.6cbf1c7","@biomejs/cli-win32-arm64":"1.5.3-nightly.6cbf1c7","@biomejs/cli-darwin-x64":"1.5.3-nightly.6cbf1c7","@biomejs/cli-darwin-arm64":"1.5.3-nightly.6cbf1c7","@biomejs/cli-linux-x64":"1.5.3-nightly.6cbf1c7","@biomejs/cli-linux-arm64":"1.5.3-nightly.6cbf1c7","@biomejs/cli-linux-x64-musl":"1.5.3-nightly.6cbf1c7","@biomejs/cli-linux-arm64-musl":"1.5.3-nightly.6cbf1c7"}}
|