-
-
Notifications
You must be signed in to change notification settings - Fork 794
fix(biome_grit_patterns): properly handle name and value metavariables for JsxAttribute GritQL queries #8202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(biome_grit_patterns): properly handle name and value metavariables for JsxAttribute GritQL queries #8202
Conversation
…s for JsxAttribute GritQL queries Fixes biomejs#8079.
🦋 Changeset detectedLatest commit: 3ee20d5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
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 |
WalkthroughThis change fixes a GritQL pattern matching issue for JSX attributes. The PR updates the Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
🔇 Additional comments (5)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ematipico
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's great, thank you!
…s for JsxAttribute GritQL queries (biomejs#8202)
…s for JsxAttribute GritQL queries (biomejs#8202)
Summary
This PR updates the GritQL pattern name mapping logic in
xtask/codegen/src/generate_grit_mappings.rsto properly handlenameandvaluemetavariables forJsxAttributeGritQL queries.The following
biome searchcommand no longer throws an error:Closes #8079.
Test Plan
Added:
crates/biome_grit_patterns/tests/specs/tsx/jsx_attributes.snapcrates/biome_grit_patterns/tests/specs/tsx/jsx_attributes.tsxcrates/biome_grit_patterns/tests/specs/tsx/jsx_attributes.grit