'How to disable "non-interactive elements with click handlers must have at least one keyboard listener" rule in eslint?

Whenever I write an onClick event attribute without an onKeyUp for example, the error Visible, non-interactive elements with click handlers must have at least one keyboard listener is raised by eslint and I can't figure out how to disable this rule. How do I do this?



Solution 1:[1]

'jsx-a11y/click-events-have-key-events': 'off' in your eslint config should disable it.

Solution 2:[2]

Under rules in .eslintrc.js

vuejs-accessibility/click-events-have-key-events': 'off',

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Gabriel Bleu
Solution 2 Joseph