Skip to content

feat(migrate): migrate noRestrictedElements options from react, vue, and svelte rules - #12086

Merged
dyc3 merged 1 commit into
nextfrom
dyc3/migrate-no-restricted-elements-options
Oct 5, 2026
Merged

dyc3 merged 1 commit into
nextfrom
dyc3/migrate-no-restricted-elements-options

Conversation

@dyc3

@dyc3 dyc3 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a eslint options migrator for noRestrictedElements.

implemented by opus 5.5

Test Plan

snapshots

Docs


Stack created with GitHub Stacks CLI • Give Feedback 💬

@dyc3
dyc3 added this pull request to stack #12087 October 2, 2026 17:58
@changeset-bot

changeset-bot Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fd8fae4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 15 packages
Name Type
@biomejs/biome Patch
@biomejs/cli-android-arm64 Patch
@biomejs/cli-android-x64 Patch
@biomejs/cli-darwin-arm64 Patch
@biomejs/cli-darwin-x64 Patch
@biomejs/cli-linux-arm64-musl Patch
@biomejs/cli-linux-arm64 Patch
@biomejs/cli-linux-x64-musl Patch
@biomejs/cli-linux-x64 Patch
@biomejs/cli-win32-arm64 Patch
@biomejs/cli-win32-x64 Patch
@biomejs/wasm-bundler Patch
@biomejs/wasm-nodejs Patch
@biomejs/wasm-web Patch
@biomejs/backend-jsonrpc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added the A-CLI Area: CLI label Oct 2, 2026
@codspeed

codspeed Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will degrade performance by 6.39%

⚠️ 3 benchmarks measured no execution time

Nothing ran under measurement, usually because the compiler removed the code under test. These results are not comparable, so they count as unchanged.

Preventing compiler optimizations

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

❌ 1 regressed benchmark
✅ 397 untouched benchmarks
⏩ 6 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ synthetic/vue-expressions.vue[uncached] 1.2 ms 1.3 ms -6.39%
⚠️ grit_query_anchor_kinds[code_snippet] < 1 ns < 1 ns N/A
⚠️ grit_query_anchor_kinds[metavariable] < 1 ns < 1 ns N/A
⚠️ grit_query_anchor_kinds[or_pattern] < 1 ns < 1 ns N/A

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing dyc3/migrate-no-restricted-elements-options (fd8fae4) with next (1df00de)2

Open in CodSpeed

Footnotes

  1. 6 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on next (04e3750) during the generation of this report, so 1df00de was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@dyc3
dyc3 marked this pull request as ready for review October 2, 2026 23:47
@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⛔ Files ignored due to path filters (10)
  • Cargo.lock is excluded by !**/*.lock and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_and_vue.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_off_and_vue.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_severity_only.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_vue_and_svelte.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_with_options.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/svelte_severity_only.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/svelte_with_options.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/vue_severity_only.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/vue_with_options.jsonc.snap is excluded by !**/*.snap and included by **
⚙️ Run configuration
  • Configuration used: Repository: biomejs/biome/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: f735ccd7-6ccd-445e-a044-ee11d8debd56
📥 Commits

Reviewing files that changed from the base of the PR and between 3f25f1b and fd8fae4.

⛔ Files ignored due to path filters (10)
  • Cargo.lock is excluded by !**/*.lock and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_and_vue.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_off_and_vue.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_severity_only.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_vue_and_svelte.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_with_options.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/svelte_severity_only.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/svelte_with_options.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/vue_severity_only.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/vue_with_options.jsonc.snap is excluded by !**/*.snap and included by **

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: biomejs/biome/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 86cb9034-14b1-4d2c-8334-ec15d35e30b6
📥 Commits

Reviewing files that changed from the base of the PR and between 948f287 and 3f25f1b.

⛔ Files ignored due to path filters (10)
  • Cargo.lock is excluded by !**/*.lock and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_and_vue.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_off_and_vue.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_severity_only.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_vue_and_svelte.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_with_options.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/svelte_severity_only.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/svelte_with_options.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/vue_severity_only.jsonc.snap is excluded by !**/*.snap and included by **
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/vue_with_options.jsonc.snap is excluded by !**/*.snap and included by **
📒 Files selected for processing (18)
  • .changeset/migrate-no-restricted-elements-options.md
  • crates/biome_cli/Cargo.toml
  • crates/biome_cli/src/execute/migrate.rs
  • crates/biome_cli/src/execute/migrate/eslint_eslint.rs
  • crates/biome_cli/src/execute/migrate/eslint_react.rs
  • crates/biome_cli/src/execute/migrate/eslint_svelte.rs
  • crates/biome_cli/src/execute/migrate/eslint_to_biome.rs
  • crates/biome_cli/src/execute/migrate/eslint_vue.rs
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_and_vue.jsonc
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_off_and_vue.jsonc
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_severity_only.jsonc
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_vue_and_svelte.jsonc
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/react_with_options.jsonc
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/svelte_severity_only.jsonc
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/svelte_with_options.jsonc
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/vue_severity_only.jsonc
  • crates/biome_cli/tests/specs/migrate_eslint/noRestrictedElements/vue_with_options.jsonc
  • crates/biome_rule_options/src/no_restricted_elements.rs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.


Walkthrough

The ESLint migration now recognises React, Svelte and Vue restricted-element rules. It parses each rule’s element names and optional messages, then combines entries for Biome’s no_restricted_elements rule. The migration handles disabled severities and duplicate elements. New fixtures cover rule options, severity-only configurations and combinations of the three plugins.

Priority: ➖ Normal

Change: Feature

Merge Risk: ⚪ Minimal · up to 3f25f

The migrated restrictions and their severity are preserved in the inspected configurations. No merge-blocking issue remains beyond normal checks.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the migration of noRestrictedElements options from the React, Vue, and Svelte rules.
Description check ✅ Passed The description states that the pull request adds an ESLint options migrator for noRestrictedElements and identifies snapshots as the test plan.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Comment @coderabbitai help to get the list of available commands.

Base automatically changed from dyc3/port-vue-no-restricted-html-elements-thr_de5fa52zqy to next October 4, 2026 06:08
@dyc3
dyc3 force-pushed the dyc3/migrate-no-restricted-elements-options branch from 3f25f1b to fd8fae4 Compare October 4, 2026 06:08
@dyc3 dyc3 added this to the Biome v2.6 milestone Oct 4, 2026
@dyc3
dyc3 merged commit 27a34f9 into next Oct 5, 2026
43 checks passed
@dyc3
dyc3 deleted the dyc3/migrate-no-restricted-elements-options branch October 5, 2026 17:40
@github-actions github-actions Bot mentioned this pull request Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CLI Area: CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants