- ⚙️ 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 aims to enforce unified spacing in mustache interpolations.
👎 Examples of incorrect code for this rule:
<div>{{ text }}</div>
<div>{{text}}</div>
👍 Examples of correct code for this rule:
<div>{{ text }}</div>
Default spacing is set to always
'vue/mustache-interpolation-spacing': [2, 'always'|'never']
👎 Examples of incorrect code for this rule:
<div>{{ text }}</div>
<div>{{text}}</div>
👍 Examples of correct code for this rule:
<div>{{ text }}</div>
👎 Examples of incorrect code for this rule:
<div>{{ text }}</div>
👍 Examples of correct code for this rule:
<div>{{text}}</div>