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
Tell us about your environment
Please show your full configuration:
{ root: true, extends: ['plugin:vue/recommended'], rules: { 'vue/html-quotes': 'error', 'vue/html-self-closing': ['error', { html: { normal: 'never', void: 'any', component: 'never' }, svg: 'never', math: 'never' }], 'vue/no-async-in-computed-properties': 'error', 'vue/no-dupe-keys': 'error', 'vue/no-duplicate-attributes': 'error', 'vue/no-shared-component-data': 'error', 'vue/order-in-components': 'error', 'vue/v-bind-style': 'error', 'vue/v-on-style': 'error' } }
What did you do? Please include the actual source code causing the issue.
<script> export default { data: () => ({ foo: 'bar' }) }; </script>
What did you expect to happen?
No linting errors
What actually happened? Please include the actual, raw output from ESLint.
Error: data property in component must be a function
data
The text was updated successfully, but these errors were encountered:
Fix 'no-shared-component-data' false positive when using arrow functions
2f36ba9
fixes vuejs#154
arrow function should be allowed in this rule, because we are going to add vue/no-arrow-function #152
vue/no-arrow-function
Sorry, something went wrong.
Fix: 'no-shared-component-data' false positive when using arrow funct…
b25be73
…ions (fixes #154)(#156)
Successfully merging a pull request may close this issue.
Tell us about your environment
Please show your full configuration:
What did you do? Please include the actual source code causing the issue.
What did you expect to happen?
No linting errors
What actually happened? Please include the actual, raw output from ESLint.
Error:
data
property in component must be a functionThe text was updated successfully, but these errors were encountered: