Skip to content

fix: migrate biome.json config to v2.x#6

Merged
AaronFeledy merged 2 commits intomainfrom
fix/biome-config-migration
Feb 27, 2026
Merged

fix: migrate biome.json config to v2.x#6
AaronFeledy merged 2 commits intomainfrom
fix/biome-config-migration

Conversation

@AaronFeledy
Copy link
Contributor

@AaronFeledy AaronFeledy commented Feb 27, 2026

The CI workflow installs latest Biome (2.4.4) but the config was written for 1.9.4. Several keys were renamed/removed in the 2.x migration.

Changes:

  • Updated $schema to 2.4.4
  • Replaced organizeImports with disabled assist (organize imports was causing CI failures on existing code)
  • Migrated files.ignore/linter.ignore to includes with negation patterns
  • Disabled new rules introduced in Biome 2.x that flag existing code (noUnusedImports, noUnusedVariables, useButtonType, etc.)
  • Enabled css.parser.tailwindDirectives and disabled noUnknownAtRules for Tailwind CSS compatibility
  • Auto-formatted package.json to match Biome 2.x formatter output

Note

Low Risk
Changes are limited to lint/format tooling configuration; main risk is CI or local lint behavior changing (e.g., newly disabled rules or different file include patterns).

Overview
Migrates biome.json to the Biome 2.4.4 schema, replacing deprecated config keys (e.g., organizeImports -> disabled assist) and switching ignore lists to includes patterns (while continuing to exclude public/).

Disables several Biome 2.x rules that would flag existing code (unused imports/vars/params, exhaustive deps, some a11y/CSS rules) and tweaks CSS parsing for Tailwind via css.parser.tailwindDirectives.

Applies formatter output changes to package.json (array formatting only).

Written by Cursor Bugbot for commit 1caf5a1. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: useParseIntRadix placed in wrong rule category
    • Removed useParseIntRadix from the correctness group since it belongs to nursery and nursery rules aren't enabled by recommended: true anyway.

Create PR

Or push these changes by commenting:

@cursor push 9feb8dac7e
Preview (9feb8dac7e)
diff --git a/biome.json b/biome.json
--- a/biome.json
+++ b/biome.json
@@ -26,7 +26,6 @@
         "noUnusedImports": "off",
         "noUnusedVariables": "off",
         "noUnusedFunctionParameters": "off",
-        "useParseIntRadix": "off",
         "useExhaustiveDependencies": "off"
       },
       "suspicious": {

@AaronFeledy
Copy link
Contributor Author

@cursor push 9feb8da

The useParseIntRadix rule belongs to the nursery group in Biome 2.x,
not correctness. Having it in the wrong category caused a configuration
error that disabled the entire linter. Since nursery rules aren't enabled
by 'recommended': true, removing this line is the cleanest fix.

Applied via @cursor push command
@AaronFeledy AaronFeledy merged commit 2fd6530 into main Feb 27, 2026
2 checks passed
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