Vize

vue/no-implicit-coercion

Disallow implicit coercion in template expressions.

Default severity Presets Automatic fix Options
warning None No None

Applies to: Vue SFC templates and blocks, with script context where the rule requires it.

Bad

Double negation coerces the value implicitly.

<template>
  <p>{{ !!value }}</p>
</template>

Good

Boolean makes the conversion explicit.

<template>
  <p>{{ Boolean(value) }}</p>
</template>

Configuration (Vite+)

import { defineConfig } from "@vizejs/vite-plugin/vite-plus";

export default defineConfig({}).withVue({
  linter: {
    "preset": "incremental",
    "rules": {
      "vue/no-implicit-coercion": "warn"
    }
  },
});

Then run vp run lint.