Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 856 Bytes

v-on-style.md

File metadata and controls

36 lines (23 loc) · 856 Bytes

enforce v-on directive style (v-on-style)

  • 🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

This rule enforces v-on directive style which you should use shorthand or long form.

📖 Rule Details

👎 Examples of incorrect code for this rule:

<div v-on:click="foo"/>

👍 Examples of correct code for this rule:

<div @click="foo"/>

👎 Examples of incorrect code for this rule with "longform" option:

<div @click="foo"/>

👍 Examples of correct code for this rule with "longform" option:

<div v-on:click="foo"/>

🔧 Options

  • "shorthand" (default) ... requires using shorthand.
  • "longform" ... requires using long form.