feat(css_parser): add vueScopedCss option for Vue SFC scoped CSS selectors#9037
feat(css_parser): add vueScopedCss option for Vue SFC scoped CSS selectors#9037kiroushi wants to merge 1 commit intobiomejs:mainfrom
vueScopedCss option for Vue SFC scoped CSS selectors#9037Conversation
🦋 Changeset detectedLatest commit: 8ad946a 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 PR adds support for parsing Vue SFC scoped CSS selectors ( Possibly related PRs
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)
No actionable comments were generated in the recent review. 🎉 Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. 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 |
|
This has already been implemented on |
Summary
Fixes #7923.
Adds a new
css.parser.vueScopedCssconfiguration option that enables parsing of Vue SFC scoped CSS selectors (:deep(),:slotted()). This follows the same pattern as the existingcss.parser.cssModulesoption for:local()/:global().When disabled (the default), the parser emits a helpful diagnostic with a hint to enable the option:
Usage in
biome.json:{ "css": { "parser": { "vueScopedCss": true } } }Note:
:global()is already handled by thecssModulesoption and is not part of this change.Test Plan
:deep(.b)and:slotted(.b)parse successfully withvueScopedCss: true.Docs
A documentation PR will be submitted to the
nextbranch of the website to document the newcss.parser.vueScopedCssoption alongside the existingcssModulesandtailwindDirectivesoptions.