/** * Copyright (c) 2025 Ofri Peretz * Licensed under the MIT License. Use of this source code is governed by the * MIT license that can be found in the LICENSE file. */ /** * ESLint Rule: no-keyboard-inaccessible-elements * Detects clickable divs without keyboard support * * @see https://www.w3.org/WAI/WCAG21/Understanding/keyboard.html */ import type { TSESLint } from '@interlace/eslint-devkit'; type MessageIds = 'keyboardInaccessible' | 'addTabIndex' | 'addAriaRole' | 'useButton'; export interface Options { /** Ignore in test files. Default: true */ ignoreInTests?: boolean; /** Elements to check. Default: ['div', 'span'] */ checkElements?: string[]; } type RuleOptions = [Options?]; export declare const noKeyboardInaccessibleElements: TSESLint.RuleModule & { name: string; }; export {};