← Back

vue/eqeqeq warning

Require the use of === and !==

Examples

❌  Incorrect

<template>
    <div v-if="type == 'A'">
        A
    </div>
</template>

✅  Correct

<template>
    <div v-if="type === 'A'">
        A
    </div>
</template>