Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.09 KB

v-bind-style.md

File metadata and controls

41 lines (26 loc) · 1.09 KB

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.

Related links