Skip to content

chore(lint): clean Biome findings, align rules with tsconfig#27

Merged
theagenticguy merged 1 commit into
mainfrom
chore/biome-cleanup
Apr 23, 2026
Merged

chore(lint): clean Biome findings, align rules with tsconfig#27
theagenticguy merged 1 commit into
mainfrom
chore/biome-cleanup

Conversation

@theagenticguy
Copy link
Copy Markdown
Owner

Summary

Brings the repo to 0 errors / 0 warnings / 0 infos from Biome. Three config changes + 4 small code fixes.

Why the 537 findings were noise, not signal

Before this PR:

Rule Count Reality
lint/complexity/useLiteralKeys 480 infos Biome wants record.key but the tsconfig has noPropertyAccessFromIndexSignature: true, which requires record["key"] on Record-typed index signatures. The two rules contradict each other. tsconfig wins.
lint/suspicious/noConsole 52 warnings All 52 live in packages/cli/src/commands/ where console.log is how CLI commands emit their primary output (verdict markdown, impact lists, etc.). Not debug leakage.
lint/style/useTemplate 4 infos Real small-win improvements. Fixed by hand.

Changes

biome.json

  1. lint/complexity/useLiteralKeys: off — resolves the tsconfig conflict, lets us drop 10 per-site biome-ignore suppression comments that were papering over it.
  2. overrides entry turning off lint/suspicious/noConsole for packages/cli/src/commands/**.
  3. $schema bumped from 2.4.02.4.12 to match the installed Biome.

Code

  • packages/embedder/src/onnx-embedder.ts — 2 concat → template literal fixes.
  • packages/ingestion/src/pipeline/phases/profile.test.ts — 2 concat → template literal fixes.
  • Dropped 10 now-unused // biome-ignore lint/complexity/useLiteralKeys comments across mcp/src/next-step-hints.ts + test, mcp/src/resources/repo-context.ts, sarif/src/enrich.ts, storage/src/meta.ts. Kept the load-bearing explanatory comment in storage/src/meta.ts that documents why bracket access is required (tsconfig setting) since that's still non-obvious to readers.

Test plan

  • pnpm exec biome check .0 errors / 0 warnings / 0 infos
  • pnpm -r build clean
  • pnpm -r exec tsc --noEmit clean
  • pnpm -r test952 pass / 0 fail
  • bash scripts/check-banned-strings.sh clean
  • CI: all jobs green on the PR

Brings the repo to zero Biome warnings / infos / errors. Three changes:

1. Disable `lint/complexity/useLiteralKeys` globally. It actively
   conflicts with the tsconfig's `noPropertyAccessFromIndexSignature:
   true` — Biome wants `record.key` while the TypeScript compiler
   requires `record["key"]` on Record-typed index signatures. tsconfig
   wins; Biome rule gets switched off. Drops 480 infos and lets us
   remove 10 per-site `biome-ignore` suppression comments that were
   papering over the conflict.

2. Override `noConsole: off` for `packages/cli/src/commands/**`. CLI
   commands print to stdout as a feature (verdict output, impact lists,
   etc.) — those aren't debug statements. Drops 52 warnings.

3. Hand-fix 4 `useTemplate` infos in onnx-embedder.ts and
   profile.test.ts (concatenation → template literals). Real small-win
   improvements.

Also bumped biome.json `$schema` reference from 2.4.0 → 2.4.12 to match
the installed Biome version.

Verified:
- `pnpm exec biome check .`: 0 errors, 0 warnings, 0 infos
- `pnpm -r build`: clean
- `pnpm -r exec tsc --noEmit`: clean
- `pnpm -r test`: 952 pass / 0 fail
- `bash scripts/check-banned-strings.sh`: clean
@theagenticguy theagenticguy merged commit 696b083 into main Apr 23, 2026
22 of 23 checks passed
@theagenticguy theagenticguy deleted the chore/biome-cleanup branch April 23, 2026 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant