# use-v-on-exact

Rule `vue/use-v-on-exact`. Enforce usage of `exact` modifier on `v-on`

- Source: vue
- Technologies: Vue
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 42.4M weekly downloads of presets that enable it
- Trend: +88.4% last quarter
- Rank: #370 by reach, #362 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/use-v-on-exact` | yes | no | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/use-v-on-exact.html) |
| Biome | `nursery/useVueVOnExact` | yes | no | group nursery, since 2.6.3 | [docs](https://biomejs.dev/linter/rules/use-vue-v-on-exact/) |

## Code examples

### Incorrect: the rule reports this

```vue
  <button v-on:click="foo" v-on:click.ctrl="foo"></button>
</template>
```

### Correct: the rule accepts this

```vue
<button @click="foo" :click="foo"></button>
<button v-on:click.exact="foo" v-on:click.ctrl="foo"></button>
```

Examples from the ESLint documentation.

## Enable it

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

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

export default [
  {
    plugins: { vue },
    rules: {
      "vue/use-v-on-exact": "error",
    },
  },
];
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "useVueVOnExact": "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 essential](https://lintradar.dev/presets/vue-essential.md) | ESLint | `eslint-plugin-vue` | 85 | 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-valid-default-prop](https://lintradar.dev/rules/vue/require-valid-default-prop.md): Enforce props default values to be valid
- [vue/valid-attribute-name](https://lintradar.dev/rules/vue/valid-attribute-name.md): Require valid attribute names
- [vue/require-v-for-key](https://lintradar.dev/rules/vue/require-v-for-key.md): Require `v-bind:key` with `v-for` directives
- [vue/valid-template-root](https://lintradar.dev/rules/vue/valid-template-root.md): Enforce valid template root
- [vue/require-toggle-inside-transition](https://lintradar.dev/rules/vue/require-toggle-inside-transition.md): Require control the display of the content inside `<transition>`
- [vue/valid-v-bind](https://lintradar.dev/rules/vue/valid-v-bind.md): Enforce valid `v-bind` directives

---

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