# no-restricted-v-on

Rule `vue/no-restricted-v-on`. Disallow specific argument in `v-on`

- Source: vue
- Technologies: Vue
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1835 by reach

## Linters

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

## Code examples

### Incorrect: the rule reports this

```vue
  <div v-on:foo="x" />
  <div @bar-baz="x" />
</template>
```

```vue
  <div @foo.prevent="x" />
</template>
```

```vue
  <MyButton @foo="x" />
</template>
```

### Correct: the rule accepts this

```vue
<div v-on:click="x" />
<div @tap="x" />
```

```vue
<div @foo="x" />
```

```vue
<CoolButton @foo="x" />
```

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-restricted-v-on": "error",
    },
  },
];
```

### Biome: `biome.json`

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

## Related rules

- [vue/no-restricted-html-elements](https://lintradar.dev/rules/vue/no-restricted-html-elements.md): Disallow specific elements
- [vue/no-setup-props-reactivity-loss](https://lintradar.dev/rules/vue/no-setup-props-reactivity-loss.md): Disallow usages that lose the reactivity of `props` passed to `setup`
- [vue/no-restricted-component-options](https://lintradar.dev/rules/vue/no-restricted-component-options.md): Disallow specific component option
- [vue/no-shadow-native-events](https://lintradar.dev/rules/vue/no-shadow-native-events.md): Disallow the use of event names that collide with native web event names
- [vue/no-restricted-call-after-await](https://lintradar.dev/rules/vue/no-restricted-call-after-await.md): Disallow asynchronously called restricted methods
- [vue/no-template-target-blank](https://lintradar.dev/rules/vue/no-template-target-blank.md): Disallow target="_blank" attribute without rel="noopener noreferrer"

---

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