# v-bind-style

Rule `vue/v-bind-style`. Enforce `v-bind` directive style

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

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/v-bind-style` | yes | safe | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/v-bind-style.html) |
| Biome | `style/useVueConsistentVBindStyle` | yes | unsafe | group style, since 2.3.11 | [docs](https://biomejs.dev/linter/rules/use-vue-consistent-v-bind-style/) |

## Code examples

### Incorrect: the rule reports this

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

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

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

### Correct: the rule accepts this

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

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

```vue
<div :foo />
```

Examples from the ESLint documentation.

## Enable it

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

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

export default [
  {
    plugins: { vue },
    rules: {
      "vue/v-bind-style": "error",
    },
  },
];
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "style": {
        "useVueConsistentVBindStyle": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [Vue recommended](https://lintradar.dev/presets/vue-recommended.md) | ESLint | `eslint-plugin-vue` | 118 | 9.5M | +46.6% |
| [Vue strongly recommended](https://lintradar.dev/presets/vue-strongly-recommended.md) | ESLint | `eslint-plugin-vue` | 110 | 9.5M | +46.6% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |
| [Nuxt](https://lintradar.dev/presets/nuxt.md) | ESLint | `@nuxt/eslint-config` | 188 | 1.5M | +72.8% |
| [Anthony Fu's config](https://lintradar.dev/presets/antfu.md) | ESLint | `@antfu/eslint-config` | 294 | 758.7K | +49.9% |

## Related rules

- [vue/require-explicit-emits](https://lintradar.dev/rules/vue/require-explicit-emits.md): Require `emits` option with name triggered by `$emit()`
- [vue/v-on-style](https://lintradar.dev/rules/vue/v-on-style.md): Enforce `v-on` directive style
- [vue/one-component-per-file](https://lintradar.dev/rules/vue/one-component-per-file.md): Enforce that each component should be in its own file
- [vue/v-slot-style](https://lintradar.dev/rules/vue/v-slot-style.md): Enforce `v-slot` directive style
- [vue/no-template-shadow](https://lintradar.dev/rules/vue/no-template-shadow.md): Disallow variable declarations from shadowing variables declared in the outer scope
- [vue/no-multiple-slot-args](https://lintradar.dev/rules/vue/no-multiple-slot-args.md): Disallow passing multiple arguments to scoped slots

---

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