Skip to content

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/essential", *.configs["flat/essential"], "plugin:vue/strongly-recommended", *.configs["flat/strongly-recommended"], "plugin:vue/recommended" and *.configs["flat/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>
Now loading...

🔧 Options

Nothing.

📚 Further Reading

🚀 Version

This rule was introduced in eslint-plugin-vue v7.0.0

🔍 Implementation