# no-shadow-native-events

Rule `vue/no-shadow-native-events`. Disallow the use of event names that collide with native web event names

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

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/no-shadow-native-events` | no | no | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/no-shadow-native-events.html) |
| Biome | `nursery/noVueShadowNativeEvents` | no | no | group nursery, since 2.6.0 | [docs](https://biomejs.dev/linter/rules/no-vue-shadow-native-events/) |

## Code examples

### Incorrect: the rule reports this

```vue
  <button @click="$emit('click')">Close</button>
</template>
```

### Correct: the rule accepts this

```vue
<button @click="$emit('close')">Close</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/no-shadow-native-events": "error",
    },
  },
];
```

### Biome: `biome.json`

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

## Related rules

- [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-template-target-blank](https://lintradar.dev/rules/vue/no-template-target-blank.md): Disallow target="_blank" attribute without rel="noopener noreferrer"
- [vue/no-restricted-v-on](https://lintradar.dev/rules/vue/no-restricted-v-on.md): Disallow specific argument in `v-on`
- [vue/no-undef-directives](https://lintradar.dev/rules/vue/no-undef-directives.md): Disallow use of undefined custom directives
- [vue/no-restricted-html-elements](https://lintradar.dev/rules/vue/no-restricted-html-elements.md): Disallow specific elements
- [vue/no-undef-properties](https://lintradar.dev/rules/vue/no-undef-properties.md): Disallow undefined properties

---

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