Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.52 KB

no-deprecated-v-on-native-modifier.md

File metadata and controls

55 lines (36 loc) · 1.52 KB
pageClass sidebarDepth title description since
rule-details
0
vue/no-deprecated-v-on-native-modifier
disallow using deprecated `.native` modifiers (in Vue.js 3.0.0+)
v7.0.0

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

🔍 Implementation