fix(ignore): Migrate to Biome 2 (#791)

This commit is contained in:
Koen Kanters
2025-06-24 21:42:45 +02:00
committed by GitHub
parent 3099c53287
commit d94d6b9de7
25 changed files with 138 additions and 159 deletions

View File

@@ -5,13 +5,11 @@
*
*/
import type {ExtraMetas, RepoImageMeta} from "../src/types";
import {copyFileSync, existsSync, mkdirSync} from "node:fs";
import path from "node:path";
import {it} from "vitest";
import * as common from "../src/common";
import type {ExtraMetas, RepoImageMeta} from "../src/types";
export const IMAGE_V14_1 = "ZLinky_router_v14.ota";
export const IMAGE_V14_2 = "ZLinky_router_v14_limited.ota";

View File

@@ -1,18 +1,15 @@
import {existsSync, readFileSync, rmSync} from "node:fs";
import path from "node:path";
import type CoreApi from "@actions/core";
import type {Context} from "@actions/github/lib/context";
import type {Octokit} from "@octokit/rest";
import type {RepoImageMeta} from "../src/types";
import {existsSync, readFileSync, rmSync} from "node:fs";
import path from "node:path";
import {type MockInstance, afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi} from "vitest";
import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, type MockInstance, vi} from "vitest";
import * as common from "../src/common";
import {checkOtaPR} from "../src/ghw_check_ota_pr";
import type {RepoImageMeta} from "../src/types";
import {
BASE_IMAGES_TEST_DIR_PATH,
IMAGES_TEST_DIR,
getAdjustedContent,
IMAGE_INVALID,
IMAGE_V12_1,
IMAGE_V12_1_METAS,
@@ -25,8 +22,8 @@ import {
IMAGE_V14_2_COPY,
IMAGE_V14_2_MANUF_METAS,
IMAGE_V14_2_METAS,
IMAGES_TEST_DIR,
PREV_IMAGES_TEST_DIR_PATH,
getAdjustedContent,
useImage,
withExtraMetas,
} from "./data.test";

View File

@@ -1,12 +1,8 @@
import type CoreApi from "@actions/core";
import type {Context} from "@actions/github/lib/context";
import type {RepoImageMeta} from "../src/types";
import {copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync} from "node:fs";
import path from "node:path";
import {type MockInstance, afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi} from "vitest";
import type CoreApi from "@actions/core";
import type {Context} from "@actions/github/lib/context";
import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, type MockInstance, vi} from "vitest";
import * as common from "../src/common";
import {
NOT_IN_BASE_MANIFEST_IMAGES_DIR,
@@ -14,9 +10,11 @@ import {
NOT_IN_PREV_MANIFEST_IMAGES_DIR,
reProcessAllImages,
} from "../src/ghw_reprocess_all_images";
import type {RepoImageMeta} from "../src/types";
import {
BASE_IMAGES_TEST_DIR_PATH,
IMAGES_TEST_DIR,
getAdjustedContent,
getImageOriginalDirPath,
IMAGE_INVALID,
IMAGE_INVALID_METAS,
IMAGE_V12_1,
@@ -24,9 +22,8 @@ import {
IMAGE_V13_1_METAS,
IMAGE_V14_1,
IMAGE_V14_1_METAS,
IMAGES_TEST_DIR,
PREV_IMAGES_TEST_DIR_PATH,
getAdjustedContent,
getImageOriginalDirPath,
useImage,
withExtraMetas,
} from "./data.test";

View File

@@ -1,21 +1,18 @@
import {rmSync} from "node:fs";
import type CoreApi from "@actions/core";
import type {Context} from "@actions/github/lib/context";
import type {Octokit} from "@octokit/rest";
import type {RepoImageMeta} from "../src/types";
import {rmSync} from "node:fs";
import {type MockInstance, afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi} from "vitest";
import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, type MockInstance, vi} from "vitest";
import * as common from "../src/common";
import {updateManifests} from "../src/ghw_update_manifests";
import type {RepoImageMeta} from "../src/types";
import {
BASE_IMAGES_TEST_DIR_PATH,
getAdjustedContent,
IMAGE_V13_1,
IMAGE_V14_1,
IMAGE_V14_1_METAS,
PREV_IMAGES_TEST_DIR_PATH,
getAdjustedContent,
useImage,
withExtraMetas,
} from "./data.test";

View File

@@ -1,13 +1,12 @@
import type {RepoImageMeta} from "../src/types";
import {existsSync, mkdirSync, readFileSync, rmSync} from "node:fs";
import {type MockInstance, afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi} from "vitest";
import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, type MockInstance, vi} from "vitest";
import * as common from "../src/common";
import {ProcessFirmwareImageStatus, processFirmwareImage} from "../src/process_firmware_image";
import type {RepoImageMeta} from "../src/types";
import {
BASE_IMAGES_TEST_DIR_PATH,
IMAGES_TEST_DIR,
getAdjustedContent,
getImageOriginalDirPath,
IMAGE_INVALID,
IMAGE_TAR,
IMAGE_TAR_METAS,
@@ -17,9 +16,8 @@ import {
IMAGE_V13_1_METAS,
IMAGE_V14_1,
IMAGE_V14_1_METAS,
IMAGES_TEST_DIR,
PREV_IMAGES_TEST_DIR_PATH,
getAdjustedContent,
getImageOriginalDirPath,
useImage,
withExtraMetas,
} from "./data.test";

View File

@@ -5,5 +5,5 @@
"rootDir": "..",
"noEmit": true
},
"references": [{ "path": ".." }]
"references": [{"path": ".."}]
}