@biomejs/biome 1.6.0 → 1.6.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.
@@ -915,7 +915,7 @@
915
915
  ]
916
916
  },
917
917
  "FilenameCase": {
918
- "description": "Supported cases for TypeScript `enum` member names.",
918
+ "description": "Supported cases for file names.",
919
919
  "oneOf": [
920
920
  { "description": "camelCase", "type": "string", "enum": ["camelCase"] },
921
921
  {
@@ -956,7 +956,7 @@
956
956
  "type": "object",
957
957
  "properties": {
958
958
  "filenameCases": {
959
- "description": "Allowed cases for _TypeScript_ `enum` member names.",
959
+ "description": "Allowed cases for file names.",
960
960
  "allOf": [{ "$ref": "#/definitions/FilenameCases" }]
961
961
  },
962
962
  "requireAscii": {
@@ -1388,6 +1388,13 @@
1388
1388
  { "type": "null" }
1389
1389
  ]
1390
1390
  },
1391
+ "noColorInvalidHex": {
1392
+ "description": "Succinct description of the rule.",
1393
+ "anyOf": [
1394
+ { "$ref": "#/definitions/RuleConfiguration" },
1395
+ { "type": "null" }
1396
+ ]
1397
+ },
1391
1398
  "noConsole": {
1392
1399
  "description": "Disallow the use of console.",
1393
1400
  "anyOf": [
@@ -1395,6 +1402,20 @@
1395
1402
  { "type": "null" }
1396
1403
  ]
1397
1404
  },
1405
+ "noDoneCallback": {
1406
+ "description": "Disallow using a callback in asynchronous tests and hooks.",
1407
+ "anyOf": [
1408
+ { "$ref": "#/definitions/RuleConfiguration" },
1409
+ { "type": "null" }
1410
+ ]
1411
+ },
1412
+ "noDuplicateElseIf": {
1413
+ "description": "Disallow duplicate conditions in if-else-if chains",
1414
+ "anyOf": [
1415
+ { "$ref": "#/definitions/RuleConfiguration" },
1416
+ { "type": "null" }
1417
+ ]
1418
+ },
1398
1419
  "noDuplicateJsonKeys": {
1399
1420
  "description": "Disallow two keys with the same name inside a JSON object.",
1400
1421
  "anyOf": [
@@ -2651,12 +2672,12 @@
2651
2672
  "TrailingCommas": {
2652
2673
  "oneOf": [
2653
2674
  {
2654
- "description": "The formatter will remove the trailing comma",
2675
+ "description": "The formatter will remove the trailing commas",
2655
2676
  "type": "string",
2656
2677
  "enum": ["none"]
2657
2678
  },
2658
2679
  {
2659
- "description": "The trailing comma is allowed and advised",
2680
+ "description": "The trailing commas are allowed and advised",
2660
2681
  "type": "string",
2661
2682
  "enum": ["all"]
2662
2683
  }
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@biomejs/biome","version":"1.6.0","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.6.0","@biomejs/cli-win32-arm64":"1.6.0","@biomejs/cli-darwin-x64":"1.6.0","@biomejs/cli-darwin-arm64":"1.6.0","@biomejs/cli-linux-x64":"1.6.0","@biomejs/cli-linux-arm64":"1.6.0","@biomejs/cli-linux-x64-musl":"1.6.0","@biomejs/cli-linux-arm64-musl":"1.6.0"}}
1
+ {"name":"@biomejs/biome","version":"1.6.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.6.2","@biomejs/cli-win32-arm64":"1.6.2","@biomejs/cli-darwin-x64":"1.6.2","@biomejs/cli-darwin-arm64":"1.6.2","@biomejs/cli-linux-x64":"1.6.2","@biomejs/cli-linux-arm64":"1.6.2","@biomejs/cli-linux-x64-musl":"1.6.2","@biomejs/cli-linux-arm64-musl":"1.6.2"}}
@@ -1,11 +1,12 @@
1
1
  const { platform, arch } = process;
2
+ // biome-ignore lint/style/useNodejsImportProtocol: would be a breaking change, consider bumping node version next major version
2
3
  const { execSync } = require("child_process");
3
4
 
4
5
  function isMusl() {
5
6
  let stderr;
6
7
  try {
7
8
  stderr = execSync("ldd --version", {
8
- stdio: ['pipe', 'pipe', 'pipe']
9
+ stdio: ["pipe", "pipe", "pipe"],
9
10
  });
10
11
  } catch (err) {
11
12
  stderr = err.stderr;
@@ -46,13 +47,13 @@ if (binName) {
46
47
  binPath = require.resolve(binName);
47
48
  } catch {
48
49
  console.warn(
49
- `The Biome CLI postinstall script failed to resolve the binary file "${binName}". Running Biome from the npm package will probably not work correctly.`
50
+ `The Biome CLI postinstall script failed to resolve the binary file "${binName}". Running Biome from the npm package will probably not work correctly.`,
50
51
  );
51
52
  }
52
53
  } else {
53
54
  console.warn(
54
55
  "The Biome CLI package doesn't ship with prebuilt binaries for your platform yet. " +
55
56
  "You can still use the CLI by cloning the biomejs/biome repo from GitHub, " +
56
- "and follow the instructions there to build the CLI for your platform."
57
+ "and follow the instructions there to build the CLI for your platform.",
57
58
  );
58
59
  }