Skip to content

v-on-function-call with dots in name #1085

Closed
@rightaway

Description

@rightaway

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions