vue/no-multi-spaces
eslint-plugin-vue
Safe autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-multi-spaces": "error",
},
},
]; <div class="foo"
:style = "bar" />
<i
:class="{
'fa-angle-up' : isExpanded,
'fa-angle-down' : !isExpanded,
}"
/>
</template><div
class="foo"
:style="bar" />
<i
:class="{
'fa-angle-up' : isExpanded,
'fa-angle-down' : !isExpanded,
}"
/> <i
:class="{
'fa-angle-up' : isExpanded,
'fa-angle-down' : !isExpanded,
}"
/>
</template> <div
:class="{
'fa-angle-up' : isExpanded, // comment
'fa-angle-down' : !isExpanded, /* multiline comment */
}"
/>
</template>Examples from the ESLint documentation.
vue/no-multi-spaces
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-multi-spaces": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Enforce unified spacing in mustache interpolations
Disallow spaces around equal signs in attribute
Require a line break before and after the contents of a multiline element
Require a line break before and after the contents of a singleline element