# vue/no-deprecated-vue-config-keycodes
disallow using deprecated
Vue.config.keyCodes
(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 Vue.config.keyCodes
(in Vue.js 3.0.0+).
See Migration Guide - KeyCode Modifiers (opens new window) for more details.
/* ✗ BAD */
Vue.config.keyCodes = {
// ...
}
# 🔧 Options
Nothing.
# 👫 Related Rules
# 📚 Further Reading
- Migration Guide - KeyCode Modifiers (opens new window)
- Vue RFCs - 0014-drop-keycode-support (opens new window)
- API - Global Config - keyCodes (opens new window)
# 🚀 Version
This rule was introduced in eslint-plugin-vue v7.0.0