Closed
Description
Tell us about your environment
- ESLint version: 6.8.0
- eslint-plugin-vue version: 6.2.2
- Node version: 13.9.0
Please show your full configuration:
"vue/v-on-function-call": ["error", "never"]
What did you do?
<MyComponent @myevent="$refs.myref.mymethod()"/>
What did you expect to happen?
Should be no error because you're not allowed to call it without ()
when calling it this way. Even with never
as the argument you must include a dot. The only time you're allowed to skip the dot is when calling a function like @myevent="mymethod"
, like when it's in the methods
of your Vue component.
What actually happened?
Method calls without arguments inside of 'v-on' directives must not have parentheses.eslint(vue/v-on-function-call)