@biomejs/biome 1.7.0 → 1.7.2
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 +3 -0
- package/configuration_schema.json +103 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -131,6 +131,9 @@ We use [Polar.sh](https://polar.sh/biomejs) to up-vote and promote specific feat
|
|
|
131
131
|
<td align="center" valign="middle">
|
|
132
132
|
<a href="https://nanabit.dev/" target="_blank"><img src="https://images.opencollective.com/nanabit/d15fd98/logo/256.png?height=80" width="80"></a>
|
|
133
133
|
</td>
|
|
134
|
+
<td align="center" valign="middle">
|
|
135
|
+
<a href="https://vital.io/" target="_blank"><img src="https://avatars.githubusercontent.com/u/25357309?s=200" width="80"></a>
|
|
136
|
+
</td>
|
|
134
137
|
</tr>
|
|
135
138
|
</tbody>
|
|
136
139
|
</table>
|
|
@@ -1128,11 +1128,11 @@
|
|
|
1128
1128
|
"description": "A list of global bindings that should be ignored by the analyzers\n\nIf defined here, they should not emit diagnostics.",
|
|
1129
1129
|
"anyOf": [{ "$ref": "#/definitions/StringSet" }, { "type": "null" }]
|
|
1130
1130
|
},
|
|
1131
|
-
"
|
|
1131
|
+
"jsxRuntime": {
|
|
1132
1132
|
"description": "Indicates the type of runtime or transformation used for interpreting JSX.",
|
|
1133
1133
|
"anyOf": [{ "$ref": "#/definitions/JsxRuntime" }, { "type": "null" }]
|
|
1134
1134
|
},
|
|
1135
|
-
"
|
|
1135
|
+
"organizeImports": {
|
|
1136
1136
|
"anyOf": [
|
|
1137
1137
|
{ "$ref": "#/definitions/JavascriptOrganizeImports" },
|
|
1138
1138
|
{ "type": "null" }
|
|
@@ -1332,12 +1332,12 @@
|
|
|
1332
1332
|
{
|
|
1333
1333
|
"description": "Indicates a modern or native JSX environment, that doesn't require special handling by Biome.",
|
|
1334
1334
|
"type": "string",
|
|
1335
|
-
"enum": ["
|
|
1335
|
+
"enum": ["transparent"]
|
|
1336
1336
|
},
|
|
1337
1337
|
{
|
|
1338
1338
|
"description": "Indicates a classic React environment that requires the `React` import.\n\nCorresponds to the `react` value for the `jsx` option in TypeScript's `tsconfig.json`.\n\nThis option should only be necessary if you cannot upgrade to a React version that supports the new JSX runtime. For more information about the old vs. new JSX runtime, please see: <https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html>",
|
|
1339
1339
|
"type": "string",
|
|
1340
|
-
"enum": ["
|
|
1340
|
+
"enum": ["reactClassic"]
|
|
1341
1341
|
}
|
|
1342
1342
|
]
|
|
1343
1343
|
},
|
|
@@ -1413,6 +1413,18 @@
|
|
|
1413
1413
|
},
|
|
1414
1414
|
"additionalProperties": false
|
|
1415
1415
|
},
|
|
1416
|
+
"NoCssEmptyBlockConfiguration": {
|
|
1417
|
+
"anyOf": [
|
|
1418
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1419
|
+
{ "$ref": "#/definitions/RuleWithNoCssEmptyBlockOptions" }
|
|
1420
|
+
]
|
|
1421
|
+
},
|
|
1422
|
+
"NoCssEmptyBlockOptions": {
|
|
1423
|
+
"type": "object",
|
|
1424
|
+
"required": ["allowComments"],
|
|
1425
|
+
"properties": { "allowComments": { "type": "boolean" } },
|
|
1426
|
+
"additionalProperties": false
|
|
1427
|
+
},
|
|
1416
1428
|
"Nursery": {
|
|
1417
1429
|
"description": "A list of rules that belong to this group",
|
|
1418
1430
|
"type": "object",
|
|
@@ -1442,6 +1454,13 @@
|
|
|
1442
1454
|
{ "type": "null" }
|
|
1443
1455
|
]
|
|
1444
1456
|
},
|
|
1457
|
+
"noCssEmptyBlock": {
|
|
1458
|
+
"description": "Disallow CSS empty blocks.",
|
|
1459
|
+
"anyOf": [
|
|
1460
|
+
{ "$ref": "#/definitions/NoCssEmptyBlockConfiguration" },
|
|
1461
|
+
{ "type": "null" }
|
|
1462
|
+
]
|
|
1463
|
+
},
|
|
1445
1464
|
"noDoneCallback": {
|
|
1446
1465
|
"description": "Disallow using a callback in asynchronous tests and hooks.",
|
|
1447
1466
|
"anyOf": [
|
|
@@ -1470,6 +1489,13 @@
|
|
|
1470
1489
|
{ "type": "null" }
|
|
1471
1490
|
]
|
|
1472
1491
|
},
|
|
1492
|
+
"noDuplicateSelectorsKeyframeBlock": {
|
|
1493
|
+
"description": "Disallow duplicate selectors within keyframe blocks.",
|
|
1494
|
+
"anyOf": [
|
|
1495
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1496
|
+
{ "type": "null" }
|
|
1497
|
+
]
|
|
1498
|
+
},
|
|
1473
1499
|
"noEvolvingAny": {
|
|
1474
1500
|
"description": "Disallow variables from evolving into any type through reassignments.",
|
|
1475
1501
|
"anyOf": [
|
|
@@ -1484,6 +1510,13 @@
|
|
|
1484
1510
|
{ "type": "null" }
|
|
1485
1511
|
]
|
|
1486
1512
|
},
|
|
1513
|
+
"noImportantInKeyframe": {
|
|
1514
|
+
"description": "Disallow invalid !important within keyframe declarations",
|
|
1515
|
+
"anyOf": [
|
|
1516
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1517
|
+
{ "type": "null" }
|
|
1518
|
+
]
|
|
1519
|
+
},
|
|
1487
1520
|
"noMisplacedAssertion": {
|
|
1488
1521
|
"description": "Checks that the assertion function, for example expect, is placed inside an it() function call.",
|
|
1489
1522
|
"anyOf": [
|
|
@@ -1498,6 +1531,13 @@
|
|
|
1498
1531
|
{ "type": "null" }
|
|
1499
1532
|
]
|
|
1500
1533
|
},
|
|
1534
|
+
"noReactSpecificProps": {
|
|
1535
|
+
"description": "Prevents React-specific JSX properties from being used.",
|
|
1536
|
+
"anyOf": [
|
|
1537
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1538
|
+
{ "type": "null" }
|
|
1539
|
+
]
|
|
1540
|
+
},
|
|
1501
1541
|
"noRestrictedImports": {
|
|
1502
1542
|
"description": "Disallow specified modules when loaded by import or require.",
|
|
1503
1543
|
"anyOf": [
|
|
@@ -1512,10 +1552,59 @@
|
|
|
1512
1552
|
{ "type": "null" }
|
|
1513
1553
|
]
|
|
1514
1554
|
},
|
|
1555
|
+
"noUnknownFunction": {
|
|
1556
|
+
"description": "Disallow unknown CSS value functions.",
|
|
1557
|
+
"anyOf": [
|
|
1558
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1559
|
+
{ "type": "null" }
|
|
1560
|
+
]
|
|
1561
|
+
},
|
|
1562
|
+
"noUnknownUnit": {
|
|
1563
|
+
"description": "Disallow unknown CSS units.",
|
|
1564
|
+
"anyOf": [
|
|
1565
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1566
|
+
{ "type": "null" }
|
|
1567
|
+
]
|
|
1568
|
+
},
|
|
1569
|
+
"noUselessUndefinedInitialization": {
|
|
1570
|
+
"description": "Disallow initializing variables to undefined.",
|
|
1571
|
+
"anyOf": [
|
|
1572
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1573
|
+
{ "type": "null" }
|
|
1574
|
+
]
|
|
1575
|
+
},
|
|
1515
1576
|
"recommended": {
|
|
1516
1577
|
"description": "It enables the recommended rules for this group",
|
|
1517
1578
|
"type": ["boolean", "null"]
|
|
1518
1579
|
},
|
|
1580
|
+
"useArrayLiterals": {
|
|
1581
|
+
"description": "Disallow Array constructors.",
|
|
1582
|
+
"anyOf": [
|
|
1583
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1584
|
+
{ "type": "null" }
|
|
1585
|
+
]
|
|
1586
|
+
},
|
|
1587
|
+
"useConsistentBuiltinInstatiation": {
|
|
1588
|
+
"description": "Enforce the use of new for all builtins, except String, Number, Boolean, Symbol and BigInt.",
|
|
1589
|
+
"anyOf": [
|
|
1590
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1591
|
+
{ "type": "null" }
|
|
1592
|
+
]
|
|
1593
|
+
},
|
|
1594
|
+
"useDefaultSwitchClause": {
|
|
1595
|
+
"description": "Require the default clause in switch statements.",
|
|
1596
|
+
"anyOf": [
|
|
1597
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1598
|
+
{ "type": "null" }
|
|
1599
|
+
]
|
|
1600
|
+
},
|
|
1601
|
+
"useGenericFontNames": {
|
|
1602
|
+
"description": "Disallow a missing generic family keyword within font families.",
|
|
1603
|
+
"anyOf": [
|
|
1604
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1605
|
+
{ "type": "null" }
|
|
1606
|
+
]
|
|
1607
|
+
},
|
|
1519
1608
|
"useImportRestrictions": {
|
|
1520
1609
|
"description": "Disallows package private imports.",
|
|
1521
1610
|
"anyOf": [
|
|
@@ -1833,6 +1922,15 @@
|
|
|
1833
1922
|
},
|
|
1834
1923
|
"additionalProperties": false
|
|
1835
1924
|
},
|
|
1925
|
+
"RuleWithNoCssEmptyBlockOptions": {
|
|
1926
|
+
"type": "object",
|
|
1927
|
+
"required": ["level", "options"],
|
|
1928
|
+
"properties": {
|
|
1929
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1930
|
+
"options": { "$ref": "#/definitions/NoCssEmptyBlockOptions" }
|
|
1931
|
+
},
|
|
1932
|
+
"additionalProperties": false
|
|
1933
|
+
},
|
|
1836
1934
|
"RuleWithNoOptions": {
|
|
1837
1935
|
"type": "object",
|
|
1838
1936
|
"required": ["level"],
|
|
@@ -2129,7 +2227,7 @@
|
|
|
2129
2227
|
]
|
|
2130
2228
|
},
|
|
2131
2229
|
"useConst": {
|
|
2132
|
-
"description": "Require const declarations for variables that are
|
|
2230
|
+
"description": "Require const declarations for variables that are only assigned once.",
|
|
2133
2231
|
"anyOf": [
|
|
2134
2232
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2135
2233
|
{ "type": "null" }
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@biomejs/biome","version":"1.7.
|
|
1
|
+
{"name":"@biomejs/biome","version":"1.7.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.21.3"},"funding":{"type":"opencollective","url":"https://opencollective.com/biome"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.7.2","@biomejs/cli-win32-arm64":"1.7.2","@biomejs/cli-darwin-x64":"1.7.2","@biomejs/cli-darwin-arm64":"1.7.2","@biomejs/cli-linux-x64":"1.7.2","@biomejs/cli-linux-arm64":"1.7.2","@biomejs/cli-linux-x64-musl":"1.7.2","@biomejs/cli-linux-arm64-musl":"1.7.2"}}
|