Skip to content

chore: migrate linting and formatting to Biome#1939

Open
jbeckwith-oai wants to merge 1 commit into
mainfrom
codex/biome-migration
Open

chore: migrate linting and formatting to Biome#1939
jbeckwith-oai wants to merge 1 commit into
mainfrom
codex/biome-migration

Conversation

@jbeckwith-oai

Copy link
Copy Markdown
Contributor

Summary

Migrates the repository from ESLint/Prettier to Biome 2.4.16 and aligns the tooling with the new pnpm setup on main.

  • Adds biome.jsonc with comments for follow-up import ordering, tabs migration, and ecosystem-test formatting.
  • Replaces the old lint/format scripts with pnpm check and pnpm fix.
  • Removes ESLint/Prettier config, dependencies, and yarn.lock.
  • Reworks the JSR README conversion script to use the TypeScript compiler API instead of @typescript-eslint/*.
  • Keeps import organization disabled for now to reduce migration churn.

Validation

  • pnpm install --frozen-lockfile
  • pnpm fix
  • focused convert-jsr-readme.cjs fixture/idempotence/real README assertions
  • ./scripts/build-deno
  • pnpm check
  • DETECT_BREAKING_CHANGES_COMPAT=1 pnpm check
  • pnpm test
  • git diff --check

@jbeckwith-oai jbeckwith-oai force-pushed the codex/biome-migration branch from e122465 to 65668a1 Compare June 14, 2026 16:37
@jbeckwith-oai jbeckwith-oai requested a review from HAYDEN-OAI June 14, 2026 16:37
@jbeckwith-oai jbeckwith-oai changed the title [codex] migrate linting and formatting to Biome chore: migrate linting and formatting to Biome Jun 14, 2026
@jbeckwith-oai jbeckwith-oai marked this pull request as ready for review June 14, 2026 16:54
@jbeckwith-oai jbeckwith-oai requested a review from a team as a code owner June 14, 2026 16:54

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 65668a1b06

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread biome.jsonc
"$schema": "https://biomejs.dev/schemas/2.4.16/schema.json",
"files": {
"includes": [
"**",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Ignore unknown files in Biome checks

When pnpm check runs, scripts/check invokes biome check ., so this broad ** include makes Biome handle repository files it cannot parse, such as extensionless bash scripts like scripts/bootstrap and the YAML workflow files. Biome's CLI option for this case is --files-ignore-unknown/files.ignoreUnknown, and the config reference says that option defaults to false; without enabling it or narrowing the globs to supported file types, CI/local checks can fail on unknown-file diagnostics before reaching the build/type checks.

Useful? React with 👍 / 👎.

Comment thread package.json
"test": "./scripts/test",
"build": "./scripts/build",
"prepublishOnly": "echo 'to publish, run pnpm build && (cd dist; npm publish)' && exit 1",
"format": "./scripts/format",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we keep entrypoints for:

  • ./scripts/format
  • ./scripts/lint
  • as well as similarly in package.json here?

A lot of scripts/skills depend on those

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.

2 participants