@flint.fyi/jsx 0.3.3 → 0.5.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/{lib/plugin.d.ts → dist/index.d.mts} +45 -48
- package/dist/index.mjs +3235 -0
- package/package.json +10 -10
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -2
- package/lib/plugin.js +0 -106
- package/lib/rules/accessKeys.d.ts +0 -10
- package/lib/rules/accessKeys.js +0 -32
- package/lib/rules/altTexts.d.ts +0 -10
- package/lib/rules/altTexts.js +0 -78
- package/lib/rules/anchorAmbiguousText.d.ts +0 -10
- package/lib/rules/anchorAmbiguousText.js +0 -57
- package/lib/rules/anchorContent.d.ts +0 -10
- package/lib/rules/anchorContent.js +0 -57
- package/lib/rules/anchorValidity.d.ts +0 -10
- package/lib/rules/anchorValidity.js +0 -79
- package/lib/rules/ariaActiveDescendantTabIndex.d.ts +0 -10
- package/lib/rules/ariaActiveDescendantTabIndex.js +0 -53
- package/lib/rules/ariaHiddenFocusables.d.ts +0 -10
- package/lib/rules/ariaHiddenFocusables.js +0 -68
- package/lib/rules/ariaPropTypes.d.ts +0 -10
- package/lib/rules/ariaPropTypes.js +0 -224
- package/lib/rules/ariaProps.d.ts +0 -10
- package/lib/rules/ariaProps.js +0 -92
- package/lib/rules/ariaRoleValidity.d.ts +0 -10
- package/lib/rules/ariaRoleValidity.js +0 -113
- package/lib/rules/ariaUnsupportedElements.d.ts +0 -10
- package/lib/rules/ariaUnsupportedElements.js +0 -88
- package/lib/rules/autoFocusProps.d.ts +0 -10
- package/lib/rules/autoFocusProps.js +0 -44
- package/lib/rules/autocomplete.d.ts +0 -10
- package/lib/rules/autocomplete.js +0 -126
- package/lib/rules/booleanValues.d.ts +0 -10
- package/lib/rules/booleanValues.js +0 -33
- package/lib/rules/bracedStatements.d.ts +0 -10
- package/lib/rules/bracedStatements.js +0 -33
- package/lib/rules/buttonTypes.d.ts +0 -10
- package/lib/rules/buttonTypes.js +0 -76
- package/lib/rules/childrenProps.d.ts +0 -10
- package/lib/rules/childrenProps.js +0 -39
- package/lib/rules/clickEventKeyEvents.d.ts +0 -10
- package/lib/rules/clickEventKeyEvents.js +0 -56
- package/lib/rules/commentTextNodes.d.ts +0 -10
- package/lib/rules/commentTextNodes.js +0 -32
- package/lib/rules/distractingElements.d.ts +0 -10
- package/lib/rules/distractingElements.js +0 -40
- package/lib/rules/elementChildrenValidity.d.ts +0 -10
- package/lib/rules/elementChildrenValidity.js +0 -54
- package/lib/rules/headingContents.d.ts +0 -10
- package/lib/rules/headingContents.js +0 -54
- package/lib/rules/htmlLangs.d.ts +0 -10
- package/lib/rules/htmlLangs.js +0 -32
- package/lib/rules/iframeTitles.d.ts +0 -10
- package/lib/rules/iframeTitles.js +0 -63
- package/lib/rules/interactiveElementRoles.d.ts +0 -10
- package/lib/rules/interactiveElementRoles.js +0 -93
- package/lib/rules/interactiveElementsFocusable.d.ts +0 -10
- package/lib/rules/interactiveElementsFocusable.js +0 -172
- package/lib/rules/labelAssociatedControls.d.ts +0 -10
- package/lib/rules/labelAssociatedControls.js +0 -70
- package/lib/rules/langValidity.d.ts +0 -10
- package/lib/rules/langValidity.js +0 -43
- package/lib/rules/mediaCaptions.d.ts +0 -10
- package/lib/rules/mediaCaptions.js +0 -52
- package/lib/rules/mouseEventKeyEvents.d.ts +0 -10
- package/lib/rules/mouseEventKeyEvents.js +0 -49
- package/lib/rules/nonInteractiveElementInteractions.d.ts +0 -10
- package/lib/rules/nonInteractiveElementInteractions.js +0 -95
- package/lib/rules/nonInteractiveElementRoles.d.ts +0 -10
- package/lib/rules/nonInteractiveElementRoles.js +0 -118
- package/lib/rules/nonInteractiveElementTabIndexes.d.ts +0 -10
- package/lib/rules/nonInteractiveElementTabIndexes.js +0 -109
- package/lib/rules/propDuplicates.d.ts +0 -10
- package/lib/rules/propDuplicates.js +0 -39
- package/lib/rules/roleRedundancies.d.ts +0 -10
- package/lib/rules/roleRedundancies.js +0 -76
- package/lib/rules/roleRequiredAriaProps.d.ts +0 -10
- package/lib/rules/roleRequiredAriaProps.js +0 -78
- package/lib/rules/roleSupportedAriaProps.d.ts +0 -10
- package/lib/rules/roleSupportedAriaProps.js +0 -419
- package/lib/rules/roleTags.d.ts +0 -10
- package/lib/rules/roleTags.js +0 -72
- package/lib/rules/ruleCreator.d.ts +0 -3
- package/lib/rules/ruleCreator.js +0 -15
- package/lib/rules/scopeProps.d.ts +0 -10
- package/lib/rules/scopeProps.js +0 -41
- package/lib/rules/staticElementInteractions.d.ts +0 -10
- package/lib/rules/staticElementInteractions.js +0 -60
- package/lib/rules/svgTitles.d.ts +0 -10
- package/lib/rules/svgTitles.js +0 -59
- package/lib/rules/tabIndexPositiveValues.d.ts +0 -10
- package/lib/rules/tabIndexPositiveValues.js +0 -45
- package/lib/rules/unescapedEntities.d.ts +0 -10
- package/lib/rules/unescapedEntities.js +0 -70
- package/lib/rules/unnecessaryFragments.d.ts +0 -10
- package/lib/rules/unnecessaryFragments.js +0 -51
|
@@ -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:
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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>,
|
|
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 };
|