JS.VUE.NO.DEPRECATED.V.ON.NATIVE.MODIFIER
Disallow using deprecated '.native' modifiers (in Vue.js 3.0.0+)
Rule Details
This rule reports use of deprecated .native
modifier on v-on
directive (in Vue.js 3.0.0+)
{'vue/no-deprecated-v-on-native-modifier': ['error']}
Copy
<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.
Further Reading
- Vue RFCs - 0031-attr-fallthrough (https://github.com/vuejs/rfcs/blob/master/active-rfcs/0031-attr-fallthrough.md)