vue/valid-v-on
Fix the
v-on/@directive syntax
| Property | Value |
|---|---|
| Category | Correctness |
| Default Severity | error |
| Confidence | high |
| Fixable | No |
| Engine | eslint-template |
| Since | v1.0.0 |
| Frameworks | vue, nuxt |
Why it matters
Fix the v-on / @ directive syntax
How to fix
Review the finding and update the code according to best practices below.
Agent Guidance
Fix the v-on/@ syntax: it needs an event name and a valid handler expression or method.
Rule source: vue/valid-v-on