Repository navigation
chore(biome): use the recommended preset and run check in CI - #468
Merged
Merged
Conversation
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.
There was a problem hiding this comment.
🟢 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
lintjob runningnpm run checkto 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
JP-Ellis
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
npm run checkhas 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:CHANGELOG.md, since git-cliff owns itpresetlintjob to the Test workflow runningnpm run checkChecked locally:
check,type-check,dist:ci, and the example's biome check and unit tests.