Skip to content

Re-do biome --write --unsafe style sweep as a standalone PR #1002

@srid

Description

@srid

Context

Commit 0a2a0feb (chore: biome --write --unsafe across the repo + two manual fixups) landed inside the architecture-ralph branch (PR #998) as "cycle 17" of the loop. It's a 100-file style sweep: noUnusedImports, useImportType, useOptionalChain. It is not architecture work — it's noise inside a PR that is otherwise about volatility-based decomposition and framework extraction.

Mixing the style sweep into the architecture PR makes review harder. Two of biome's unsafe rewrites also narrowed return types and needed manual ?? false / ?? null patches — visible in the commit but harder to spot when reading 100 files of formatting changes.

What to do

Re-do the biome cleanup as its own dedicated PR off master (or whatever the relevant base is after #998 merges). Scope:

  • biome check . --write --unsafe at the current master HEAD.
  • Verify the two known unsafe-rewrite traps (or any new ones biome surfaces):
    • packages/integrations/codex/src/transcript.ts?? false after optional-chain collapse if the function's return type is bare boolean.
    • packages/client/src/canvas/dock/WorkspaceGrid.tsx?? null after optional-chain collapse if the function's return type is T | null.
  • Run just check + just test-unit + just smoke before push.
  • One commit, scoped title (e.g. chore: biome --write --unsafe), no architecture changes interleaved.

Why this didn't get reverted out of #998

A direct git revert 0a2a0feb against the post-#998 tree produces content conflicts: the cycle-17 changes have been further modified by 10 subsequent commits (renames, the master merge, the @kolu/solid-xterm@0.2 reshape that rewrote Terminal.tsx). The cleanest revert path requires un-doing legitimate later work too, which would be worse than the original mixing.

#998's description flags 0a2a0feb as the style commit so reviewers can skip it; this issue tracks doing it properly afterwards.

Acceptance

  • Single-commit PR off master doing the biome sweep.
  • CI green (just check, just test-unit, just smoke).
  • PR title says it's a chore, not architecture.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions