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

Extend vue/require-valid-default-prop to check inside defineModel #2369

Open
@seanogdev

Description

What rule do you want to change?

Extend vue/require-valid-default-prop to check defineModel

Does this change cause the rule to produce more or fewer warnings?

Potentially the same

How will the change be implemented? (New option, new default behavior, etc.)?

Add support for defineModel to check that it has a default prop

Please provide some example code that this change will affect:

const modelValue = defineModel({
 type: Boolean,
 default: false,
});

What does the rule currently do for this code?

It does not check for a default value

What will the rule do after it's changed?

A default value must be defined

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /