-
-
Notifications
You must be signed in to change notification settings - Fork 681
Rule proposition: no-shared-component-data
must be a function.
#79
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can I start working on this rule? |
component-data
must be a function.
I definitely agree with this one 👍 It's something strongly advised in vue documentation and I think it's a must have rule in our set. |
it's already implemented and |
component-data
must be a function.return-in-computed-property
must be a function.
return-in-computed-property
must be a function.component-data
must be a function.
component-data
must be a function.no-shared-component-data
must be a function.
Released in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using the data property on a component (i.e. anywhere except on new Vue), the value must be a function that returns an object.
based on style guide
Invalid:
Valid:
The text was updated successfully, but these errors were encountered: