Vize

vue/no-useless-concat

Disallow useless string concatenation 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

Two string literals are concatenated at runtime.

<template>
  <p>{{ "hello" + " world" }}</p>
</template>

Good

One literal represents the same text.

<template>
  <p>{{ "hello world" }}</p>
</template>

Configuration (Vite+)

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

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

Then run vp run lint.