UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

35 lines (30 loc) 1.06 kB
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface PreferTagOverRoleOption { [k: string]: any; } /** * Options. */ export type PreferTagOverRoleOptions = [PreferTagOverRoleOption?]; /** * Enforces using semantic DOM elements over the ARIA `role` property. * * @see [prefer-tag-over-role](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/prefer-tag-over-role.md) */ export type PreferTagOverRoleRuleConfig = RuleConfig<PreferTagOverRoleOptions>; /** * Enforces using semantic DOM elements over the ARIA `role` property. * * @see [prefer-tag-over-role](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/prefer-tag-over-role.md) */ export interface PreferTagOverRoleRule { /** * Enforces using semantic DOM elements over the ARIA `role` property. * * @see [prefer-tag-over-role](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/prefer-tag-over-role.md) */ 'jsx-a11y/prefer-tag-over-role': PreferTagOverRoleRuleConfig; }