@flint.fyi/jsx 0.3.2 → 0.4.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.
Files changed (93) hide show
  1. package/lib/plugin.d.ts +45 -48
  2. package/lib/plugin.js +0 -2
  3. package/lib/rules/accessKeys.d.ts +0 -1
  4. package/lib/rules/accessKeys.js +1 -3
  5. package/lib/rules/altTexts.d.ts +0 -1
  6. package/lib/rules/altTexts.js +2 -4
  7. package/lib/rules/anchorAmbiguousText.d.ts +0 -1
  8. package/lib/rules/anchorAmbiguousText.js +2 -4
  9. package/lib/rules/anchorContent.d.ts +0 -1
  10. package/lib/rules/anchorContent.js +1 -3
  11. package/lib/rules/anchorValidity.d.ts +0 -1
  12. package/lib/rules/anchorValidity.js +1 -3
  13. package/lib/rules/ariaActiveDescendantTabIndex.d.ts +0 -1
  14. package/lib/rules/ariaActiveDescendantTabIndex.js +2 -4
  15. package/lib/rules/ariaHiddenFocusables.d.ts +0 -1
  16. package/lib/rules/ariaHiddenFocusables.js +2 -4
  17. package/lib/rules/ariaPropTypes.d.ts +0 -1
  18. package/lib/rules/ariaPropTypes.js +10 -12
  19. package/lib/rules/ariaProps.d.ts +0 -1
  20. package/lib/rules/ariaProps.js +2 -4
  21. package/lib/rules/ariaRoleValidity.d.ts +0 -1
  22. package/lib/rules/ariaRoleValidity.js +2 -4
  23. package/lib/rules/ariaUnsupportedElements.d.ts +0 -1
  24. package/lib/rules/ariaUnsupportedElements.js +2 -4
  25. package/lib/rules/autoFocusProps.d.ts +0 -1
  26. package/lib/rules/autoFocusProps.js +1 -3
  27. package/lib/rules/autocomplete.d.ts +0 -1
  28. package/lib/rules/autocomplete.js +4 -10
  29. package/lib/rules/booleanValues.d.ts +0 -1
  30. package/lib/rules/booleanValues.js +1 -3
  31. package/lib/rules/bracedStatements.d.ts +0 -1
  32. package/lib/rules/bracedStatements.js +1 -3
  33. package/lib/rules/buttonTypes.d.ts +0 -1
  34. package/lib/rules/buttonTypes.js +5 -13
  35. package/lib/rules/childrenProps.d.ts +0 -1
  36. package/lib/rules/childrenProps.js +1 -3
  37. package/lib/rules/clickEventKeyEvents.d.ts +0 -1
  38. package/lib/rules/clickEventKeyEvents.js +2 -4
  39. package/lib/rules/commentTextNodes.d.ts +0 -1
  40. package/lib/rules/commentTextNodes.js +0 -2
  41. package/lib/rules/distractingElements.d.ts +0 -1
  42. package/lib/rules/distractingElements.js +2 -4
  43. package/lib/rules/elementChildrenValidity.d.ts +0 -1
  44. package/lib/rules/elementChildrenValidity.js +2 -4
  45. package/lib/rules/headingContents.d.ts +0 -1
  46. package/lib/rules/headingContents.js +2 -4
  47. package/lib/rules/htmlLangs.d.ts +0 -1
  48. package/lib/rules/htmlLangs.js +1 -3
  49. package/lib/rules/iframeTitles.d.ts +0 -1
  50. package/lib/rules/iframeTitles.js +1 -3
  51. package/lib/rules/interactiveElementRoles.d.ts +0 -1
  52. package/lib/rules/interactiveElementRoles.js +3 -5
  53. package/lib/rules/interactiveElementsFocusable.d.ts +0 -1
  54. package/lib/rules/interactiveElementsFocusable.js +5 -7
  55. package/lib/rules/labelAssociatedControls.d.ts +0 -1
  56. package/lib/rules/labelAssociatedControls.js +2 -4
  57. package/lib/rules/langValidity.d.ts +0 -1
  58. package/lib/rules/langValidity.js +1 -3
  59. package/lib/rules/mediaCaptions.d.ts +0 -1
  60. package/lib/rules/mediaCaptions.js +1 -3
  61. package/lib/rules/mouseEventKeyEvents.d.ts +0 -1
  62. package/lib/rules/mouseEventKeyEvents.js +2 -4
  63. package/lib/rules/nonInteractiveElementInteractions.d.ts +0 -1
  64. package/lib/rules/nonInteractiveElementInteractions.js +3 -5
  65. package/lib/rules/nonInteractiveElementRoles.d.ts +0 -1
  66. package/lib/rules/nonInteractiveElementRoles.js +8 -10
  67. package/lib/rules/nonInteractiveElementTabIndexes.d.ts +0 -1
  68. package/lib/rules/nonInteractiveElementTabIndexes.js +3 -5
  69. package/lib/rules/propDuplicates.d.ts +0 -1
  70. package/lib/rules/propDuplicates.js +1 -3
  71. package/lib/rules/roleRedundancies.d.ts +0 -1
  72. package/lib/rules/roleRedundancies.js +1 -3
  73. package/lib/rules/roleRequiredAriaProps.d.ts +0 -1
  74. package/lib/rules/roleRequiredAriaProps.js +1 -3
  75. package/lib/rules/roleSupportedAriaProps.d.ts +0 -1
  76. package/lib/rules/roleSupportedAriaProps.js +82 -84
  77. package/lib/rules/roleTags.d.ts +0 -1
  78. package/lib/rules/roleTags.js +1 -3
  79. package/lib/rules/ruleCreator.d.ts +0 -1
  80. package/lib/rules/ruleCreator.js +0 -2
  81. package/lib/rules/scopeProps.d.ts +0 -1
  82. package/lib/rules/scopeProps.js +1 -3
  83. package/lib/rules/staticElementInteractions.d.ts +0 -1
  84. package/lib/rules/staticElementInteractions.js +2 -4
  85. package/lib/rules/svgTitles.d.ts +0 -1
  86. package/lib/rules/svgTitles.js +1 -3
  87. package/lib/rules/tabIndexPositiveValues.d.ts +0 -1
  88. package/lib/rules/tabIndexPositiveValues.js +1 -3
  89. package/lib/rules/unescapedEntities.d.ts +0 -1
  90. package/lib/rules/unescapedEntities.js +0 -2
  91. package/lib/rules/unnecessaryFragments.d.ts +0 -1
  92. package/lib/rules/unnecessaryFragments.js +1 -3
  93. package/package.json +10 -11
package/lib/plugin.d.ts CHANGED
@@ -1,308 +1,306 @@
1
- import * as _flint_fyi_core0 from "@flint.fyi/core";
2
-
3
1
  //#region src/plugin.d.ts
4
- declare const jsx: _flint_fyi_core0.Plugin<_flint_fyi_core0.RuleAbout<string>, "all" | "javascript" | "typescript", [_flint_fyi_core0.Rule<{
2
+ declare const jsx: import("@flint.fyi/core").Plugin<import("@flint.fyi/core").RuleAbout<string>, "all" | "javascript" | "typescript", [import("@flint.fyi/core").Rule<{
5
3
  readonly description: "Disallow the use of the `accessKey` / `accesskey` attribute on JSX elements.";
6
4
  readonly id: "accessKeys";
7
5
  readonly presets: readonly ["logical", "logicalStrict"];
8
6
  } & {
9
7
  readonly pluginId: string;
10
8
  readonly url: string;
11
- }, "avoidAccessKey", undefined>, _flint_fyi_core0.Rule<{
9
+ }, "avoidAccessKey", undefined>, import("@flint.fyi/core").Rule<{
12
10
  readonly description: "Reports elements that require alt text but are missing it.";
13
11
  readonly id: "altTexts";
14
12
  readonly presets: readonly ["logical", "logicalStrict"];
15
13
  } & {
16
14
  readonly pluginId: string;
17
15
  readonly url: string;
18
- }, "missingAlt", undefined>, _flint_fyi_core0.Rule<{
16
+ }, "missingAlt", undefined>, import("@flint.fyi/core").Rule<{
19
17
  readonly description: "Reports anchor elements with ambiguous text that doesn't describe the link destination.";
20
18
  readonly id: "anchorAmbiguousText";
21
19
  readonly presets: readonly ["logical", "logicalStrict"];
22
20
  } & {
23
21
  readonly pluginId: string;
24
22
  readonly url: string;
25
- }, "ambiguousText", undefined>, _flint_fyi_core0.Rule<{
23
+ }, "ambiguousText", undefined>, import("@flint.fyi/core").Rule<{
26
24
  readonly description: "Reports anchor elements without accessible content.";
27
25
  readonly id: "anchorContent";
28
26
  readonly presets: readonly ["logical", "logicalStrict"];
29
27
  } & {
30
28
  readonly pluginId: string;
31
29
  readonly url: string;
32
- }, "missingContent", undefined>, _flint_fyi_core0.Rule<{
30
+ }, "missingContent", undefined>, import("@flint.fyi/core").Rule<{
33
31
  readonly description: "Reports invalid usage of anchor elements.";
34
32
  readonly id: "anchorValidity";
35
33
  readonly presets: readonly ["logical", "logicalStrict"];
36
34
  } & {
37
35
  readonly pluginId: string;
38
36
  readonly url: string;
39
- }, "invalidHref" | "missingHref" | "shouldBeButton", undefined>, _flint_fyi_core0.Rule<{
37
+ }, "invalidHref" | "missingHref" | "shouldBeButton", undefined>, import("@flint.fyi/core").Rule<{
40
38
  readonly description: "Reports elements with aria-activedescendant without tabIndex.";
41
39
  readonly id: "ariaActiveDescendantTabIndex";
42
40
  readonly presets: readonly ["logical", "logicalStrict"];
43
41
  } & {
44
42
  readonly pluginId: string;
45
43
  readonly url: string;
46
- }, "missingTabIndex", undefined>, _flint_fyi_core0.Rule<{
44
+ }, "missingTabIndex", undefined>, import("@flint.fyi/core").Rule<{
47
45
  readonly description: "Reports elements with aria-hidden='true' that are focusable.";
48
46
  readonly id: "ariaHiddenFocusables";
49
47
  readonly presets: readonly ["logical", "logicalStrict"];
50
48
  } & {
51
49
  readonly pluginId: string;
52
50
  readonly url: string;
53
- }, "ariaHiddenFocusable", undefined>, _flint_fyi_core0.Rule<{
51
+ }, "ariaHiddenFocusable", undefined>, import("@flint.fyi/core").Rule<{
54
52
  readonly description: "Reports invalid ARIA properties.";
55
53
  readonly id: "ariaProps";
56
54
  readonly presets: readonly ["logical", "logicalStrict"];
57
55
  } & {
58
56
  readonly pluginId: string;
59
57
  readonly url: string;
60
- }, "invalidAriaProp", undefined>, _flint_fyi_core0.Rule<{
58
+ }, "invalidAriaProp", undefined>, import("@flint.fyi/core").Rule<{
61
59
  readonly description: "Reports ARIA properties with invalid value types.";
62
60
  readonly id: "ariaPropTypes";
63
61
  readonly presets: readonly ["logical", "logicalStrict"];
64
62
  } & {
65
63
  readonly pluginId: string;
66
64
  readonly url: string;
67
- }, "invalidPropType", undefined>, _flint_fyi_core0.Rule<{
65
+ }, "invalidPropType", undefined>, import("@flint.fyi/core").Rule<{
68
66
  readonly description: "Reports invalid or abstract ARIA roles.";
69
67
  readonly id: "ariaRoleValidity";
70
68
  readonly presets: readonly ["logical", "logicalStrict"];
71
69
  } & {
72
70
  readonly pluginId: string;
73
71
  readonly url: string;
74
- }, "invalidRole", undefined>, _flint_fyi_core0.Rule<{
72
+ }, "invalidRole", undefined>, import("@flint.fyi/core").Rule<{
75
73
  readonly description: "Reports ARIA attributes on elements that don't support them.";
76
74
  readonly id: "ariaUnsupportedElements";
77
75
  readonly presets: readonly ["logical", "logicalStrict"];
78
76
  } & {
79
77
  readonly pluginId: string;
80
78
  readonly url: string;
81
- }, "unsupportedElement", undefined>, _flint_fyi_core0.Rule<{
79
+ }, "unsupportedElement", undefined>, import("@flint.fyi/core").Rule<{
82
80
  readonly description: "Ensure the autocomplete attribute is correct and suitable for the form field.";
83
81
  readonly id: "autocomplete";
84
82
  readonly presets: readonly ["logical", "logicalStrict"];
85
83
  } & {
86
84
  readonly pluginId: string;
87
85
  readonly url: string;
88
- }, "invalid", undefined>, _flint_fyi_core0.Rule<{
86
+ }, "invalid", undefined>, import("@flint.fyi/core").Rule<{
89
87
  readonly description: "Reports autoFocus props that are not set to false.";
90
88
  readonly id: "autoFocusProps";
91
89
  readonly presets: readonly ["logical", "logicalStrict"];
92
90
  } & {
93
91
  readonly pluginId: string;
94
92
  readonly url: string;
95
- }, "noAutoFocus", undefined>, _flint_fyi_core0.Rule<{
93
+ }, "noAutoFocus", undefined>, import("@flint.fyi/core").Rule<{
96
94
  readonly description: "Prefer shorthand boolean attributes over explicit {true} values in JSX.";
97
95
  readonly id: "booleanValues";
98
96
  readonly presets: readonly ["stylistic"];
99
97
  } & {
100
98
  readonly pluginId: string;
101
99
  readonly url: string;
102
- }, "preferShorthand", undefined>, _flint_fyi_core0.Rule<{
100
+ }, "preferShorthand", undefined>, import("@flint.fyi/core").Rule<{
103
101
  readonly description: "Disallow unnecessary JSX curly braces around literals and JSX elements.";
104
102
  readonly id: "bracedStatements";
105
103
  readonly presets: readonly ["stylistic"];
106
104
  } & {
107
105
  readonly pluginId: string;
108
106
  readonly url: string;
109
- }, "unnecessaryBraces", undefined>, _flint_fyi_core0.Rule<{
107
+ }, "unnecessaryBraces", undefined>, import("@flint.fyi/core").Rule<{
110
108
  readonly description: "Reports button elements without an explicit type attribute.";
111
109
  readonly id: "buttonTypes";
112
110
  readonly presets: readonly ["logical", "logicalStrict"];
113
111
  } & {
114
112
  readonly pluginId: string;
115
113
  readonly url: string;
116
- }, "invalidType" | "missingType", undefined>, _flint_fyi_core0.Rule<{
114
+ }, "invalidType" | "missingType", undefined>, import("@flint.fyi/core").Rule<{
117
115
  readonly description: "Reports usage of the children prop.";
118
116
  readonly id: "childrenProps";
119
117
  readonly presets: readonly ["stylistic"];
120
118
  } & {
121
119
  readonly pluginId: string;
122
120
  readonly url: string;
123
- }, "noChildrenProp", undefined>, _flint_fyi_core0.Rule<{
121
+ }, "noChildrenProp", undefined>, import("@flint.fyi/core").Rule<{
124
122
  readonly description: "Reports onClick without keyboard event handlers.";
125
123
  readonly id: "clickEventKeyEvents";
126
124
  readonly presets: readonly ["logical", "logicalStrict"];
127
125
  } & {
128
126
  readonly pluginId: string;
129
127
  readonly url: string;
130
- }, "missingKeyEvent", undefined>, _flint_fyi_core0.Rule<{
128
+ }, "missingKeyEvent", undefined>, import("@flint.fyi/core").Rule<{
131
129
  readonly description: "Reports JSX text nodes that contain comment syntax but are rendered as text.";
132
130
  readonly id: "commentTextNodes";
133
131
  readonly presets: readonly ["logical", "logicalStrict"];
134
132
  } & {
135
133
  readonly pluginId: string;
136
134
  readonly url: string;
137
- }, "commentAsText", undefined>, _flint_fyi_core0.Rule<{
135
+ }, "commentAsText", undefined>, import("@flint.fyi/core").Rule<{
138
136
  readonly description: "Reports distracting elements like <marquee> and <blink>.";
139
137
  readonly id: "distractingElements";
140
138
  readonly presets: readonly ["logical", "logicalStrict"];
141
139
  } & {
142
140
  readonly pluginId: string;
143
141
  readonly url: string;
144
- }, "noDistractingElement", undefined>, _flint_fyi_core0.Rule<{
142
+ }, "noDistractingElement", undefined>, import("@flint.fyi/core").Rule<{
145
143
  readonly description: "Reports void DOM elements that have children, which is invalid HTML.";
146
144
  readonly id: "elementChildrenValidity";
147
145
  readonly presets: readonly ["logical", "logicalStrict"];
148
146
  } & {
149
147
  readonly pluginId: string;
150
148
  readonly url: string;
151
- }, "voidElementWithChildren", undefined>, _flint_fyi_core0.Rule<{
149
+ }, "voidElementWithChildren", undefined>, import("@flint.fyi/core").Rule<{
152
150
  readonly description: "Reports heading elements without accessible content.";
153
151
  readonly id: "headingContents";
154
152
  readonly presets: readonly ["logical", "logicalStrict"];
155
153
  } & {
156
154
  readonly pluginId: string;
157
155
  readonly url: string;
158
- }, "emptyHeading", undefined>, _flint_fyi_core0.Rule<{
156
+ }, "emptyHeading", undefined>, import("@flint.fyi/core").Rule<{
159
157
  readonly description: "Reports <html> elements without a lang prop.";
160
158
  readonly id: "htmlLangs";
161
159
  readonly presets: readonly ["logical", "logicalStrict"];
162
160
  } & {
163
161
  readonly pluginId: string;
164
162
  readonly url: string;
165
- }, "missingLang", undefined>, _flint_fyi_core0.Rule<{
163
+ }, "missingLang", undefined>, import("@flint.fyi/core").Rule<{
166
164
  readonly description: "Reports <iframe> elements without a title prop.";
167
165
  readonly id: "iframeTitles";
168
166
  readonly presets: readonly ["logical", "logicalStrict"];
169
167
  } & {
170
168
  readonly pluginId: string;
171
169
  readonly url: string;
172
- }, "missingTitle", undefined>, _flint_fyi_core0.Rule<{
170
+ }, "missingTitle", undefined>, import("@flint.fyi/core").Rule<{
173
171
  readonly description: "Reports interactive elements with non-interactive ARIA roles.";
174
172
  readonly id: "interactiveElementRoles";
175
173
  readonly presets: readonly ["logical", "logicalStrict"];
176
174
  } & {
177
175
  readonly pluginId: string;
178
176
  readonly url: string;
179
- }, "invalidRole", undefined>, _flint_fyi_core0.Rule<{
177
+ }, "invalidRole", undefined>, import("@flint.fyi/core").Rule<{
180
178
  readonly description: "Reports interactive elements that are not focusable via keyboard.";
181
179
  readonly id: "interactiveElementsFocusable";
182
180
  readonly presets: readonly ["logical", "logicalStrict"];
183
181
  } & {
184
182
  readonly pluginId: string;
185
183
  readonly url: string;
186
- }, "notFocusable", undefined>, _flint_fyi_core0.Rule<{
184
+ }, "notFocusable", undefined>, import("@flint.fyi/core").Rule<{
187
185
  readonly description: "Reports <label> elements without an associated control element.";
188
186
  readonly id: "labelAssociatedControls";
189
187
  readonly presets: readonly ["logical", "logicalStrict"];
190
188
  } & {
191
189
  readonly pluginId: string;
192
190
  readonly url: string;
193
- }, "missingAssociatedControl", undefined>, _flint_fyi_core0.Rule<{
191
+ }, "missingAssociatedControl", undefined>, import("@flint.fyi/core").Rule<{
194
192
  readonly description: "Reports invalid lang attribute values.";
195
193
  readonly id: "langValidity";
196
194
  readonly presets: readonly ["logical", "logicalStrict"];
197
195
  } & {
198
196
  readonly pluginId: string;
199
197
  readonly url: string;
200
- }, "invalidLang", undefined>, _flint_fyi_core0.Rule<{
198
+ }, "invalidLang", undefined>, import("@flint.fyi/core").Rule<{
201
199
  readonly description: "Reports media elements without captions.";
202
200
  readonly id: "mediaCaptions";
203
201
  readonly presets: readonly ["logical", "logicalStrict"];
204
202
  } & {
205
203
  readonly pluginId: string;
206
204
  readonly url: string;
207
- }, "missingCaptions", undefined>, _flint_fyi_core0.Rule<{
205
+ }, "missingCaptions", undefined>, import("@flint.fyi/core").Rule<{
208
206
  readonly description: "Reports mouse events without corresponding keyboard events.";
209
207
  readonly id: "mouseEventKeyEvents";
210
208
  readonly presets: readonly ["logical", "logicalStrict"];
211
209
  } & {
212
210
  readonly pluginId: string;
213
211
  readonly url: string;
214
- }, "missingKeyEvent", undefined>, _flint_fyi_core0.Rule<{
212
+ }, "missingKeyEvent", undefined>, import("@flint.fyi/core").Rule<{
215
213
  readonly description: "Reports non-interactive elements with interactive event handlers.";
216
214
  readonly id: "nonInteractiveElementInteractions";
217
215
  readonly presets: readonly ["logical", "logicalStrict"];
218
216
  } & {
219
217
  readonly pluginId: string;
220
218
  readonly url: string;
221
- }, "invalidHandler", undefined>, _flint_fyi_core0.Rule<{
219
+ }, "invalidHandler", undefined>, import("@flint.fyi/core").Rule<{
222
220
  readonly description: "Reports non-interactive elements with interactive ARIA roles.";
223
221
  readonly id: "nonInteractiveElementRoles";
224
222
  readonly presets: readonly ["logical", "logicalStrict"];
225
223
  } & {
226
224
  readonly pluginId: string;
227
225
  readonly url: string;
228
- }, "invalidRole", undefined>, _flint_fyi_core0.Rule<{
226
+ }, "invalidRole", undefined>, import("@flint.fyi/core").Rule<{
229
227
  readonly description: "Reports non-interactive elements with positive or zero tabIndex values.";
230
228
  readonly id: "nonInteractiveElementTabIndexes";
231
229
  readonly presets: readonly ["logical", "logicalStrict"];
232
230
  } & {
233
231
  readonly pluginId: string;
234
232
  readonly url: string;
235
- }, "nonInteractiveTabIndex", undefined>, _flint_fyi_core0.Rule<{
233
+ }, "nonInteractiveTabIndex", undefined>, import("@flint.fyi/core").Rule<{
236
234
  readonly description: "Disallow duplicate props in JSX elements.";
237
235
  readonly id: "propDuplicates";
238
236
  readonly presets: readonly ["logical", "logicalStrict"];
239
237
  } & {
240
238
  readonly pluginId: string;
241
239
  readonly url: string;
242
- }, "duplicateProp", undefined>, _flint_fyi_core0.Rule<{
240
+ }, "duplicateProp", undefined>, import("@flint.fyi/core").Rule<{
243
241
  readonly description: "Reports redundant ARIA roles on elements with implicit roles.";
244
242
  readonly id: "roleRedundancies";
245
243
  readonly presets: readonly ["logical", "logicalStrict"];
246
244
  } & {
247
245
  readonly pluginId: string;
248
246
  readonly url: string;
249
- }, "redundantRole", undefined>, _flint_fyi_core0.Rule<{
247
+ }, "redundantRole", undefined>, import("@flint.fyi/core").Rule<{
250
248
  readonly description: "Reports ARIA roles missing their required ARIA properties.";
251
249
  readonly id: "roleRequiredAriaProps";
252
250
  readonly presets: readonly ["logical", "logicalStrict"];
253
251
  } & {
254
252
  readonly pluginId: string;
255
253
  readonly url: string;
256
- }, "missingRequiredProps", undefined>, _flint_fyi_core0.Rule<{
254
+ }, "missingRequiredProps", undefined>, import("@flint.fyi/core").Rule<{
257
255
  readonly description: "Reports ARIA properties that are not supported by an element's role.";
258
256
  readonly id: "roleSupportedAriaProps";
259
257
  readonly presets: readonly ["logical", "logicalStrict"];
260
258
  } & {
261
259
  readonly pluginId: string;
262
260
  readonly url: string;
263
- }, "unsupportedProp", undefined>, _flint_fyi_core0.Rule<{
261
+ }, "unsupportedProp", undefined>, import("@flint.fyi/core").Rule<{
264
262
  readonly description: "Reports ARIA roles that have semantic HTML element equivalents.";
265
263
  readonly id: "roleTags";
266
264
  readonly presets: readonly ["logical", "logicalStrict"];
267
265
  } & {
268
266
  readonly pluginId: string;
269
267
  readonly url: string;
270
- }, "preferSemanticElement", undefined>, _flint_fyi_core0.Rule<{
268
+ }, "preferSemanticElement", undefined>, import("@flint.fyi/core").Rule<{
271
269
  readonly description: "Reports scope props on non-th elements.";
272
270
  readonly id: "scopeProps";
273
271
  readonly presets: readonly ["logical", "logicalStrict"];
274
272
  } & {
275
273
  readonly pluginId: string;
276
274
  readonly url: string;
277
- }, "invalidScope", undefined>, _flint_fyi_core0.Rule<{
275
+ }, "invalidScope", undefined>, import("@flint.fyi/core").Rule<{
278
276
  readonly description: "Reports static elements with event handlers that lack ARIA roles.";
279
277
  readonly id: "staticElementInteractions";
280
278
  readonly presets: readonly ["logical", "logicalStrict"];
281
279
  } & {
282
280
  readonly pluginId: string;
283
281
  readonly url: string;
284
- }, "missingRole", undefined>, _flint_fyi_core0.Rule<{
282
+ }, "missingRole", undefined>, import("@flint.fyi/core").Rule<{
285
283
  readonly description: "Reports <svg> elements without a <title> child element.";
286
284
  readonly id: "svgTitles";
287
285
  readonly presets: readonly ["logical", "logicalStrict"];
288
286
  } & {
289
287
  readonly pluginId: string;
290
288
  readonly url: string;
291
- }, "missingTitle", undefined>, _flint_fyi_core0.Rule<{
289
+ }, "missingTitle", undefined>, import("@flint.fyi/core").Rule<{
292
290
  readonly description: "Reports positive tabIndex values.";
293
291
  readonly id: "tabIndexPositiveValues";
294
292
  readonly presets: readonly ["logical", "logicalStrict"];
295
293
  } & {
296
294
  readonly pluginId: string;
297
295
  readonly url: string;
298
- }, "noPositiveTabIndex", undefined>, _flint_fyi_core0.Rule<{
296
+ }, "noPositiveTabIndex", undefined>, import("@flint.fyi/core").Rule<{
299
297
  readonly description: "Disallow unescaped HTML entities in JSX text that may cause rendering issues.";
300
298
  readonly id: "unescapedEntities";
301
299
  readonly presets: readonly ["stylistic"];
302
300
  } & {
303
301
  readonly pluginId: string;
304
302
  readonly url: string;
305
- }, "unescapedEntity", undefined>, _flint_fyi_core0.Rule<{
303
+ }, "unescapedEntity", undefined>, import("@flint.fyi/core").Rule<{
306
304
  readonly description: "Disallow unnecessary JSX fragments that wrap a single child or have no children.";
307
305
  readonly id: "unnecessaryFragments";
308
306
  readonly presets: readonly ["stylistic"];
@@ -311,5 +309,4 @@ declare const jsx: _flint_fyi_core0.Plugin<_flint_fyi_core0.RuleAbout<string>, "
311
309
  readonly url: string;
312
310
  }, "unnecessaryFragment", undefined>]>;
313
311
  //#endregion
314
- export { jsx };
315
- //# sourceMappingURL=plugin.d.ts.map
312
+ export { jsx };
package/lib/plugin.js CHANGED
@@ -102,5 +102,3 @@ const jsx = createPlugin({
102
102
  });
103
103
  //#endregion
104
104
  export { jsx };
105
-
106
- //# sourceMappingURL=plugin.js.map
@@ -7,4 +7,3 @@ declare const _default: import("@flint.fyi/core").Rule<{
7
7
  readonly url: string;
8
8
  }, "avoidAccessKey", undefined>;
9
9
  export default _default;
10
- //# sourceMappingURL=accessKeys.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/accessKeys.ts
5
5
  var accessKeys_default = ruleCreator.createRule(typescriptLanguage, {
6
6
  about: {
@@ -28,5 +28,3 @@ var accessKeys_default = ruleCreator.createRule(typescriptLanguage, {
28
28
  });
29
29
  //#endregion
30
30
  export { accessKeys_default as default };
31
-
32
- //# sourceMappingURL=accessKeys.js.map
@@ -7,4 +7,3 @@ declare const _default: import("@flint.fyi/core").Rule<{
7
7
  readonly url: string;
8
8
  }, "missingAlt", undefined>;
9
9
  export default _default;
10
- //# sourceMappingURL=altTexts.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/altTexts.ts
5
- const alternateProperties = new Set([
5
+ const alternateProperties = /* @__PURE__ */ new Set([
6
6
  "aria-label",
7
7
  "aria-labelledby",
8
8
  "title"
@@ -74,5 +74,3 @@ var altTexts_default = ruleCreator.createRule(typescriptLanguage, {
74
74
  });
75
75
  //#endregion
76
76
  export { altTexts_default as default };
77
-
78
- //# sourceMappingURL=altTexts.js.map
@@ -7,4 +7,3 @@ declare const _default: import("@flint.fyi/core").Rule<{
7
7
  readonly url: string;
8
8
  }, "ambiguousText", undefined>;
9
9
  export default _default;
10
- //# sourceMappingURL=anchorAmbiguousText.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/anchorAmbiguousText.ts
5
- const ambiguousWords = new Set([
5
+ const ambiguousWords = /* @__PURE__ */ new Set([
6
6
  "a link",
7
7
  "click here",
8
8
  "here",
@@ -53,5 +53,3 @@ var anchorAmbiguousText_default = ruleCreator.createRule(typescriptLanguage, {
53
53
  });
54
54
  //#endregion
55
55
  export { anchorAmbiguousText_default as default };
56
-
57
- //# sourceMappingURL=anchorAmbiguousText.js.map
@@ -7,4 +7,3 @@ declare const _default: import("@flint.fyi/core").Rule<{
7
7
  readonly url: string;
8
8
  }, "missingContent", undefined>;
9
9
  export default _default;
10
- //# sourceMappingURL=anchorContent.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/anchorContent.ts
5
5
  var anchorContent_default = ruleCreator.createRule(typescriptLanguage, {
6
6
  about: {
@@ -53,5 +53,3 @@ var anchorContent_default = ruleCreator.createRule(typescriptLanguage, {
53
53
  });
54
54
  //#endregion
55
55
  export { anchorContent_default as default };
56
-
57
- //# sourceMappingURL=anchorContent.js.map
@@ -7,4 +7,3 @@ declare const _default: import("@flint.fyi/core").Rule<{
7
7
  readonly url: string;
8
8
  }, "invalidHref" | "missingHref" | "shouldBeButton", undefined>;
9
9
  export default _default;
10
- //# sourceMappingURL=anchorValidity.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/anchorValidity.ts
5
5
  var anchorValidity_default = ruleCreator.createRule(typescriptLanguage, {
6
6
  about: {
@@ -75,5 +75,3 @@ var anchorValidity_default = ruleCreator.createRule(typescriptLanguage, {
75
75
  });
76
76
  //#endregion
77
77
  export { anchorValidity_default as default };
78
-
79
- //# sourceMappingURL=anchorValidity.js.map
@@ -7,4 +7,3 @@ declare const _default: import("@flint.fyi/core").Rule<{
7
7
  readonly url: string;
8
8
  }, "missingTabIndex", undefined>;
9
9
  export default _default;
10
- //# sourceMappingURL=ariaActiveDescendantTabIndex.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/ariaActiveDescendantTabIndex.ts
5
- const inherentlyTabbableElements = new Set([
5
+ const inherentlyTabbableElements = /* @__PURE__ */ new Set([
6
6
  "a",
7
7
  "area",
8
8
  "button",
@@ -49,5 +49,3 @@ var ariaActiveDescendantTabIndex_default = ruleCreator.createRule(typescriptLang
49
49
  });
50
50
  //#endregion
51
51
  export { ariaActiveDescendantTabIndex_default as default };
52
-
53
- //# sourceMappingURL=ariaActiveDescendantTabIndex.js.map
@@ -7,4 +7,3 @@ declare const _default: import("@flint.fyi/core").Rule<{
7
7
  readonly url: string;
8
8
  }, "ariaHiddenFocusable", undefined>;
9
9
  export default _default;
10
- //# sourceMappingURL=ariaHiddenFocusables.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/ariaHiddenFocusables.ts
5
- const focusableElements = new Set([
5
+ const focusableElements = /* @__PURE__ */ new Set([
6
6
  "a",
7
7
  "audio",
8
8
  "button",
@@ -64,5 +64,3 @@ function isAriaHiddenTrue(ariaHiddenProperty) {
64
64
  }
65
65
  //#endregion
66
66
  export { ariaHiddenFocusables_default as default };
67
-
68
- //# sourceMappingURL=ariaHiddenFocusables.js.map
@@ -7,4 +7,3 @@ declare const _default: import("@flint.fyi/core").Rule<{
7
7
  readonly url: string;
8
8
  }, "invalidPropType", undefined>;
9
9
  export default _default;
10
- //# sourceMappingURL=ariaPropTypes.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/ariaPropTypes.ts
5
5
  const ariaPropertyTypes = {
6
6
  "aria-activedescendant": "id",
@@ -53,13 +53,13 @@ const ariaPropertyTypes = {
53
53
  "aria-valuetext": "string"
54
54
  };
55
55
  const tokenValues = {
56
- "aria-autocomplete": new Set([
56
+ "aria-autocomplete": /* @__PURE__ */ new Set([
57
57
  "both",
58
58
  "inline",
59
59
  "list",
60
60
  "none"
61
61
  ]),
62
- "aria-current": new Set([
62
+ "aria-current": /* @__PURE__ */ new Set([
63
63
  "date",
64
64
  "false",
65
65
  "location",
@@ -68,7 +68,7 @@ const tokenValues = {
68
68
  "time",
69
69
  "true"
70
70
  ]),
71
- "aria-dropeffect": new Set([
71
+ "aria-dropeffect": /* @__PURE__ */ new Set([
72
72
  "copy",
73
73
  "execute",
74
74
  "link",
@@ -76,7 +76,7 @@ const tokenValues = {
76
76
  "none",
77
77
  "popup"
78
78
  ]),
79
- "aria-haspopup": new Set([
79
+ "aria-haspopup": /* @__PURE__ */ new Set([
80
80
  "dialog",
81
81
  "false",
82
82
  "grid",
@@ -85,30 +85,30 @@ const tokenValues = {
85
85
  "tree",
86
86
  "true"
87
87
  ]),
88
- "aria-invalid": new Set([
88
+ "aria-invalid": /* @__PURE__ */ new Set([
89
89
  "false",
90
90
  "grammar",
91
91
  "spelling",
92
92
  "true"
93
93
  ]),
94
- "aria-live": new Set([
94
+ "aria-live": /* @__PURE__ */ new Set([
95
95
  "assertive",
96
96
  "off",
97
97
  "polite"
98
98
  ]),
99
- "aria-orientation": new Set([
99
+ "aria-orientation": /* @__PURE__ */ new Set([
100
100
  "horizontal",
101
101
  "undefined",
102
102
  "vertical"
103
103
  ]),
104
- "aria-relevant": new Set([
104
+ "aria-relevant": /* @__PURE__ */ new Set([
105
105
  "additions",
106
106
  "additions text",
107
107
  "all",
108
108
  "removals",
109
109
  "text"
110
110
  ]),
111
- "aria-sort": new Set([
111
+ "aria-sort": /* @__PURE__ */ new Set([
112
112
  "ascending",
113
113
  "descending",
114
114
  "none",
@@ -220,5 +220,3 @@ var ariaPropTypes_default = ruleCreator.createRule(typescriptLanguage, {
220
220
  });
221
221
  //#endregion
222
222
  export { ariaPropTypes_default as default };
223
-
224
- //# sourceMappingURL=ariaPropTypes.js.map
@@ -7,4 +7,3 @@ declare const _default: import("@flint.fyi/core").Rule<{
7
7
  readonly url: string;
8
8
  }, "invalidAriaProp", undefined>;
9
9
  export default _default;
10
- //# sourceMappingURL=ariaProps.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/ariaProps.ts
5
- const validAriaProps = new Set([
5
+ const validAriaProps = /* @__PURE__ */ new Set([
6
6
  "aria-activedescendant",
7
7
  "aria-atomic",
8
8
  "aria-autocomplete",
@@ -88,5 +88,3 @@ var ariaProps_default = ruleCreator.createRule(typescriptLanguage, {
88
88
  });
89
89
  //#endregion
90
90
  export { ariaProps_default as default };
91
-
92
- //# sourceMappingURL=ariaProps.js.map
@@ -7,4 +7,3 @@ declare const _default: import("@flint.fyi/core").Rule<{
7
7
  readonly url: string;
8
8
  }, "invalidRole", undefined>;
9
9
  export default _default;
10
- //# sourceMappingURL=ariaRoleValidity.d.ts.map