Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Addvue/valid-define-options tovue3-essential config#2653

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

Merged
waynzh merged 2 commits intovuejs:v10fromwaynzh:add-valid-define-options
Dec 17, 2024

Conversation

waynzh
Copy link
Member

Resolve the remaining todo in the code base.

Will added to#2166.

// TODO Switch in the next major version
// categories: ['vue3-essential', 'vue2-essential'],
categories: undefined,
categories: ['vue3-essential', 'vue2-essential'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

IsdefineOptions even supported in Vue 2? If not, then it makes no sense to add this rule to thevue2-essentials config.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It can only be used in<script setup> syntax. Removed ✅

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Vue 2.7 added support for<script setup> (seehttps://blog.vuejs.org/posts/vue-2-7-naruto), but I thinkdefineOptions was added later to Vue 3 and never backported to Vue 2.

Copy link
MemberAuthor

@waynzhwaynzhDec 17, 2024
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Oh, I'm not very familiar with Vue 2.7, I'll check whetherdefineOptions was introduced in Vue 2.7.
Sincevue/valid-define-emits andvue/valid-define-props are in theessential category for both Vue 2 and Vue 3.

Update: Yep, you're right,defineOptions was never added back to Vue 2. So, setting the category asvue3-essential should be enough.

FloEdelmann reacted with thumbs up emoji
@waynzhwaynzh changed the titleAdd vue/valid-define-options to essential configAdd vue/valid-define-options to vue3-essential configDec 17, 2024
@waynzhwaynzh changed the titleAdd vue/valid-define-options to vue3-essential configAddvue/valid-define-options tovue3-essential configDec 17, 2024
@waynzhwaynzh mentioned this pull requestDec 17, 2024
Copy link
Member

@FloEdelmannFloEdelmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks good to me 🙂

waynzh reacted with thumbs up emoji
@waynzhwaynzh merged commit43d6a91 intovuejs:v10Dec 17, 2024
6 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@FloEdelmannFloEdelmannFloEdelmann approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@waynzh@FloEdelmann

[8]ページ先頭

©2009-2025 Movatter.jp