-
-
Notifications
You must be signed in to change notification settings - Fork 681
"boundOnly"
option for vue/v-on-function-call
#1812
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
This rule does already exist: https://eslint.vuejs.org/rules/v-on-function-call.html |
@FloEdelmann, thx for the response. Is it possible to add an option to v-on-function-call that will disallow brackets for @click="fn", but will require brackets for @click="cls.method()"? The point is that currently "v-on-function-call" does not do what "unbound-method" does. |
A new option If implemented, this option's docs should link to the explanation in typescript-eslint rule's documentation. |
Thx for accepting it as proposition. |
"boundOnly"
option for vue/v-on-function-call
Note that the |
Please describe what the rule should do:
Same as:
https://typescript-eslint.io/rules/unbound-method/
What category should the rule belong to?
[ ] Enforces code style (layout)
[+] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)
Provide 2-3 code examples that this rule should warn about:
Additional context
New rule should report missing brakets for <q-button @click="c.f" />
Without brackets it throws run-time error:

The text was updated successfully, but these errors were encountered: