# no-useless-concat

Rule `vue/no-useless-concat`. Disallow unnecessary concatenation of literals or template literals in `<template>`

- Source: vue
- Technologies: Vue
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1842 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/no-useless-concat` | no | no | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/no-useless-concat.html) |
| Biome | `complexity/noUselessStringConcat` | no | safe | group complexity, since 1.8.0 | [docs](https://biomejs.dev/linter/rules/no-useless-string-concat/) |

## Code examples

### Incorrect: the rule reports this

```js
const a = "a" + "b";
```

```js
const foo = "string" + 123;
```

```js
const a = "a" + "b" + "c";
```

### Correct: the rule accepts this

```js
const a = 1 + 1;
```

```js
const a = 1 * '2';
```

```js
const a = 1 - 2;
```

Examples from the Biome documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import vue from "eslint-plugin-vue";

export default [
  {
    plugins: { vue },
    rules: {
      "vue/no-useless-concat": "error",
    },
  },
];
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "complexity": {
        "noUselessStringConcat": "error"
      }
    }
  }
}
```

## Related rules

- [eslint/no-useless-concat](https://lintradar.dev/rules/eslint/no-useless-concat.md): Disallow unnecessary concatenation of literals or template literals
- [unicorn/no-useless-concat](https://lintradar.dev/rules/unicorn/no-useless-concat.md): Disallow useless concatenation of literals.
- [vue/no-use-v-else-with-v-for](https://lintradar.dev/rules/vue/no-use-v-else-with-v-for.md): Disallow using `v-else-if`/`v-else` on the same element as `v-for`
- [vue/no-v-text](https://lintradar.dev/rules/vue/no-v-text.md): Disallow use of v-text
- [vue/no-undef-properties](https://lintradar.dev/rules/vue/no-undef-properties.md): Disallow undefined properties
- [vue/prefer-prop-type-boolean-first](https://lintradar.dev/rules/vue/prefer-prop-type-boolean-first.md): Enforce `Boolean` comes first in component prop types

---

Web page: https://lintradar.dev/rules/vue/no-useless-concat. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
