From 3fb60ee6496cbea16ce846c00977f7f7c0ca8ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=A9=98?= Date: Fri, 22 May 2026 02:09:18 +0000 Subject: [PATCH] chore: exclude legacy-packages and scripts from biome check - Add legacy-packages/ and scripts/ to biome ignore - Allow noDefaultExport in vitest.config.* and .d.ts - Allow console in cli.ts and setup.ts (CLI user output) - Fix unused imports in cas.ts and setup.ts --- biome.json | 14 +++++++++++++- packages/cli-workflow/src/commands/cas.ts | 2 +- packages/cli-workflow/src/commands/setup.ts | 3 +-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/biome.json b/biome.json index c0924b2..357082f 100644 --- a/biome.json +++ b/biome.json @@ -5,6 +5,8 @@ "**", "!**/dist", "!**/node_modules", + "!**/legacy-packages", + "!scripts", "!packages/workflow/workflow", "!xiaoju/scripts/bundle.ts" ] @@ -36,7 +38,7 @@ } }, { - "includes": ["**/*.d.ts"], + "includes": ["**/*.d.ts", "**/vitest.config.*"], "linter": { "rules": { "style": { @@ -44,6 +46,16 @@ } } } + }, + { + "includes": ["**/cli.ts", "**/setup.ts"], + "linter": { + "rules": { + "suspicious": { + "noConsole": "off" + } + } + } } ], "linter": { diff --git a/packages/cli-workflow/src/commands/cas.ts b/packages/cli-workflow/src/commands/cas.ts index f1a6e96..2bc7b58 100644 --- a/packages/cli-workflow/src/commands/cas.ts +++ b/packages/cli-workflow/src/commands/cas.ts @@ -1,7 +1,7 @@ import { readFileSync } from "node:fs"; import { join } from "node:path"; -import type { Hash, JSONSchema, Store } from "@uncaged/json-cas"; +import type { JSONSchema, Store } from "@uncaged/json-cas"; import { bootstrap, getSchema, refs, walk } from "@uncaged/json-cas"; import { createFsStore } from "@uncaged/json-cas-fs"; diff --git a/packages/cli-workflow/src/commands/setup.ts b/packages/cli-workflow/src/commands/setup.ts index 34d2e9a..0eeab20 100644 --- a/packages/cli-workflow/src/commands/setup.ts +++ b/packages/cli-workflow/src/commands/setup.ts @@ -1,6 +1,5 @@ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs"; -import { homedir } from "node:os"; -import { join, resolve } from "node:path"; +import { join } from "node:path"; import { stdin as input, stdout as output } from "node:process"; import { createInterface } from "node:readline/promises";