@biomejs/biome 1.5.2 → 1.5.3-nightly.69f9031

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/README.md CHANGED
@@ -25,6 +25,7 @@
25
25
  [open-vsx-badge]: https://badgen.net/open-vsx/version/biomejs/biome?label=open-vsx&color=green
26
26
  [open-vsx-url]: https://open-vsx.org/extension/biomejs/biome
27
27
 
28
+
28
29
  </div>
29
30
 
30
31
  <div align="center">
@@ -88,6 +89,23 @@ Read more about our [project philosophy][biome-philosophy].
88
89
 
89
90
  **Biome** is [MIT licensed](https://github.com/biomejs/biome/tree/main/LICENSE-MIT) or [Apache 2.0 licensed](https://github.com/biomejs/biome/tree/main/LICENSE-APACHE) and moderated under the [Contributor Covenant Code of Conduct](https://github.com/biomejs/biome/tree/main/CODE_OF_CONDUCT.md).
90
91
 
92
+ ## Funding
93
+
94
+ You can fund the project in different ways
95
+
96
+ ### Project sponsorship and funding
97
+
98
+ You can sponsor or fund the project via [Open collective](https://opencollective.com/biome) or [GitHub sponsors](https://github.com/sponsors/biomejs)
99
+
100
+ Biome offers a simple sponsorship program that allows companies to get visibility and recognition among various developers.
101
+
102
+ ### Issue funding
103
+
104
+ We use [Polar.sh](https://polar.sh/biomejs) to up-vote and promote specific features that you would like to see and implement. Check our backlog and help us:
105
+
106
+ <a href="https://polar.sh/biomejs"><img src="https://polar.sh/embed/fund-our-backlog.svg?org=biomejs" /></a>
107
+
108
+
91
109
  ## Sponsors
92
110
 
93
111
  ### Gold Sponsors
@@ -297,6 +297,7 @@
297
297
  }
298
298
  },
299
299
  "ArrowParentheses": { "type": "string", "enum": ["always", "asNeeded"] },
300
+ "AttributePosition": { "type": "string", "enum": ["auto", "multiline"] },
300
301
  "Complexity": {
301
302
  "description": "A list of rules that belong to this group",
302
303
  "type": "object",
@@ -896,6 +897,10 @@
896
897
  "description": "Allowed cases for _TypeScript_ `enum` member names.",
897
898
  "allOf": [{ "$ref": "#/definitions/FilenameCases" }]
898
899
  },
900
+ "requireAscii": {
901
+ "description": "If `false`, then non-ASCII characters are allowed.",
902
+ "type": "boolean"
903
+ },
899
904
  "strictCase": {
900
905
  "description": "If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].",
901
906
  "type": "boolean"
@@ -921,7 +926,6 @@
921
926
  },
922
927
  "maxSize": {
923
928
  "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
929
  "type": ["integer", "null"],
926
930
  "format": "uint64",
927
931
  "minimum": 1.0
@@ -933,10 +937,16 @@
933
937
  "description": "Generic options applied to all files",
934
938
  "type": "object",
935
939
  "properties": {
936
- "enabled": { "default": true, "type": ["boolean", "null"] },
940
+ "attributePosition": {
941
+ "description": "The attribute position style. By default auto.",
942
+ "anyOf": [
943
+ { "$ref": "#/definitions/AttributePosition" },
944
+ { "type": "null" }
945
+ ]
946
+ },
947
+ "enabled": { "type": ["boolean", "null"] },
937
948
  "formatWithErrors": {
938
949
  "description": "Stores whether formatting should be allowed to proceed if a given file has syntax errors",
939
- "default": false,
940
950
  "type": ["boolean", "null"]
941
951
  },
942
952
  "ignore": {
@@ -949,14 +959,12 @@
949
959
  },
950
960
  "indentSize": {
951
961
  "description": "The size of the indentation, 2 by default (deprecated, use `indent-width`)",
952
- "default": 2,
953
962
  "type": ["integer", "null"],
954
963
  "format": "uint8",
955
964
  "minimum": 0.0
956
965
  },
957
966
  "indentStyle": {
958
967
  "description": "The indent style.",
959
- "default": "tab",
960
968
  "anyOf": [
961
969
  { "$ref": "#/definitions/PlainIndentStyle" },
962
970
  { "type": "null" }
@@ -964,19 +972,16 @@
964
972
  },
965
973
  "indentWidth": {
966
974
  "description": "The size of the indentation, 2 by default",
967
- "default": 2,
968
975
  "type": ["integer", "null"],
969
976
  "format": "uint8",
970
977
  "minimum": 0.0
971
978
  },
972
979
  "lineEnding": {
973
980
  "description": "The type of line ending.",
974
- "default": "lf",
975
981
  "anyOf": [{ "$ref": "#/definitions/LineEnding" }, { "type": "null" }]
976
982
  },
977
983
  "lineWidth": {
978
984
  "description": "What's the max width of a line. Defaults to 80.",
979
- "default": 80,
980
985
  "anyOf": [{ "$ref": "#/definitions/LineWidth" }, { "type": "null" }]
981
986
  }
982
987
  },
@@ -1057,6 +1062,13 @@
1057
1062
  { "type": "null" }
1058
1063
  ]
1059
1064
  },
1065
+ "attributePosition": {
1066
+ "description": "The attribute position style in JavaScript code. Defaults to auto.",
1067
+ "anyOf": [
1068
+ { "$ref": "#/definitions/AttributePosition" },
1069
+ { "type": "null" }
1070
+ ]
1071
+ },
1060
1072
  "bracketSameLine": {
1061
1073
  "description": "Whether to hug the closing bracket of multiline HTML/JSX tags to the end of the last line, rather than being alone on the following line. Defaults to false.",
1062
1074
  "type": ["boolean", "null"]
@@ -1240,7 +1252,6 @@
1240
1252
  "properties": {
1241
1253
  "enabled": {
1242
1254
  "description": "if `false`, it disables the feature and the linter won't be executed. `true` by default",
1243
- "default": true,
1244
1255
  "type": ["boolean", "null"]
1245
1256
  },
1246
1257
  "ignore": {
@@ -1253,7 +1264,6 @@
1253
1264
  },
1254
1265
  "rules": {
1255
1266
  "description": "List of rules",
1256
- "default": { "recommended": true },
1257
1267
  "anyOf": [{ "$ref": "#/definitions/Rules" }, { "type": "null" }]
1258
1268
  }
1259
1269
  },
@@ -1267,6 +1277,10 @@
1267
1277
  "description": "Allowed cases for _TypeScript_ `enum` member names.",
1268
1278
  "allOf": [{ "$ref": "#/definitions/EnumMemberCase" }]
1269
1279
  },
1280
+ "requireAscii": {
1281
+ "description": "If `false`, then non-ASCII characters are allowed.",
1282
+ "type": "boolean"
1283
+ },
1270
1284
  "strictCase": {
1271
1285
  "description": "If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].",
1272
1286
  "type": "boolean"
@@ -1282,6 +1296,13 @@
1282
1296
  "description": "It enables ALL rules for this group.",
1283
1297
  "type": ["boolean", "null"]
1284
1298
  },
1299
+ "noConsole": {
1300
+ "description": "Disallow the use of console.",
1301
+ "anyOf": [
1302
+ { "$ref": "#/definitions/RuleConfiguration" },
1303
+ { "type": "null" }
1304
+ ]
1305
+ },
1285
1306
  "noDuplicateJsonKeys": {
1286
1307
  "description": "Disallow two keys with the same name inside a JSON object.",
1287
1308
  "anyOf": [
@@ -1303,6 +1324,13 @@
1303
1324
  { "type": "null" }
1304
1325
  ]
1305
1326
  },
1327
+ "noFocusedTests": {
1328
+ "description": "Disallow focused tests.",
1329
+ "anyOf": [
1330
+ { "$ref": "#/definitions/RuleConfiguration" },
1331
+ { "type": "null" }
1332
+ ]
1333
+ },
1306
1334
  "noGlobalAssign": {
1307
1335
  "description": "Disallow assignments to native objects and read-only global variables.",
1308
1336
  "anyOf": [
@@ -1331,6 +1359,13 @@
1331
1359
  { "type": "null" }
1332
1360
  ]
1333
1361
  },
1362
+ "noNamespaceImport": {
1363
+ "description": "Disallow the use of namespace imports.",
1364
+ "anyOf": [
1365
+ { "$ref": "#/definitions/RuleConfiguration" },
1366
+ { "type": "null" }
1367
+ ]
1368
+ },
1334
1369
  "noNodejsModules": {
1335
1370
  "description": "Forbid the use of Node.js builtin modules.",
1336
1371
  "anyOf": [
@@ -1338,6 +1373,27 @@
1338
1373
  { "type": "null" }
1339
1374
  ]
1340
1375
  },
1376
+ "noReExportAll": {
1377
+ "description": "Avoid re-export all.",
1378
+ "anyOf": [
1379
+ { "$ref": "#/definitions/RuleConfiguration" },
1380
+ { "type": "null" }
1381
+ ]
1382
+ },
1383
+ "noRestrictedImports": {
1384
+ "description": "Disallow specified modules when loaded by import or require.",
1385
+ "anyOf": [
1386
+ { "$ref": "#/definitions/RuleConfiguration" },
1387
+ { "type": "null" }
1388
+ ]
1389
+ },
1390
+ "noSkippedTests": {
1391
+ "description": "Disallow disabled tests.",
1392
+ "anyOf": [
1393
+ { "$ref": "#/definitions/RuleConfiguration" },
1394
+ { "type": "null" }
1395
+ ]
1396
+ },
1341
1397
  "noThenProperty": {
1342
1398
  "description": "Disallow then property.",
1343
1399
  "anyOf": [
@@ -1345,6 +1401,13 @@
1345
1401
  { "type": "null" }
1346
1402
  ]
1347
1403
  },
1404
+ "noUndeclaredDependencies": {
1405
+ "description": "Disallow the use of dependencies that aren't specified in the package.json.",
1406
+ "anyOf": [
1407
+ { "$ref": "#/definitions/RuleConfiguration" },
1408
+ { "type": "null" }
1409
+ ]
1410
+ },
1348
1411
  "noUnusedImports": {
1349
1412
  "description": "Disallow unused imports.",
1350
1413
  "anyOf": [
@@ -1433,6 +1496,13 @@
1433
1496
  { "type": "null" }
1434
1497
  ]
1435
1498
  },
1499
+ "useNodeAssertStrict": {
1500
+ "description": "Promotes the usage of node:assert/strict over node:assert.",
1501
+ "anyOf": [
1502
+ { "$ref": "#/definitions/RuleConfiguration" },
1503
+ { "type": "null" }
1504
+ ]
1505
+ },
1436
1506
  "useNodejsImportProtocol": {
1437
1507
  "description": "Enforces using the node: protocol for Node.js builtin modules.",
1438
1508
  "anyOf": [
@@ -1453,6 +1523,13 @@
1453
1523
  { "$ref": "#/definitions/RuleConfiguration" },
1454
1524
  { "type": "null" }
1455
1525
  ]
1526
+ },
1527
+ "useSortedClasses": {
1528
+ "description": "Enforce the sorting of CSS utility classes.",
1529
+ "anyOf": [
1530
+ { "$ref": "#/definitions/RuleConfiguration" },
1531
+ { "type": "null" }
1532
+ ]
1456
1533
  }
1457
1534
  }
1458
1535
  },
@@ -1461,7 +1538,6 @@
1461
1538
  "properties": {
1462
1539
  "enabled": {
1463
1540
  "description": "Enables the organization of imports",
1464
- "default": true,
1465
1541
  "type": ["boolean", "null"]
1466
1542
  },
1467
1543
  "ignore": {
@@ -1478,6 +1554,14 @@
1478
1554
  "OverrideFormatterConfiguration": {
1479
1555
  "type": "object",
1480
1556
  "properties": {
1557
+ "attributePosition": {
1558
+ "description": "The attribute position style.",
1559
+ "default": null,
1560
+ "anyOf": [
1561
+ { "$ref": "#/definitions/AttributePosition" },
1562
+ { "type": "null" }
1563
+ ]
1564
+ },
1481
1565
  "enabled": { "default": null, "type": ["boolean", "null"] },
1482
1566
  "formatWithErrors": {
1483
1567
  "description": "Stores whether formatting should be allowed to proceed if a given file has syntax errors",
@@ -1663,9 +1747,17 @@
1663
1747
  "description": "Options for `noRestrictedGlobals` rule",
1664
1748
  "allOf": [{ "$ref": "#/definitions/RestrictedGlobalsOptions" }]
1665
1749
  },
1750
+ {
1751
+ "description": "Options for `noRestrictedImports` rule",
1752
+ "allOf": [{ "$ref": "#/definitions/RestrictedImportsOptions" }]
1753
+ },
1666
1754
  {
1667
1755
  "description": "Options for `useValidAriaRole` rule",
1668
1756
  "allOf": [{ "$ref": "#/definitions/ValidAriaRoleOptions" }]
1757
+ },
1758
+ {
1759
+ "description": "Options for `useSortedClasses` rule",
1760
+ "allOf": [{ "$ref": "#/definitions/UtilityClassSortingOptions" }]
1669
1761
  }
1670
1762
  ]
1671
1763
  },
@@ -1674,15 +1766,29 @@
1674
1766
  "RestrictedGlobalsOptions": {
1675
1767
  "description": "Options for the rule `noRestrictedGlobals`.",
1676
1768
  "type": "object",
1769
+ "required": ["deniedGlobals"],
1677
1770
  "properties": {
1678
1771
  "deniedGlobals": {
1679
1772
  "description": "A list of names that should trigger the rule",
1680
- "type": ["array", "null"],
1773
+ "type": "array",
1681
1774
  "items": { "type": "string" }
1682
1775
  }
1683
1776
  },
1684
1777
  "additionalProperties": false
1685
1778
  },
1779
+ "RestrictedImportsOptions": {
1780
+ "description": "Options for the rule `noRestrictedImports`.",
1781
+ "type": "object",
1782
+ "required": ["paths"],
1783
+ "properties": {
1784
+ "paths": {
1785
+ "description": "A list of names that should trigger the rule",
1786
+ "type": "object",
1787
+ "additionalProperties": { "type": "string" }
1788
+ }
1789
+ },
1790
+ "additionalProperties": false
1791
+ },
1686
1792
  "RuleConfiguration": {
1687
1793
  "anyOf": [
1688
1794
  { "$ref": "#/definitions/RulePlainConfiguration" },
@@ -2033,7 +2139,7 @@
2033
2139
  "type": ["boolean", "null"]
2034
2140
  },
2035
2141
  "noApproximativeNumericConstant": {
2036
- "description": "Usually, the definition in the standard library is more precise than what people come up with or the used constant exceeds the maximum precision of the number type.",
2142
+ "description": "Use standard constants instead of approximated literals.",
2037
2143
  "anyOf": [
2038
2144
  { "$ref": "#/definitions/RuleConfiguration" },
2039
2145
  { "type": "null" }
@@ -2373,14 +2479,27 @@
2373
2479
  }
2374
2480
  ]
2375
2481
  },
2376
- "ValidAriaRoleOptions": {
2482
+ "UtilityClassSortingOptions": {
2377
2483
  "type": "object",
2378
- "required": ["allowedInvalidRoles", "ignoreNonDom"],
2379
2484
  "properties": {
2380
- "allowedInvalidRoles": {
2381
- "type": "array",
2485
+ "attributes": {
2486
+ "description": "Additional attributes that will be sorted.",
2487
+ "type": ["array", "null"],
2382
2488
  "items": { "type": "string" }
2383
2489
  },
2490
+ "functions": {
2491
+ "description": "Names of the functions or tagged templates that will be sorted.",
2492
+ "type": ["array", "null"],
2493
+ "items": { "type": "string" }
2494
+ }
2495
+ },
2496
+ "additionalProperties": false
2497
+ },
2498
+ "ValidAriaRoleOptions": {
2499
+ "type": "object",
2500
+ "required": ["allowInvalidRoles", "ignoreNonDom"],
2501
+ "properties": {
2502
+ "allowInvalidRoles": { "type": "array", "items": { "type": "string" } },
2384
2503
  "ignoreNonDom": { "type": "boolean" }
2385
2504
  },
2386
2505
  "additionalProperties": false
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@biomejs/biome","version":"1.5.2","bin":"bin/biome","scripts":{"postinstall":"node scripts/postinstall.js"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"packages/@biomejs/biome"},"author":"Emanuele Stoppa","license":"MIT OR Apache-2.0","bugs":"https://github.com/biomejs/biome/issues","description":"Biome is a toolchain for the web: formatter, linter and more","files":["bin/biome","scripts/postinstall.js","configuration_schema.json","README.md","LICENSE-APACHE","LICENSE-MIT","ROME-LICENSE-MIT"],"keywords":["JavaScript","TypeScript","format","lint","toolchain","JSON"],"engines":{"node":">=14.*"},"funding":{"type":"opencollective","url":"https://opencollective.com/biome"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.5.2","@biomejs/cli-win32-arm64":"1.5.2","@biomejs/cli-darwin-x64":"1.5.2","@biomejs/cli-darwin-arm64":"1.5.2","@biomejs/cli-linux-x64":"1.5.2","@biomejs/cli-linux-arm64":"1.5.2","@biomejs/cli-linux-x64-musl":"1.5.2","@biomejs/cli-linux-arm64-musl":"1.5.2"}}
1
+ {"name":"@biomejs/biome","version":"1.5.3-nightly.69f9031","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.69f9031","@biomejs/cli-win32-arm64":"1.5.3-nightly.69f9031","@biomejs/cli-darwin-x64":"1.5.3-nightly.69f9031","@biomejs/cli-darwin-arm64":"1.5.3-nightly.69f9031","@biomejs/cli-linux-x64":"1.5.3-nightly.69f9031","@biomejs/cli-linux-arm64":"1.5.3-nightly.69f9031","@biomejs/cli-linux-x64-musl":"1.5.3-nightly.69f9031","@biomejs/cli-linux-arm64-musl":"1.5.3-nightly.69f9031"}}