# vue/no-deprecated-v-on-native-modifier
disallow using deprecated
.native
modifiers (in Vue.js 3.0.0+)
- ⚙️ This rule is included in all of
"plugin:vue/vue3-essential"
,"plugin:vue/vue3-strongly-recommended"
and"plugin:vue/vue3-recommended"
.
# 📖 Rule Details
This rule reports use of deprecated .native
modifier on v-on
directive (in Vue.js 3.0.0+)
<template>
<!-- ✓ GOOD -->
<CoolInput v-on:keydown.enter="onKeydownEnter" />
<CoolInput @keydown.enter="onKeydownEnter" />
<!-- ✗ BAD -->
<CoolInput v-on:keydown.native="onKeydown" />
<CoolInput @keydown.enter.native="onKeydownEnter" />
</template>
# 🔧 Options
Nothing.
# 👫 Related Rules
# 📚 Further Reading
# 🚀 Version
This rule was introduced in eslint-plugin-vue v7.0.0