Skip to content

chore(deps): update biome to v2#5436

Merged
chenjiahan merged 2 commits intomainfrom
biome_v2
Jun 18, 2025
Merged

chore(deps): update biome to v2#5436
chenjiahan merged 2 commits intomainfrom
biome_v2

Conversation

@chenjiahan
Copy link
Member

Summary

  • Update biome to v2
  • Use npx @biomejs/biome migrate --write to migrate the config
  • Fix all newly detected lint issues

Related Links

https://biomejs.dev/blog/biome-v2/

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings June 18, 2025 02:51
@netlify
Copy link

netlify bot commented Jun 18, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 5864cf4
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/6852299ac23b9a0008b59458
😎 Deploy Preview https://deploy-preview-5436--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 86 (🟢 up 19 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades Biome to v2, migrates the configuration, and resolves all new lint issues across e2e test cases and project configs.

  • Updated biome.json schema and lint rule definitions
  • Organized and reordered imports, removed unused React imports in legacy JSX cases
  • Added/removed error-handling and blank lines to satisfy new lint rules

Reviewed Changes

Copilot reviewed 88 out of 88 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
e2e/cases/plugin-react/legacy-jsx/src/App.jsx Added // biome-ignore for unused React import
e2e/cases/plugin-react/enable-profiler/src/App.jsx Removed unused React import
e2e/cases/plugin-api/plugin-hooks/index.test.ts Reordered createRsbuild and type RsbuildPlugin imports
e2e/cases/plugin-api/plugin-hooks-watch/index.test.ts Reordered createRsbuild and type RsbuildPlugin imports
e2e/cases/plugin-api/plugin-hooks-environment/index.test.ts Reordered createRsbuild and type RsbuildPlugin imports
e2e/cases/plugin-api/plugin-expose/index.test.ts Reordered createRsbuild and type RsbuildPlugin imports
e2e/cases/plugin-api/plugin-after-build-hook/index.test.ts Reordered createRsbuild and type RsbuildPlugin imports
e2e/cases/node-polyfill-tip/without-protocol/index.test.ts Changed catch (err) {} to catch {}
e2e/cases/node-polyfill-tip/with-protocol/index.test.ts Changed catch (err) {} to catch {}
e2e/cases/module/glob-import/src/App.jsx Removed unused useState import and variable
e2e/cases/module-federation/remote/src/bootstrap.js Removed unused React import
e2e/cases/module-federation/host/src/bootstrap.js Removed unused React import
e2e/cases/module-federation-v2/remote/src/bootstrap.js Removed unused React import
e2e/cases/module-federation-v2/host/src/bootstrap.js Removed unused React import
e2e/cases/html/template-with-script/index.test.ts Added // biome-ignore for template‐string lint
e2e/cases/css/css-assets/index.test.ts Combined helper imports into a single statement
e2e/cases/cli/watch-files/rsbuild.config.ts Reordered defineConfig and type RsbuildPlugin imports
e2e/cases/cli/watch-files-array/rsbuild.config.ts Reordered defineConfig and type RsbuildPlugin imports
e2e/cases/assets/emit-assets/src/index.js Inserted blank line for import separation
biome.json Updated to v2 schema, reorganized assist.actions, added new lint rules
Comments suppressed due to low confidence (2)

@chenjiahan chenjiahan merged commit 4fa7e84 into main Jun 18, 2025
12 checks passed
@chenjiahan chenjiahan deleted the biome_v2 branch June 18, 2025 02:59
This was referenced Jun 20, 2025
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.

1 participant