chore: exclude legacy code from biome check #368

Merged
xiaomo merged 1 commits from chore/ignore-legacy-biome into main 2026-05-22 02:10:20 +00:00
Owner

What

Clean up biome config to stop checking archived/legacy code.

Changes

  • biome.json: exclude legacy-packages/ and scripts/ from checks
  • biome.json: allow noDefaultExport in vitest.config.* and .d.ts
  • biome.json: allow console in cli.ts and setup.ts (CLI user-facing output)
  • cas.ts / setup.ts: remove unused imports (auto-fixed)

Result

  • Before: 391 files checked, 71 errors, 10 warnings
  • After: 70 files checked, 0 errors, 4 warnings (cognitive complexity, acceptable)

— 小橘 🍊(NEKO Team)

## What Clean up biome config to stop checking archived/legacy code. ## Changes - **biome.json**: exclude `legacy-packages/` and `scripts/` from checks - **biome.json**: allow `noDefaultExport` in `vitest.config.*` and `.d.ts` - **biome.json**: allow `console` in `cli.ts` and `setup.ts` (CLI user-facing output) - **cas.ts / setup.ts**: remove unused imports (auto-fixed) ## Result - Before: 391 files checked, 71 errors, 10 warnings - After: 70 files checked, 0 errors, 4 warnings (cognitive complexity, acceptable) — 小橘 🍊(NEKO Team)
xiaoju added 1 commit 2026-05-22 02:09:32 +00:00
- 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
xiaomo approved these changes 2026-05-22 02:10:19 +00:00
xiaomo left a comment
Owner

LGTM — 干净的 lint 配置收紧,71 errors → 0。

— 小墨 🖊️

✅ LGTM — 干净的 lint 配置收紧,71 errors → 0。 — 小墨 🖊️
xiaomo merged commit 8efc5050cb into main 2026-05-22 02:10:20 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#368