← Back

vue/key-spacing warning

Enforce consistent spacing between keys and values in object literal properties

Examples

❌  Incorrect

<template>
    <div>
        <div :class="{ active : isActive }"></div>
        <div :class="{ active :isActive }"></div>
    </div>
</template>

✅  Correct

<template>
    <div :class="{ active: isActive }"></div>
</template>