# no-useless-v-bind

Rule `vue/no-useless-v-bind`. Disallow unnecessary `v-bind` directives

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

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/no-useless-v-bind` | no | safe | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/no-useless-v-bind.html) |
| Biome | `nursery/noVueUselessVBind` | no | unsafe | group nursery, since 2.6.5 | [docs](https://biomejs.dev/linter/rules/no-vue-useless-v-bind/) |

## Code examples

### Incorrect: the rule reports this

```vue
  <div v-bind:foo="'bar'" />
  <div :foo="'bar'" />
</template>
```

```vue
  <div v-bind:foo="'bar'" />
</template>
```

### Correct: the rule accepts this

```vue
<div foo="bar" />
<div :foo="bar" />
```

```vue
<div v-bind:foo="'bar' /* comment */" />
```

```vue
  <div v-bind:foo="'bar\nbaz'" />
</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-v-bind": "error",
    },
  },
];
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noVueUselessVBind": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Anthony Fu's config](https://lintradar.dev/presets/antfu.md) | ESLint | `@antfu/eslint-config` | 294 | 758.7K | +49.9% |

## Related rules

- [vue/no-unused-refs](https://lintradar.dev/rules/vue/no-unused-refs.md): Disallow unused refs
- [vue/object-shorthand](https://lintradar.dev/rules/vue/object-shorthand.md): Require or disallow method and property shorthand syntax for object literals in `<template>`
- [vue/no-sparse-arrays](https://lintradar.dev/rules/vue/no-sparse-arrays.md): Disallow sparse arrays in `<template>`
- [vue/prefer-template](https://lintradar.dev/rules/vue/prefer-template.md): Require template literals instead of string concatenation in `<template>`
- [vue/no-loss-of-precision](https://lintradar.dev/rules/vue/no-loss-of-precision.md): Disallow literal numbers that lose precision in `<template>`
- [vue/array-bracket-spacing](https://lintradar.dev/rules/vue/array-bracket-spacing.md): Enforce consistent spacing inside array brackets in `<template>`

---

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