We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vue/require-valid-default-prop
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
The text was updated successfully, but these errors were encountered:
Apparently, this issue requests two improvements, both of which make sense to me:
defineModel
vue/require-default-prop
Sorry, something went wrong.
No branches or pull requests
What rule do you want to change?
Extend
vue/require-valid-default-prop
to check defineModelDoes 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:
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
The text was updated successfully, but these errors were encountered: