Skip to content

chore(biome): use the recommended preset and run check in CI - #468

Merged
JP-Ellis merged 3 commits into
mainfrom
fix/biome-config
Nov 24, 2026
Merged

JP-Ellis merged 3 commits into
mainfrom
fix/biome-config

Conversation

@YOU54F

@YOU54F YOU54F commented Nov 24, 2026

Copy link
Copy Markdown
Member

npm run check has been failing on main for a while. We had every rule group set to "error", which also opts into every new rule biome adds, so each bump brought in more (React Native, Solid and Qwik rules on a library that uses none of them).

This moves us onto preset: "recommended", same as pact-js, pact-js-core and jest-pact:

  • drops the rule overrides and the biome-ignore comments that were only there for non-recommended rules
  • formats the markdown and sorts a couple of export lists
  • excludes CHANGELOG.md, since git-cliff owns it
  • bumps the react example's biome to 2.6.8 so it understands preset
  • adds a lint job to the Test workflow running npm run check

Checked locally: check, type-check, dist:ci, and the example's biome check and unit tests.

Every rule group was set to "error", which opts into every rule biome
ships, including new ones each release. On 2.6.x that pulled in React
Native, Solid and Qwik rules and left `biome check` with 64 errors.

Move to `preset: "recommended"` (and the recommended test/react domains),
in line with pact-js, pact-js-core and jest-pact. The per-file rule
overrides and most biome-ignore comments only existed to switch off
non-recommended rules, so they go too. CHANGELOG.md is generated by
git-cliff, so it's excluded rather than reformatted.

Also bumps the react example's own biome to 2.6.8 so it understands
the preset.
Markdown tables and lists, plus sorted exports in utils.ts and
pactMswAdapter.ts. No behaviour change.
Adds a lint job to the Test workflow, and makes the completion check
depend on it, so formatting and lint regressions fail PRs.
Copilot AI lite review requested due to automatic review settings November 24, 2026 14:22

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.

🟢 Approval recommended

The review records no active issues across the configuration, formatting, dependency, and CI-lint changes described.

No open issues 🎉

1 file not reviewed
  • examples/react/package-lock.json: Generated file
What changed in this PR

This PR adopts Biome’s recommended preset, removes obsolete rule overrides and suppressions, updates formatting and the React example’s Biome dependency, and adds a CI lint check.

Changes:

  • Simplifies the root and React example Biome configurations and excludes CHANGELOG.md.
  • Applies formatting and export-order updates across source and documentation files.
  • Adds a dedicated lint job running npm run check to the Test workflow.
File Description
src/​utils/​utils.ts Removes obsolete Biome suppressions and organizes exports.
src/​pactMswAdapter.ts Removes obsolete Biome suppressions.
src/​pactFromMswServerWithProviderFn.msw.spec.ts Removes an obsolete test suppression.
scripts/​README.md Applies Biome Markdown formatting.
README.md Applies Biome Markdown formatting.
examples/​react/​src/​api.ts Removes an obsolete default-export suppression.
examples/​react/​package.json Bumps the React example’s Biome dependency.
examples/​react/​package-lock.json Refreshes the lockfile for the updated Biome dependency.
examples/​react/​biome.jsonc Updates the React example’s Biome configuration for the recommended preset and Biome 2.6.8.
biome.jsonc Uses Biome’s recommended preset and excludes CHANGELOG.md.
.github/​workflows/​test.yml Adds a CI lint job running npm run check and includes it in completion checks.
.github/​ISSUE_TEMPLATE/​feature_request.md Applies frontmatter formatting.
.github/​ISSUE_TEMPLATE/​bug_report.md Applies frontmatter formatting.

Review effort: Lite

@YOU54F
YOU54F requested a review from JP-Ellis November 24, 2026 14:26
@JP-Ellis
JP-Ellis merged commit bb39fb1 into main Nov 24, 2026
23 checks passed
@JP-Ellis
JP-Ellis deleted the fix/biome-config branch November 24, 2026 18:30
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.

3 participants