biome-to-oxc 3.0.0 → 3.0.1

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.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as readJsonFile, n as DefaultReporter, r as findClosestPackageJson, t as migrate } from "../src-CUWW9YZ_.mjs";
2
+ import { i as readJsonFile, n as DefaultReporter, r as findClosestPackageJson, t as migrate } from "../src-C66EI3xm.mjs";
3
3
  import { realpath } from "node:fs/promises";
4
4
  import { dirname } from "node:path";
5
5
  import { fileURLToPath } from "node:url";
@@ -1,2 +1,2 @@
1
- import { t as migrate } from "../src-CUWW9YZ_.mjs";
1
+ import { t as migrate } from "../src-C66EI3xm.mjs";
2
2
  export { migrate };
@@ -1467,6 +1467,7 @@ const BIOME_TO_OXLINT_RULE_MAP = {
1467
1467
  noExtraBooleanCast: "no-extra-boolean-cast",
1468
1468
  noExtraNonNullAssertion: "typescript/no-extra-non-null-assertion",
1469
1469
  noFallthroughSwitchClause: "no-fallthrough",
1470
+ noFlatMapIdentity: "unicorn/prefer-array-flat",
1470
1471
  noFloatingPromises: "typescript/no-floating-promises",
1471
1472
  noFocusedTests: ["jest/no-focused-tests", "vitest/no-focused-tests"],
1472
1473
  noForEach: "unicorn/no-array-for-each",
@@ -1809,6 +1810,10 @@ function mapBiomeRuleOptionsToOxlintSeverity(biomeName, severity, biomeSeverity,
1809
1810
  const { words } = options;
1810
1811
  return Array.isArray(words) && words.every((value) => typeof value === "string") ? [severity, { words }] : severity;
1811
1812
  }
1813
+ if (biomeName === "noConsole") {
1814
+ const { allow } = options;
1815
+ return Array.isArray(allow) && allow.every((value) => typeof value === "string") ? [severity, { allow }] : severity;
1816
+ }
1812
1817
  if (biomeName === "noEmptySource") {
1813
1818
  if (options.allowComments === true) reporter.loss("Biome rule noEmptySource option \"allowComments\" is not supported by Oxlint unicorn/no-empty-file and was not migrated.");
1814
1819
  return severity;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biome-to-oxc",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Migrate from Biome to Oxc ecosystem (oxlint + oxfmt + oxlint-tsgolint)",
5
5
  "keywords": [
6
6
  "biome",