Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 964 Bytes

v-bind-style.md

File metadata and controls

37 lines (24 loc) · 964 Bytes

enforce v-bind directive style (vue/v-bind-style)

  • ⚙️ This rule is included in "plugin:vue/strongly-recommended" and "plugin:vue/recommended".
  • 🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

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

📖 Rule Details

👎 Examples of incorrect code for this rule:

<div v-bind:foo="bar"/>

👍 Examples of correct code for this rule:

<div :foo="bar"/>

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

<div :foo="bar"/>

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

<div v-bind:foo="bar"/>

🔧 Options

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