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
Given following single file Vue.js component:
<template> <div>Hello</div> </template> <script> export default { name: 'AppHello', props: { textProp: {type: String, default: () => 1233} } } </script>
I would expect to get vue/require-valid-default-prop error as the prop does not have valid default value. Types does not match.
vue/require-valid-default-prop
Howsoever, no such error is thrown during linting.
I am not sure if this is intended. But if it is, at least the docs should be updated.
Versions:
vue/cli-plugin-eslint is ^3.11.0" eslint is ^5.16.0 node is ^10.16.0
The text was updated successfully, but these errors were encountered:
Thank you for this issue.
Now, the vue/require-valid-default-prop rule does not check what the function returns. #119 (comment)
I think we need to add a check to vue/require-valid-default-prop rule.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Given following single file Vue.js component:
I would expect to get
vue/require-valid-default-prop
error as the prop does not have valid default value. Types does not match.Howsoever, no such error is thrown during linting.
I am not sure if this is intended. But if it is, at least the docs should be updated.
Versions:
The text was updated successfully, but these errors were encountered: