Skip to content

fix: missing rule source reference#9504

Merged
Netail merged 3 commits intomainfrom
fix/assist-rule-source
Mar 16, 2026
Merged

fix: missing rule source reference#9504
Netail merged 3 commits intomainfrom
fix/assist-rule-source

Conversation

@Netail
Copy link
Copy Markdown
Member

@Netail Netail commented Mar 16, 2026

Summary

Missing rule source

Test Plan

Docs

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 16, 2026

⚠️ No Changeset found

Latest commit: 1e9e6c2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@github-actions github-actions Bot added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages labels Mar 16, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 16, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ffabd3fc-945b-41b0-a159-8ba5930ca571

📥 Commits

Reviewing files that changed from the base of the PR and between 52e34eb and 60941b3.

📒 Files selected for processing (1)
  • crates/biome_js_analyze/src/assist/source/use_sorted_keys.rs
🚧 Files skipped from review as they are similar to previous changes (1)
  • crates/biome_js_analyze/src/assist/source/use_sorted_keys.rs

Walkthrough

This PR adds a changeset declaring a patch update for @biomejs/biome and updates the UseSortedKeys rule in the JavaScript analyser to include both RuleSource::Eslint("sort-keys") and RuleSource::EslintPerfectionist("sort-objects") as recognised sources.

Possibly related PRs

Suggested reviewers

  • ematipico
  • dyc3
🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title 'fix: missing rule source reference' directly matches the changeset, which adds a missing Eslint source reference to the UseSortedKeys rule.
Description check ✅ Passed The description mentions 'Missing rule source', which aligns with the changeset adding a missing Eslint source reference to the UseSortedKeys rule.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/assist-rule-source
📝 Coding Plan
  • Generate coding plan for human review comments

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

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.changeset/yellow-submarine-cookie.md:
- Line 5: Replace the current changeset description that begins with "Extra rule
source reference." so the first line follows the bug-fix format "Fixed
[`#NUMBER`](issue link): ..." and rewrite the body into 1–3 user-facing sentences
describing the user impact and what changed (avoid implementation/internal
details like "rule source reference"); ensure the message clearly states the
problem users experienced and the visible fix, then save the revised content in
the same changeset file.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a6253e87-59a2-4b6e-ba8f-7584492269f7

📥 Commits

Reviewing files that changed from the base of the PR and between cd51722 and 52e34eb.

📒 Files selected for processing (2)
  • .changeset/yellow-submarine-cookie.md
  • crates/biome_js_analyze/src/assist/source/use_sorted_keys.rs

Comment thread .changeset/yellow-submarine-cookie.md Outdated
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Mar 16, 2026

Merging this PR will not alter performance

✅ 58 untouched benchmarks
⏩ 156 skipped benchmarks1


Comparing fix/assist-rule-source (1e9e6c2) with main (ab25a3e)2

Open in CodSpeed

Footnotes

  1. 156 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 main (cd51722) during the generation of this report, so ab25a3e was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Comment thread .changeset/yellow-submarine-cookie.md Outdated
"@biomejs/biome": patch
---

Extra rule source reference. `biome migrate eslint` should do a bit better detecting rules in your eslint configurations.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please adhere to the contribution guidelines for changesets:

  • use the past tense
  • the phrase needs to target the end users.

For example "Extra rule source reference" doesn't mean anything to our users, as well as the second. Be precise (mention maybe which rules we are about to migrate)

Copy link
Copy Markdown
Member Author

@Netail Netail Mar 16, 2026

Choose a reason for hiding this comment

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

Mhm alright, have been using this changeset sentence when adding rule sources a few times already and I think once suggested by a core member 😅

Honestly, idk if the changeset is actually needed as inspired rule kinds won't be used in the migrate command (deleted the changeset)

Copy link
Copy Markdown
Member

@ematipico ematipico Mar 16, 2026

Choose a reason for hiding this comment

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

If so, we can then remove the changset. The change is mostly for docs, then, which doesn't affect this package

@Netail Netail merged commit c311974 into main Mar 16, 2026
17 checks passed
@Netail Netail deleted the fix/assist-rule-source branch March 16, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Linter Area: linter L-JavaScript Language: JavaScript and super languages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants