feat(css): support SCSS interpolation in attribute selectors#10357
Conversation
|
Parser conformance results onjs/262
jsx/babel
markdown/commonmark
symbols/microsoft
ts/babel
ts/microsoft
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThis PR extends Biome's CSS/SCSS parser and formatter to support SCSS interpolation in attribute selectors. It introduces AnyCssAttributeName/AnyCssAttributeModifier and CssAttributeModifier in the grammar and kinds, adds parser predicates and helpers for interpolated names/modifiers, updates attribute selector parsing and recovery, implements formatter rules and registry wiring, refactors SCSS formatters to use the write! emission pattern, updates grit mappings and GritQuery caching, and adds tests for valid and invalid interpolation cases. Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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 |
Merging this PR will not alter performance
Comparing Footnotes
|
4f6e10d to
b8a14f3
Compare
Summary
Adds SCSS interpolation support in attribute selector names and modifiers.
Test Plan