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
This commit is contained in:
2026-05-22 02:09:18 +00:00
parent e181f67a2d
commit 3fb60ee649
3 changed files with 15 additions and 4 deletions
+13 -1
View File
@@ -5,6 +5,8 @@
"**", "**",
"!**/dist", "!**/dist",
"!**/node_modules", "!**/node_modules",
"!**/legacy-packages",
"!scripts",
"!packages/workflow/workflow", "!packages/workflow/workflow",
"!xiaoju/scripts/bundle.ts" "!xiaoju/scripts/bundle.ts"
] ]
@@ -36,7 +38,7 @@
} }
}, },
{ {
"includes": ["**/*.d.ts"], "includes": ["**/*.d.ts", "**/vitest.config.*"],
"linter": { "linter": {
"rules": { "rules": {
"style": { "style": {
@@ -44,6 +46,16 @@
} }
} }
} }
},
{
"includes": ["**/cli.ts", "**/setup.ts"],
"linter": {
"rules": {
"suspicious": {
"noConsole": "off"
}
}
}
} }
], ],
"linter": { "linter": {
+1 -1
View File
@@ -1,7 +1,7 @@
import { readFileSync } from "node:fs"; import { readFileSync } from "node:fs";
import { join } from "node:path"; 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 { bootstrap, getSchema, refs, walk } from "@uncaged/json-cas";
import { createFsStore } from "@uncaged/json-cas-fs"; import { createFsStore } from "@uncaged/json-cas-fs";
+1 -2
View File
@@ -1,6 +1,5 @@
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs"; import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
import { homedir } from "node:os"; import { join } from "node:path";
import { join, resolve } from "node:path";
import { stdin as input, stdout as output } from "node:process"; import { stdin as input, stdout as output } from "node:process";
import { createInterface } from "node:readline/promises"; import { createInterface } from "node:readline/promises";