@biomejs/biome 1.7.1 → 1.7.3
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 +82 -5
- package/package.json +1 -1
|
@@ -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
|
},
|
|
@@ -1468,6 +1468,13 @@
|
|
|
1468
1468
|
{ "type": "null" }
|
|
1469
1469
|
]
|
|
1470
1470
|
},
|
|
1471
|
+
"noDuplicateAtImportRules": {
|
|
1472
|
+
"description": "Disallow duplicate @import rules.",
|
|
1473
|
+
"anyOf": [
|
|
1474
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1475
|
+
{ "type": "null" }
|
|
1476
|
+
]
|
|
1477
|
+
},
|
|
1471
1478
|
"noDuplicateElseIf": {
|
|
1472
1479
|
"description": "Disallow duplicate conditions in if-else-if chains",
|
|
1473
1480
|
"anyOf": [
|
|
@@ -1552,10 +1559,80 @@
|
|
|
1552
1559
|
{ "type": "null" }
|
|
1553
1560
|
]
|
|
1554
1561
|
},
|
|
1562
|
+
"noUnknownFunction": {
|
|
1563
|
+
"description": "Disallow unknown CSS value functions.",
|
|
1564
|
+
"anyOf": [
|
|
1565
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1566
|
+
{ "type": "null" }
|
|
1567
|
+
]
|
|
1568
|
+
},
|
|
1569
|
+
"noUnknownSelectorPseudoElement": {
|
|
1570
|
+
"description": "Disallow unknown pseudo-element selectors.",
|
|
1571
|
+
"anyOf": [
|
|
1572
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1573
|
+
{ "type": "null" }
|
|
1574
|
+
]
|
|
1575
|
+
},
|
|
1576
|
+
"noUnknownUnit": {
|
|
1577
|
+
"description": "Disallow unknown CSS units.",
|
|
1578
|
+
"anyOf": [
|
|
1579
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1580
|
+
{ "type": "null" }
|
|
1581
|
+
]
|
|
1582
|
+
},
|
|
1583
|
+
"noUnmatchableAnbSelector": {
|
|
1584
|
+
"description": "Disallow unmatchable An+B selectors.",
|
|
1585
|
+
"anyOf": [
|
|
1586
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1587
|
+
{ "type": "null" }
|
|
1588
|
+
]
|
|
1589
|
+
},
|
|
1590
|
+
"noUselessUndefinedInitialization": {
|
|
1591
|
+
"description": "Disallow initializing variables to undefined.",
|
|
1592
|
+
"anyOf": [
|
|
1593
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1594
|
+
{ "type": "null" }
|
|
1595
|
+
]
|
|
1596
|
+
},
|
|
1555
1597
|
"recommended": {
|
|
1556
1598
|
"description": "It enables the recommended rules for this group",
|
|
1557
1599
|
"type": ["boolean", "null"]
|
|
1558
1600
|
},
|
|
1601
|
+
"useArrayLiterals": {
|
|
1602
|
+
"description": "Disallow Array constructors.",
|
|
1603
|
+
"anyOf": [
|
|
1604
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1605
|
+
{ "type": "null" }
|
|
1606
|
+
]
|
|
1607
|
+
},
|
|
1608
|
+
"useConsistentBuiltinInstantiation": {
|
|
1609
|
+
"description": "Enforce the use of new for all builtins, except String, Number, Boolean, Symbol and BigInt.",
|
|
1610
|
+
"anyOf": [
|
|
1611
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1612
|
+
{ "type": "null" }
|
|
1613
|
+
]
|
|
1614
|
+
},
|
|
1615
|
+
"useDefaultSwitchClause": {
|
|
1616
|
+
"description": "Require the default clause in switch statements.",
|
|
1617
|
+
"anyOf": [
|
|
1618
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1619
|
+
{ "type": "null" }
|
|
1620
|
+
]
|
|
1621
|
+
},
|
|
1622
|
+
"useExplicitLengthCheck": {
|
|
1623
|
+
"description": "Enforce explicitly comparing the length, size, byteLength or byteOffset property of a value.",
|
|
1624
|
+
"anyOf": [
|
|
1625
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1626
|
+
{ "type": "null" }
|
|
1627
|
+
]
|
|
1628
|
+
},
|
|
1629
|
+
"useGenericFontNames": {
|
|
1630
|
+
"description": "Disallow a missing generic family keyword within font families.",
|
|
1631
|
+
"anyOf": [
|
|
1632
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1633
|
+
{ "type": "null" }
|
|
1634
|
+
]
|
|
1635
|
+
},
|
|
1559
1636
|
"useImportRestrictions": {
|
|
1560
1637
|
"description": "Disallows package private imports.",
|
|
1561
1638
|
"anyOf": [
|
|
@@ -2178,7 +2255,7 @@
|
|
|
2178
2255
|
]
|
|
2179
2256
|
},
|
|
2180
2257
|
"useConst": {
|
|
2181
|
-
"description": "Require const declarations for variables that are
|
|
2258
|
+
"description": "Require const declarations for variables that are only assigned once.",
|
|
2182
2259
|
"anyOf": [
|
|
2183
2260
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2184
2261
|
{ "type": "null" }
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@biomejs/biome","version":"1.7.
|
|
1
|
+
{"name":"@biomejs/biome","version":"1.7.3","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.3","@biomejs/cli-win32-arm64":"1.7.3","@biomejs/cli-darwin-x64":"1.7.3","@biomejs/cli-darwin-arm64":"1.7.3","@biomejs/cli-linux-x64":"1.7.3","@biomejs/cli-linux-arm64":"1.7.3","@biomejs/cli-linux-x64-musl":"1.7.3","@biomejs/cli-linux-arm64-musl":"1.7.3"}}
|