@w5s/eslint-config 3.14.0 → 3.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/eslint-config",
3
- "version": "3.14.0",
3
+ "version": "3.16.0",
4
4
  "description": "ESLint configuration presets",
5
5
  "keywords": [
6
6
  "eslint",
@@ -45,9 +45,9 @@
45
45
  "@typescript-eslint/eslint-plugin": "^8.0.0",
46
46
  "@typescript-eslint/parser": "^8.0.0",
47
47
  "@vitest/eslint-plugin": "~1.6.20",
48
- "@w5s/dev": "^3.5.0",
49
- "@w5s/eslint-config-ignore": "^1.4.0",
50
- "@w5s/prettier-config": "^3.1.18",
48
+ "@w5s/dev": "^3.7.0",
49
+ "@w5s/eslint-config-ignore": "^1.6.0",
50
+ "@w5s/prettier-config": "^3.1.20",
51
51
  "eslint-merge-processors": "^2.0.0",
52
52
  "eslint-plugin-import": "~2.32.0",
53
53
  "eslint-plugin-jsdoc": "~63.0.0",
@@ -63,12 +63,16 @@
63
63
  },
64
64
  "peerDependencies": {
65
65
  "eslint": "9.x || 10.x",
66
+ "eslint-plugin-jsx-a11y": ">=6.10.2",
66
67
  "typescript": "4.x || 5.x || 6.x"
67
68
  },
68
69
  "peerDependenciesMeta": {
69
70
  "eslint": {
70
71
  "optional": true
71
72
  },
73
+ "eslint-plugin-jsx-a11y": {
74
+ "optional": true
75
+ },
72
76
  "typescript": {
73
77
  "optional": true
74
78
  }
@@ -80,5 +84,5 @@
80
84
  "access": "public"
81
85
  },
82
86
  "sideEffect": false,
83
- "gitHead": "2d215d8f8c7c57653b9f0ef5674ffc2e7beeea5c"
87
+ "gitHead": "488ae0c9dcf081e3bf443c0cbc410a0fa8f10b12"
84
88
  }
@@ -0,0 +1,51 @@
1
+ import { interopDefault } from '@w5s/dev';
2
+
3
+ import type { RuleOptions } from '../typegen/jsx-a11y.js';
4
+
5
+ import { jsxSourceGlob } from '../glob.js';
6
+ import { withDefaultFiles } from '../internal/withDefaultFiles.js';
7
+ import { type Config, type PluginOptionsBase } from '../type.js';
8
+
9
+ const defaultFiles = [jsxSourceGlob];
10
+
11
+ export async function jsx(options: jsx.Options = {}) {
12
+ const { files, jsxA11y = false, recommended = true, rules = {} } = options;
13
+ const [jsxA11yPlugin] = await Promise.all([
14
+ jsxA11y ? interopDefault(import('eslint-plugin-jsx-a11y')) : undefined,
15
+ ] as const);
16
+ return [
17
+ {
18
+ languageOptions: {
19
+ parserOptions: {
20
+ ecmaFeatures: {
21
+ jsx: true,
22
+ },
23
+ },
24
+ sourceType: 'module',
25
+ },
26
+ name: 'w5s/jsx/setup',
27
+ plugins: {
28
+ ...(jsxA11yPlugin ? { 'jsx-a11y': jsxA11yPlugin } : {}),
29
+ },
30
+ },
31
+ {
32
+ files: withDefaultFiles(files, defaultFiles),
33
+ name: 'w5s/jsx/rules',
34
+ rules: {
35
+ ...(recommended && jsxA11yPlugin != null ? jsxA11yPlugin.configs['recommended'].rules : {}),
36
+ ...rules,
37
+ },
38
+ },
39
+ ] as [Config, Config] satisfies Array<Config>;
40
+ }
41
+
42
+ export namespace jsx {
43
+ export interface Options extends Omit<PluginOptionsBase<Rules>, 'stylistic'> {
44
+ /**
45
+ * Enable jsx-a11y plugin. Defaults to false.
46
+ */
47
+ jsxA11y?: boolean;
48
+ }
49
+
50
+ export type Rules = RuleOptions;
51
+ }
@@ -2,6 +2,7 @@ import { interopDefault } from '@w5s/dev';
2
2
 
3
3
  import type { RuleOptions } from '../typegen/react.js';
4
4
 
5
+ import { ESLintConfig } from '../../../dev/dist/index.cjs';
5
6
  import { sourceGlob } from '../glob.js';
6
7
  import { withDefaultFiles } from '../internal/withDefaultFiles.js';
7
8
  import { type Config, type PluginOptionsBase } from '../type.js';
@@ -12,7 +13,7 @@ export async function react(options: react.Options = {}) {
12
13
  const [reactPlugin] = await Promise.all([
13
14
  interopDefault(import('@eslint-react/eslint-plugin')),
14
15
  ] as const);
15
- const { files, recommended, rules = {} } = options;
16
+ const { files, recommended = true, rules = {} } = options;
16
17
  return [
17
18
  {
18
19
  name: 'w5s/react/setup',
@@ -32,7 +33,8 @@ export async function react(options: react.Options = {}) {
32
33
  },
33
34
  name: 'w5s/react/rules',
34
35
  rules: {
35
- ...(recommended ? reactPlugin.configs['recommended'].rules : {}),
36
+ // eslint-disable-next-line ts/no-non-null-assertion
37
+ ...(recommended ? ESLintConfig.renameRules(reactPlugin.configs['recommended'].rules!, { '@eslint-react': 'react' }) : {}),
36
38
  ...rules,
37
39
  },
38
40
  },
package/src/config.ts CHANGED
@@ -4,6 +4,7 @@ export * from './config/ignores.js';
4
4
  export * from './config/imports.js';
5
5
  export * from './config/jsdoc.js';
6
6
  export * from './config/jsonc.js';
7
+ export * from './config/jsx.js';
7
8
  export * from './config/markdown.js';
8
9
  export * from './config/next.js';
9
10
  export * from './config/node.js';
@@ -11,6 +11,7 @@ import {
11
11
  imports,
12
12
  jsdoc,
13
13
  jsonc,
14
+ jsx,
14
15
  markdown,
15
16
  next,
16
17
  node,
@@ -33,6 +34,7 @@ export interface DefineConfigOptions extends ignores.Options {
33
34
  import?: boolean | imports.Options;
34
35
  jsdoc?: boolean | jsdoc.Options;
35
36
  jsonc?: boolean | jsonc.Options;
37
+ jsx?: boolean | jsx.Options;
36
38
  markdown?: boolean | markdown.Options;
37
39
  next?: boolean | next.Options;
38
40
  node?: boolean | node.Options;
@@ -77,6 +79,7 @@ export async function defineConfig(options: DefineConfigOptions = {}) {
77
79
  ...includeEnabled(ignores, toOption(options)),
78
80
  ...includeEnabled(jsonc, toOption(plugins.jsonc)),
79
81
  ...includeEnabled(jsdoc, toOption(plugins.jsdoc)),
82
+ ...includeEnabled(jsx, toOption(plugins.jsx)),
80
83
  ...includeEnabled(react, toOption(plugins.react)),
81
84
  ...includeEnabled(stylistic, toOption(plugins.stylistic)),
82
85
  ...includeEnabled(imports, toOption(plugins.import)),
package/src/glob.ts CHANGED
@@ -4,6 +4,8 @@ export const sourceGlob = `**/${Project.extensionsToGlob(Project.sourceExtension
4
4
 
5
5
  export const esSourceGlob = `**/${Project.extensionsToGlob(Project.queryExtensions(['javascript', 'javascriptreact']))}`;
6
6
 
7
+ export const jsxSourceGlob = `**/${Project.extensionsToGlob(Project.queryExtensions(['javascriptreact', 'typescriptreact']))}`;
8
+
7
9
  export const jsonSourceGlob = `**/${Project.extensionsToGlob(['.json', '.json5', '.jsonc'])}`;
8
10
 
9
11
  export const tsSourceGlob = `**/${Project.extensionsToGlob(Project.queryExtensions(['typescript', 'typescriptreact']))}`;
@@ -0,0 +1,427 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ import type { Linter } from 'eslint'
4
+
5
+ declare module 'eslint' {
6
+ namespace Linter {
7
+ interface RulesRecord extends RuleOptions {}
8
+ }
9
+ }
10
+
11
+ export interface RuleOptions {
12
+ /**
13
+ * Enforce emojis are wrapped in `<span>` and provide screen reader access.
14
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/accessible-emoji.md
15
+ * @deprecated
16
+ */
17
+ 'jsx-a11y/accessible-emoji'?: Linter.RuleEntry<JsxA11YAccessibleEmoji>
18
+ /**
19
+ * Enforce all elements that require alternative text have meaningful information to relay back to end user.
20
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/alt-text.md
21
+ */
22
+ 'jsx-a11y/alt-text'?: Linter.RuleEntry<JsxA11YAltText>
23
+ /**
24
+ * Enforce `<a>` text to not exactly match "click here", "here", "link", or "a link".
25
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/anchor-ambiguous-text.md
26
+ */
27
+ 'jsx-a11y/anchor-ambiguous-text'?: Linter.RuleEntry<JsxA11YAnchorAmbiguousText>
28
+ /**
29
+ * Enforce all anchors to contain accessible content.
30
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/anchor-has-content.md
31
+ */
32
+ 'jsx-a11y/anchor-has-content'?: Linter.RuleEntry<JsxA11YAnchorHasContent>
33
+ /**
34
+ * Enforce all anchors are valid, navigable elements.
35
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/anchor-is-valid.md
36
+ */
37
+ 'jsx-a11y/anchor-is-valid'?: Linter.RuleEntry<JsxA11YAnchorIsValid>
38
+ /**
39
+ * Enforce elements with aria-activedescendant are tabbable.
40
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-activedescendant-has-tabindex.md
41
+ */
42
+ 'jsx-a11y/aria-activedescendant-has-tabindex'?: Linter.RuleEntry<JsxA11YAriaActivedescendantHasTabindex>
43
+ /**
44
+ * Enforce all `aria-*` props are valid.
45
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-props.md
46
+ */
47
+ 'jsx-a11y/aria-props'?: Linter.RuleEntry<JsxA11YAriaProps>
48
+ /**
49
+ * Enforce ARIA state and property values are valid.
50
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-proptypes.md
51
+ */
52
+ 'jsx-a11y/aria-proptypes'?: Linter.RuleEntry<JsxA11YAriaProptypes>
53
+ /**
54
+ * Enforce that elements with ARIA roles must use a valid, non-abstract ARIA role.
55
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-role.md
56
+ */
57
+ 'jsx-a11y/aria-role'?: Linter.RuleEntry<JsxA11YAriaRole>
58
+ /**
59
+ * Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.
60
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-unsupported-elements.md
61
+ */
62
+ 'jsx-a11y/aria-unsupported-elements'?: Linter.RuleEntry<JsxA11YAriaUnsupportedElements>
63
+ /**
64
+ * Enforce that autocomplete attributes are used correctly.
65
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/autocomplete-valid.md
66
+ */
67
+ 'jsx-a11y/autocomplete-valid'?: Linter.RuleEntry<JsxA11YAutocompleteValid>
68
+ /**
69
+ * Enforce a clickable non-interactive element has at least one keyboard event listener.
70
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/click-events-have-key-events.md
71
+ */
72
+ 'jsx-a11y/click-events-have-key-events'?: Linter.RuleEntry<JsxA11YClickEventsHaveKeyEvents>
73
+ /**
74
+ * Enforce that a control (an interactive element) has a text label.
75
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/control-has-associated-label.md
76
+ */
77
+ 'jsx-a11y/control-has-associated-label'?: Linter.RuleEntry<JsxA11YControlHasAssociatedLabel>
78
+ /**
79
+ * Enforce heading (`h1`, `h2`, etc) elements contain accessible content.
80
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/heading-has-content.md
81
+ */
82
+ 'jsx-a11y/heading-has-content'?: Linter.RuleEntry<JsxA11YHeadingHasContent>
83
+ /**
84
+ * Enforce `<html>` element has `lang` prop.
85
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/html-has-lang.md
86
+ */
87
+ 'jsx-a11y/html-has-lang'?: Linter.RuleEntry<JsxA11YHtmlHasLang>
88
+ /**
89
+ * Enforce iframe elements have a title attribute.
90
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/iframe-has-title.md
91
+ */
92
+ 'jsx-a11y/iframe-has-title'?: Linter.RuleEntry<JsxA11YIframeHasTitle>
93
+ /**
94
+ * Enforce `<img>` alt prop does not contain the word "image", "picture", or "photo".
95
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/img-redundant-alt.md
96
+ */
97
+ 'jsx-a11y/img-redundant-alt'?: Linter.RuleEntry<JsxA11YImgRedundantAlt>
98
+ /**
99
+ * Enforce that elements with interactive handlers like `onClick` must be focusable.
100
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/interactive-supports-focus.md
101
+ */
102
+ 'jsx-a11y/interactive-supports-focus'?: Linter.RuleEntry<JsxA11YInteractiveSupportsFocus>
103
+ /**
104
+ * Enforce that a `label` tag has a text label and an associated control.
105
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/label-has-associated-control.md
106
+ */
107
+ 'jsx-a11y/label-has-associated-control'?: Linter.RuleEntry<JsxA11YLabelHasAssociatedControl>
108
+ /**
109
+ * Enforce that `<label>` elements have the `htmlFor` prop.
110
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/label-has-for.md
111
+ * @deprecated
112
+ */
113
+ 'jsx-a11y/label-has-for'?: Linter.RuleEntry<JsxA11YLabelHasFor>
114
+ /**
115
+ * Enforce lang attribute has a valid value.
116
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/lang.md
117
+ */
118
+ 'jsx-a11y/lang'?: Linter.RuleEntry<JsxA11YLang>
119
+ /**
120
+ * Enforces that `<audio>` and `<video>` elements must have a `<track>` for captions.
121
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/media-has-caption.md
122
+ */
123
+ 'jsx-a11y/media-has-caption'?: Linter.RuleEntry<JsxA11YMediaHasCaption>
124
+ /**
125
+ * Enforce that `onMouseOver`/`onMouseOut` are accompanied by `onFocus`/`onBlur` for keyboard-only users.
126
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/mouse-events-have-key-events.md
127
+ */
128
+ 'jsx-a11y/mouse-events-have-key-events'?: Linter.RuleEntry<JsxA11YMouseEventsHaveKeyEvents>
129
+ /**
130
+ * Enforce that the `accessKey` prop is not used on any element to avoid complications with keyboard commands used by a screen reader.
131
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-access-key.md
132
+ */
133
+ 'jsx-a11y/no-access-key'?: Linter.RuleEntry<JsxA11YNoAccessKey>
134
+ /**
135
+ * Disallow `aria-hidden="true"` from being set on focusable elements.
136
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-aria-hidden-on-focusable.md
137
+ */
138
+ 'jsx-a11y/no-aria-hidden-on-focusable'?: Linter.RuleEntry<JsxA11YNoAriaHiddenOnFocusable>
139
+ /**
140
+ * Enforce autoFocus prop is not used.
141
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-autofocus.md
142
+ */
143
+ 'jsx-a11y/no-autofocus'?: Linter.RuleEntry<JsxA11YNoAutofocus>
144
+ /**
145
+ * Enforce distracting elements are not used.
146
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-distracting-elements.md
147
+ */
148
+ 'jsx-a11y/no-distracting-elements'?: Linter.RuleEntry<JsxA11YNoDistractingElements>
149
+ /**
150
+ * Interactive elements should not be assigned non-interactive roles.
151
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-interactive-element-to-noninteractive-role.md
152
+ */
153
+ 'jsx-a11y/no-interactive-element-to-noninteractive-role'?: Linter.RuleEntry<JsxA11YNoInteractiveElementToNoninteractiveRole>
154
+ /**
155
+ * Non-interactive elements should not be assigned mouse or keyboard event listeners.
156
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-noninteractive-element-interactions.md
157
+ */
158
+ 'jsx-a11y/no-noninteractive-element-interactions'?: Linter.RuleEntry<JsxA11YNoNoninteractiveElementInteractions>
159
+ /**
160
+ * Non-interactive elements should not be assigned interactive roles.
161
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-noninteractive-element-to-interactive-role.md
162
+ */
163
+ 'jsx-a11y/no-noninteractive-element-to-interactive-role'?: Linter.RuleEntry<JsxA11YNoNoninteractiveElementToInteractiveRole>
164
+ /**
165
+ * `tabIndex` should only be declared on interactive elements.
166
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-noninteractive-tabindex.md
167
+ */
168
+ 'jsx-a11y/no-noninteractive-tabindex'?: Linter.RuleEntry<JsxA11YNoNoninteractiveTabindex>
169
+ /**
170
+ * Enforce usage of `onBlur` over `onChange` on select menus for accessibility.
171
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-onchange.md
172
+ * @deprecated
173
+ */
174
+ 'jsx-a11y/no-onchange'?: Linter.RuleEntry<JsxA11YNoOnchange>
175
+ /**
176
+ * Enforce explicit role property is not the same as implicit/default role property on element.
177
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-redundant-roles.md
178
+ */
179
+ 'jsx-a11y/no-redundant-roles'?: Linter.RuleEntry<JsxA11YNoRedundantRoles>
180
+ /**
181
+ * Enforce that non-interactive, visible elements (such as `<div>`) that have click handlers use the role attribute.
182
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-static-element-interactions.md
183
+ */
184
+ 'jsx-a11y/no-static-element-interactions'?: Linter.RuleEntry<JsxA11YNoStaticElementInteractions>
185
+ /**
186
+ * Enforces using semantic DOM elements over the ARIA `role` property.
187
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/prefer-tag-over-role.md
188
+ */
189
+ 'jsx-a11y/prefer-tag-over-role'?: Linter.RuleEntry<JsxA11YPreferTagOverRole>
190
+ /**
191
+ * Enforce that elements with ARIA roles must have all required attributes for that role.
192
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/role-has-required-aria-props.md
193
+ */
194
+ 'jsx-a11y/role-has-required-aria-props'?: Linter.RuleEntry<JsxA11YRoleHasRequiredAriaProps>
195
+ /**
196
+ * Enforce that elements with explicit or implicit roles defined contain only `aria-*` properties supported by that `role`.
197
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/role-supports-aria-props.md
198
+ */
199
+ 'jsx-a11y/role-supports-aria-props'?: Linter.RuleEntry<JsxA11YRoleSupportsAriaProps>
200
+ /**
201
+ * Enforce `scope` prop is only used on `<th>` elements.
202
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/scope.md
203
+ */
204
+ 'jsx-a11y/scope'?: Linter.RuleEntry<JsxA11YScope>
205
+ /**
206
+ * Enforce `tabIndex` value is not greater than zero.
207
+ * @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/tabindex-no-positive.md
208
+ */
209
+ 'jsx-a11y/tabindex-no-positive'?: Linter.RuleEntry<JsxA11YTabindexNoPositive>
210
+ }
211
+
212
+ /* ======= Declarations ======= */
213
+ // ----- jsx-a11y/accessible-emoji -----
214
+ type JsxA11YAccessibleEmoji = []|[{
215
+ [k: string]: unknown | undefined
216
+ }]
217
+ // ----- jsx-a11y/alt-text -----
218
+ type JsxA11YAltText = []|[{
219
+ elements?: string[]
220
+ img?: string[]
221
+ object?: string[]
222
+ area?: string[]
223
+ "input[type=\"image\"]"?: string[]
224
+ [k: string]: unknown | undefined
225
+ }]
226
+ // ----- jsx-a11y/anchor-ambiguous-text -----
227
+ type JsxA11YAnchorAmbiguousText = []|[{
228
+ words?: string[]
229
+ [k: string]: unknown | undefined
230
+ }]
231
+ // ----- jsx-a11y/anchor-has-content -----
232
+ type JsxA11YAnchorHasContent = []|[{
233
+ components?: string[]
234
+ [k: string]: unknown | undefined
235
+ }]
236
+ // ----- jsx-a11y/anchor-is-valid -----
237
+ type JsxA11YAnchorIsValid = []|[{
238
+ components?: string[]
239
+ specialLink?: string[]
240
+
241
+ aspects?: [("noHref" | "invalidHref" | "preferButton"), ...(("noHref" | "invalidHref" | "preferButton"))[]]
242
+ [k: string]: unknown | undefined
243
+ }]
244
+ // ----- jsx-a11y/aria-activedescendant-has-tabindex -----
245
+ type JsxA11YAriaActivedescendantHasTabindex = []|[{
246
+ [k: string]: unknown | undefined
247
+ }]
248
+ // ----- jsx-a11y/aria-props -----
249
+ type JsxA11YAriaProps = []|[{
250
+ [k: string]: unknown | undefined
251
+ }]
252
+ // ----- jsx-a11y/aria-proptypes -----
253
+ type JsxA11YAriaProptypes = []|[{
254
+ [k: string]: unknown | undefined
255
+ }]
256
+ // ----- jsx-a11y/aria-role -----
257
+ type JsxA11YAriaRole = []|[{
258
+ allowedInvalidRoles?: string[]
259
+ ignoreNonDOM?: boolean
260
+ [k: string]: unknown | undefined
261
+ }]
262
+ // ----- jsx-a11y/aria-unsupported-elements -----
263
+ type JsxA11YAriaUnsupportedElements = []|[{
264
+ [k: string]: unknown | undefined
265
+ }]
266
+ // ----- jsx-a11y/autocomplete-valid -----
267
+ type JsxA11YAutocompleteValid = []|[{
268
+ inputComponents?: string[]
269
+ [k: string]: unknown | undefined
270
+ }]
271
+ // ----- jsx-a11y/click-events-have-key-events -----
272
+ type JsxA11YClickEventsHaveKeyEvents = []|[{
273
+ [k: string]: unknown | undefined
274
+ }]
275
+ // ----- jsx-a11y/control-has-associated-label -----
276
+ type JsxA11YControlHasAssociatedLabel = []|[{
277
+ labelAttributes?: string[]
278
+ controlComponents?: string[]
279
+ ignoreElements?: string[]
280
+ ignoreRoles?: string[]
281
+
282
+ depth?: number
283
+ [k: string]: unknown | undefined
284
+ }]
285
+ // ----- jsx-a11y/heading-has-content -----
286
+ type JsxA11YHeadingHasContent = []|[{
287
+ components?: string[]
288
+ [k: string]: unknown | undefined
289
+ }]
290
+ // ----- jsx-a11y/html-has-lang -----
291
+ type JsxA11YHtmlHasLang = []|[{
292
+ [k: string]: unknown | undefined
293
+ }]
294
+ // ----- jsx-a11y/iframe-has-title -----
295
+ type JsxA11YIframeHasTitle = []|[{
296
+ [k: string]: unknown | undefined
297
+ }]
298
+ // ----- jsx-a11y/img-redundant-alt -----
299
+ type JsxA11YImgRedundantAlt = []|[{
300
+ components?: string[]
301
+ words?: string[]
302
+ [k: string]: unknown | undefined
303
+ }]
304
+ // ----- jsx-a11y/interactive-supports-focus -----
305
+ type JsxA11YInteractiveSupportsFocus = []|[{
306
+
307
+ tabbable?: ("button" | "checkbox" | "columnheader" | "combobox" | "grid" | "gridcell" | "link" | "listbox" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "option" | "progressbar" | "radio" | "radiogroup" | "row" | "rowheader" | "scrollbar" | "searchbox" | "slider" | "spinbutton" | "switch" | "tab" | "tablist" | "textbox" | "tree" | "treegrid" | "treeitem" | "doc-backlink" | "doc-biblioref" | "doc-glossref" | "doc-noteref")[]
308
+ [k: string]: unknown | undefined
309
+ }]
310
+ // ----- jsx-a11y/label-has-associated-control -----
311
+ type JsxA11YLabelHasAssociatedControl = []|[{
312
+ labelComponents?: string[]
313
+ labelAttributes?: string[]
314
+ controlComponents?: string[]
315
+
316
+ assert?: ("htmlFor" | "nesting" | "both" | "either")
317
+
318
+ depth?: number
319
+ [k: string]: unknown | undefined
320
+ }]
321
+ // ----- jsx-a11y/label-has-for -----
322
+ type JsxA11YLabelHasFor = []|[{
323
+ components?: string[]
324
+ required?: (("nesting" | "id") | {
325
+
326
+ some: ("nesting" | "id")[]
327
+ [k: string]: unknown | undefined
328
+ } | {
329
+
330
+ every: ("nesting" | "id")[]
331
+ [k: string]: unknown | undefined
332
+ })
333
+ allowChildren?: boolean
334
+ [k: string]: unknown | undefined
335
+ }]
336
+ // ----- jsx-a11y/lang -----
337
+ type JsxA11YLang = []|[{
338
+ [k: string]: unknown | undefined
339
+ }]
340
+ // ----- jsx-a11y/media-has-caption -----
341
+ type JsxA11YMediaHasCaption = []|[{
342
+ audio?: string[]
343
+ video?: string[]
344
+ track?: string[]
345
+ [k: string]: unknown | undefined
346
+ }]
347
+ // ----- jsx-a11y/mouse-events-have-key-events -----
348
+ type JsxA11YMouseEventsHaveKeyEvents = []|[{
349
+
350
+ hoverInHandlers?: string[]
351
+
352
+ hoverOutHandlers?: string[]
353
+ [k: string]: unknown | undefined
354
+ }]
355
+ // ----- jsx-a11y/no-access-key -----
356
+ type JsxA11YNoAccessKey = []|[{
357
+ [k: string]: unknown | undefined
358
+ }]
359
+ // ----- jsx-a11y/no-aria-hidden-on-focusable -----
360
+ type JsxA11YNoAriaHiddenOnFocusable = []|[{
361
+ [k: string]: unknown | undefined
362
+ }]
363
+ // ----- jsx-a11y/no-autofocus -----
364
+ type JsxA11YNoAutofocus = []|[{
365
+ ignoreNonDOM?: boolean
366
+ [k: string]: unknown | undefined
367
+ }]
368
+ // ----- jsx-a11y/no-distracting-elements -----
369
+ type JsxA11YNoDistractingElements = []|[{
370
+
371
+ elements?: ("marquee" | "blink")[]
372
+ [k: string]: unknown | undefined
373
+ }]
374
+ // ----- jsx-a11y/no-interactive-element-to-noninteractive-role -----
375
+ type JsxA11YNoInteractiveElementToNoninteractiveRole = []|[{
376
+ [k: string]: string[] | undefined
377
+ }]
378
+ // ----- jsx-a11y/no-noninteractive-element-interactions -----
379
+ type JsxA11YNoNoninteractiveElementInteractions = []|[{
380
+ handlers?: string[]
381
+ [k: string]: unknown | undefined
382
+ }]
383
+ // ----- jsx-a11y/no-noninteractive-element-to-interactive-role -----
384
+ type JsxA11YNoNoninteractiveElementToInteractiveRole = []|[{
385
+ [k: string]: string[] | undefined
386
+ }]
387
+ // ----- jsx-a11y/no-noninteractive-tabindex -----
388
+ type JsxA11YNoNoninteractiveTabindex = []|[{
389
+
390
+ roles?: string[]
391
+
392
+ tags?: string[]
393
+ [k: string]: unknown | undefined
394
+ }]
395
+ // ----- jsx-a11y/no-onchange -----
396
+ type JsxA11YNoOnchange = []|[{
397
+ [k: string]: unknown | undefined
398
+ }]
399
+ // ----- jsx-a11y/no-redundant-roles -----
400
+ type JsxA11YNoRedundantRoles = []|[{
401
+ [k: string]: string[] | undefined
402
+ }]
403
+ // ----- jsx-a11y/no-static-element-interactions -----
404
+ type JsxA11YNoStaticElementInteractions = []|[{
405
+ handlers?: string[]
406
+ [k: string]: unknown | undefined
407
+ }]
408
+ // ----- jsx-a11y/prefer-tag-over-role -----
409
+ type JsxA11YPreferTagOverRole = []|[{
410
+ [k: string]: unknown | undefined
411
+ }]
412
+ // ----- jsx-a11y/role-has-required-aria-props -----
413
+ type JsxA11YRoleHasRequiredAriaProps = []|[{
414
+ [k: string]: unknown | undefined
415
+ }]
416
+ // ----- jsx-a11y/role-supports-aria-props -----
417
+ type JsxA11YRoleSupportsAriaProps = []|[{
418
+ [k: string]: unknown | undefined
419
+ }]
420
+ // ----- jsx-a11y/scope -----
421
+ type JsxA11YScope = []|[{
422
+ [k: string]: unknown | undefined
423
+ }]
424
+ // ----- jsx-a11y/tabindex-no-positive -----
425
+ type JsxA11YTabindexNoPositive = []|[{
426
+ [k: string]: unknown | undefined
427
+ }]