# no-useless-mustaches

Rule `vue/no-useless-mustaches`. Disallow unnecessary mustache interpolations

- 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: #2076 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/no-useless-mustaches` | no | safe | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/no-useless-mustaches.html) |

## Code examples

### Incorrect: the rule reports this

```vue
  {{ 'Lorem ipsum' }}
  {{ "Lorem ipsum" }}
  {{ `Lorem ipsum` }}
</template>
```

```vue
  {{ 'Lorem ipsum' }}
</template>
```

### Correct: the rule accepts this

```vue
Lorem ipsum
{{ foo }}
```

```vue
{{ 'Lorem ipsum'/* comment */ }}
```

```vue
  {{ 'Lorem \n ipsum' }}
</template>
```

Examples from the ESLint documentation.

## Enable it

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

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

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

## Related rules

- [vue/no-unused-properties](https://lintradar.dev/rules/vue/no-unused-properties.md): Disallow unused properties
- [vue/no-unsupported-features](https://lintradar.dev/rules/vue/no-unsupported-features.md): Disallow unsupported Vue.js syntax on the specified version
- [vue/no-undef-components](https://lintradar.dev/rules/vue/no-undef-components.md): Disallow use of undefined components in `<template>`
- [vue/object-curly-newline](https://lintradar.dev/rules/vue/object-curly-newline.md): Enforce consistent line breaks after opening and before closing braces in `<template>`
- [vue/no-static-inline-styles](https://lintradar.dev/rules/vue/no-static-inline-styles.md): Disallow static inline `style` attributes
- [vue/padding-line-between-tags](https://lintradar.dev/rules/vue/padding-line-between-tags.md): Require or disallow newlines between sibling tags in template

---

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