@biomejs/biome 1.7.1 → 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.
@@ -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
- "jsx_runtime": {
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
- "organize_imports": {
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": ["Transparent"]
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": ["ReactClassic"]
1340
+ "enum": ["reactClassic"]
1341
1341
  }
1342
1342
  ]
1343
1343
  },
@@ -1552,10 +1552,59 @@
1552
1552
  { "type": "null" }
1553
1553
  ]
1554
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
+ },
1555
1576
  "recommended": {
1556
1577
  "description": "It enables the recommended rules for this group",
1557
1578
  "type": ["boolean", "null"]
1558
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
+ },
1559
1608
  "useImportRestrictions": {
1560
1609
  "description": "Disallows package private imports.",
1561
1610
  "anyOf": [
@@ -2178,7 +2227,7 @@
2178
2227
  ]
2179
2228
  },
2180
2229
  "useConst": {
2181
- "description": "Require const declarations for variables that are never reassigned after declared.",
2230
+ "description": "Require const declarations for variables that are only assigned once.",
2182
2231
  "anyOf": [
2183
2232
  { "$ref": "#/definitions/RuleConfiguration" },
2184
2233
  { "type": "null" }
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@biomejs/biome","version":"1.7.1","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.1","@biomejs/cli-win32-arm64":"1.7.1","@biomejs/cli-darwin-x64":"1.7.1","@biomejs/cli-darwin-arm64":"1.7.1","@biomejs/cli-linux-x64":"1.7.1","@biomejs/cli-linux-arm64":"1.7.1","@biomejs/cli-linux-x64-musl":"1.7.1","@biomejs/cli-linux-arm64-musl":"1.7.1"}}
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"}}