Conversation
🦋 Changeset detectedLatest commit: bf1ea4a 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 |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
<script setup> components<script setup> components
4f8f323 to
71662a6
Compare
71662a6 to
1e02bc7
Compare
| && binding | ||
| .declaration() | ||
| .map(|d| d.parent_binding_pattern_declaration().unwrap_or(d)) | ||
| .is_some_and(|d| { | ||
| matches!( | ||
| d, | ||
| AnyJsBindingDeclaration::JsShorthandNamedImportSpecifier(_) | ||
| | AnyJsBindingDeclaration::JsNamedImportSpecifier(_) | ||
| | AnyJsBindingDeclaration::JsDefaultImportSpecifier(_) | ||
| | AnyJsBindingDeclaration::JsNamespaceImportSpecifier(_) | ||
| | AnyJsBindingDeclaration::JsVariableDeclarator(_) | ||
| ) | ||
| }); |
There was a problem hiding this comment.
Not having this condition resulted in some regressions in other CLI tests. Not ideal IMO, but it requires more scrutiny.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
WalkthroughThis PR adds a changeset entry and a new CLI test for Vue SFCs using Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
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/better-pets-judge.md:
- Line 5: The changeset message currently references "noUnusedVariables" but the
PR and CLI test mention "noUndeclaredVariables"; update the changeset text to
explicitly list the correct rule name(s) — e.g., change "Fixed
noUnusedVariables..." to mention "noUndeclaredVariables" if that’s the actual
fix, or to mention both "noUnusedVariables" and "noUndeclaredVariables" if both
were changed — and ensure the wording matches the PR scope and test names
exactly so release notes are accurate.
ℹ️ Review info
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
crates/biome_cli/tests/snapshots/main_cases_vue_cross_language_rules/no_undeclared_variables_script_setup_with_functions_and_vars.snapis excluded by!**/*.snapand included by**
📒 Files selected for processing (5)
.changeset/better-pets-judge.mdcrates/biome_cli/tests/cases/mod.rscrates/biome_cli/tests/cases/vue_cross_language_rules.rscrates/biome_js_analyze/src/lint/correctness/no_unused_variables.rscrates/biome_service/src/workspace/document/services/embedded_bindings.rs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Merging this PR will not alter performance
Comparing Footnotes
|
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

Summary
In Vue
<script setup>components things defined in the top level scope become available in the template section of the component.Test Plan
Added snapshot tests
Docs