Repository navigation
chore: make Biome check pass cleanly - #27
Merged
Merged
Conversation
Migrate biome.json to the 2.5 preset schema, fix the broken lint/format npm scripts, and apply organize-imports plus format fixes across the tree. Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
🟢 Approval recommended
The configuration matches the installed Biome version, and the remaining changes are behavior-preserving formatting updates.
Pull request overview
Updates Biome configuration and scripts for version 2.5.12, then applies the resulting formatting and import organization.
Changes:
- Migrates Biome rules to the
presetschema. - Corrects lint and format commands.
- Applies non-functional formatting and import-order changes.
File summaries
| File | Description |
|---|---|
utils/reject-wrong-origin.ts |
Formats chained calls. |
utils/get-language-ranking-path.ts |
Normalizes formatting. |
utils/calculate-tiers/calculate-tiers.ts |
Organizes imports. |
package.json |
Corrects Biome scripts. |
components/tiers-explanation/tiers-explanation.tsx |
Organizes imports. |
components/ranking-table/ranking-table.tsx |
Organizes imports. |
components/rank-type-switcher/ranking-type-switcher.tsx |
Organizes imports. |
components/rank-number/rank-number.tsx |
Organizes imports. |
components/rank-chart/rank-chart.tsx |
Organizes imports. |
components/rank-card/ranked-card-content.tsx |
Organizes imports. |
components/rank-card/not-ranked-card-content.tsx |
Organizes imports. |
components/rank-card/not-available-card-content.tsx |
Organizes imports. |
components/rank-card/next-tier-threshold.tsx |
Organizes imports. |
components/persona-chart/persona-chart.tsx |
Organizes imports. |
components/chart-languages/custom-tooltip.tsx |
Organizes imports. |
components/chart-languages/bar-chart-languages.tsx |
Organizes imports. |
components/badge-icon/badge-icon.tsx |
Organizes imports. |
biome.json |
Migrates Biome rule presets. |
badge/utils/get-title-by-ranking-type.ts |
Organizes imports. |
badge/utils/get-rank-by-ranking-type.ts |
Organizes imports. |
badge/templates/small/small.tsx |
Organizes imports. |
badge/templates/medium/medium.tsx |
Organizes imports. |
badge/templates/inline/inline.styles.tsx |
Organizes imports. |
badge/templates/inline/inline.render.tsx |
Organizes imports. |
badge/badge.zod.ts |
Organizes imports. |
badge/badge.types.ts |
Organizes imports. |
badge/badge.nuqs.ts |
Organizes imports. |
auth.ts |
Removes obsolete lint suppression. |
app/profile/[login]/repositories/components/user-contributions-list.tsx |
Organizes imports. |
app/profile/[login]/repositories/components/load-more-repositories.tsx |
Organizes imports. |
app/profile/[login]/ranks/loading.tsx |
Organizes imports. |
app/profile/[login]/ranks/country/page.tsx |
Organizes imports. |
app/profile/[login]/ranks/components/ranks-page.tsx |
Organizes imports. |
app/profile/[login]/ranks/components/profile-rank-charts.tsx |
Organizes imports. |
app/profile/[login]/ranks/components/profile-chart-card.tsx |
Organizes imports. |
app/profile/[login]/not-found.tsx |
Organizes imports. |
app/profile/[login]/loading.tsx |
Organizes imports. |
app/profile/[login]/languages/page.tsx |
Organizes imports. |
app/profile/[login]/languages/loading.tsx |
Organizes imports. |
app/profile/[login]/languages/country/page.tsx |
Organizes imports. |
app/profile/[login]/languages/components/languages-page.tsx |
Organizes imports. |
app/profile/[login]/country/page.tsx |
Organizes imports. |
app/layout.tsx |
Sorts React imports. |
app/languages/[country]/[orderBy]/[page]/page.tsx |
Organizes imports. |
app/languages/[country]/[orderBy]/[page]/layout.tsx |
Organizes imports. |
app/languages/[country]/[orderBy]/[page]/components/language-card.tsx |
Formats link markup. |
app/language/[language]/[country]/[page]/layout.tsx |
Organizes imports. |
app/insights/[id]/page.tsx |
Organizes imports. |
app/countries/[orderBy]/[page]/page.tsx |
Organizes imports. |
app/countries/[orderBy]/[page]/layout.tsx |
Organizes imports. |
app/components/country-ranking-section.tsx |
Organizes imports. |
app/components/badge-section.tsx |
Organizes imports. |
app/by/[rankingType]/components/country-switcher.tsx |
Organizes imports. |
app/badge/gallery/page.tsx |
Organizes imports. |
app/badge/builder/[[...login]]/page.tsx |
Organizes imports. |
app/badge/builder/[[...login]]/components/preview.tsx |
Organizes imports. |
app/badge/builder/[[...login]]/components/login-form.tsx |
Organizes imports. |
app/badge/builder/[[...login]]/components/integration-code.tsx |
Organizes imports. |
Review details
- Files reviewed: 57/58 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
Summary
biome.jsonto the Biome 2.5presetschema and keep a11y recommended rules enabledlint/formatnpm scripts so they invokebiomecorrectlypnpm lintandpnpm typespass cleanlyTest plan
pnpm typespnpm lint