This rule disallows the use of deprecated KeyboardEvent.keyCode modifiers on the v-on directive in Vue.js 3.0.0+. Instead of using numeric key codes (e.g., .34), you should use the KeyboardEvent.key value (e.g., .page-down) or the specific key string (e.g., .9).
This rule is included in the following preset configurations:
*.configs["flat/essential"]*.configs["flat/strongly-recommended"]*.configs["flat/recommended"]"plugin:vue/essential""plugin:vue/strongly-recommended""plugin:vue/recommended"
You can use the --fix option via the ESLint command line to automatically fix some of the problems reported by this rule.
<template>
<!-- ✓ GOOD -->
<input v-on:keyup.page-down="onArrowUp">
<input @keyup.page-down="onArrowUp">
<input @keyup.9="onArrowUp"> <!-- 9 is KeyboardEvent.key -->
<!-- ✗ BAD -->
<input v-on:keyup.34="onArrowUp">
<input @keyup.34="onArrowUp">
</template>