Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork688
feat(component-api-style): add scriptSetupVapor option#2797
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
changeset-botbot commentedJul 17, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
🦋 Changeset detectedLatest commit:edb5273 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
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.
Pull Request Overview
Introduce a newscript-setup-vapor
option to the Vue component API style rule, allowing<script setup vapor>
blocks and enforcing the proper messages when it’s disallowed.
- Extend parser and rule logic to recognize and validate
script-setup-vapor
- Add unit tests for both allowing and disallowing
<script setup vapor>
- Update documentation with examples and option descriptions
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
tests/lib/rules/component-api-style.js | Added tests for the newscript-setup-vapor option and errors |
lib/rules/component-api-style.js | Parsed, flagged, and reported on<script setup vapor> usage |
docs/rules/component-api-style.md | Documented thescript-setup-vapor option with examples |
Comments suppressed due to low confidence (1)
tests/lib/rules/component-api-style.js:124
- Add a test case for
<script setup>
(withoutvapor
attribute) when bothscript-setup
andscript-setup-vapor
options are enabled to ensure no error is reported.
options: [['script-setup', 'script-setup-vapor']]
Uh oh!
There was an error while loading.Please reload this page.
resolve#2791
Waiting for the official release of Vue 3.6...