Skip to content

Migrate formatting to Biome#103

Merged
j178 merged 3 commits into
mainfrom
codex/biome-ci-and-cache-fixes
Mar 17, 2026
Merged

Migrate formatting to Biome#103
j178 merged 3 commits into
mainfrom
codex/biome-ci-and-cache-fixes

Conversation

@j178

@j178 j178 commented Mar 17, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings March 17, 2026 05:22
Comment thread .github/workflows/ci.yaml Fixed
Comment thread .github/workflows/ci.yaml Fixed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates repository formatting/linting from Prettier to Biome, updates CI to enforce the new checks, and applies the resulting formatting changes across source, tests, and scripts (including some minor process.env access cleanup in prek/cache handling).

Changes:

  • Add biome.json, replace Prettier with @biomejs/biome, and update npm scripts to run Biome in CI and locally.
  • Update CI workflow to run the action (“Prek”) and add a dedicated “Lint” job for Biome checks.
  • Apply Biome-driven formatting/organize-imports changes across src/, test/, and scripts/, plus simplify TS config include globs.

Reviewed changes

Copilot reviewed 14 out of 19 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
biome.json Introduces Biome configuration (formatting + lint recommended rules + file scoping).
package.json Replaces Prettier with Biome; updates/extends scripts (check-format, format).
package-lock.json Locks new Biome dependency set; removes Prettier.
.github/workflows/ci.yaml Adds Biome lint job and renames/keeps action run job; minor quoting updates.
tsconfig.json Simplifies include to directory form; formatting.
tsconfig.test.json Simplifies include to directory form; formatting.
src/cache.ts Formatting + process.env access changes in cache key construction.
src/install.ts Formatting + import ordering; no functional intent apparent.
src/manifest.ts Formatting + import ordering; wraps long strings/throws for style.
src/prek.ts Formatting + process.env access updates in cache-dir fallback logic.
src/inputs.ts Formatting (imports/object trailing commas).
src/main.ts Formatting (imports).
src/post.ts Formatting (imports).
src/types.ts Formatting (type spacing).
scripts/update-known-versions.mjs Formatting and minor expression wrapping; no functional intent apparent.
test/cache.test.ts Formatting + process.env access changes consistent with source updates.
test/install.test.ts Formatting (imports/object literals).
test/manifest.test.ts Formatting (imports/object literals/assert formatting).
test/prek.test.ts Formatting + process.env access changes consistent with source updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/cache.ts
Comment thread .github/workflows/ci.yaml Fixed
Comment thread .github/workflows/ci.yaml Fixed
@j178 j178 force-pushed the codex/biome-ci-and-cache-fixes branch from ddacf48 to 46532d3 Compare March 17, 2026 05:43
@j178 j178 force-pushed the codex/biome-ci-and-cache-fixes branch from 46532d3 to 7612333 Compare March 17, 2026 05:43
@j178 j178 changed the title Migrate formatting to Biome and tighten prek handling Migrate formatting to Biome Mar 17, 2026
@j178 j178 merged commit 594f2e4 into main Mar 17, 2026
9 checks passed
@j178 j178 deleted the codex/biome-ci-and-cache-fixes branch March 17, 2026 05:45
@shaanmajid

Copy link
Copy Markdown
Collaborator

Nice :)

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.

4 participants