JS.VUE.NO.DEPRECATED.VUE.CONFIG.KEYCODES

Disallow using deprecated 'Vue.config.keyCodes' (in Vue.js 3.0.0+)

Rule Details

This rule reports use of deprecated Vue.config.keyCodes (in Vue.js 3.0.0+).

See Migration Guide - KeyCode Modifiers (https://v3-migration.vuejs.org/breaking-changes/keycode-modifiers.html) for more details.

{'vue/no-deprecated-vue-config-keycodes': ['error']}

Copy
/* BAD */
Vue.config.keyCodes = {
  // ...
}

Options

Nothing.

Further Reading

  • [Migration Guide - KeyCode Modifiers]
  • [Vue RFCs - 0014-drop-keycode-support]
  • [API - Global Config - keyCodes]

  • https://v3-migration.vuejs.org/breaking-changes/keycode-modifiers.html

  • https://github.com/vuejs/rfcs/blob/master/active-rfcs/0014-drop-keycode-support.md
  • https://v2.vuejs.org/v2/api/#keyCodes

The content on this page is adapted from the ESLint User Guide. Copyright © OpenJS Foundation and other contributors, www.openjsf.org. All rights reserved. https://eslint.org/docs/rules/