@flint.fyi/jsx 0.3.3 → 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 +0 -2
  5. package/lib/rules/altTexts.d.ts +0 -1
  6. package/lib/rules/altTexts.js +1 -3
  7. package/lib/rules/anchorAmbiguousText.d.ts +0 -1
  8. package/lib/rules/anchorAmbiguousText.js +1 -3
  9. package/lib/rules/anchorContent.d.ts +0 -1
  10. package/lib/rules/anchorContent.js +0 -2
  11. package/lib/rules/anchorValidity.d.ts +0 -1
  12. package/lib/rules/anchorValidity.js +0 -2
  13. package/lib/rules/ariaActiveDescendantTabIndex.d.ts +0 -1
  14. package/lib/rules/ariaActiveDescendantTabIndex.js +1 -3
  15. package/lib/rules/ariaHiddenFocusables.d.ts +0 -1
  16. package/lib/rules/ariaHiddenFocusables.js +1 -3
  17. package/lib/rules/ariaPropTypes.d.ts +0 -1
  18. package/lib/rules/ariaPropTypes.js +9 -11
  19. package/lib/rules/ariaProps.d.ts +0 -1
  20. package/lib/rules/ariaProps.js +1 -3
  21. package/lib/rules/ariaRoleValidity.d.ts +0 -1
  22. package/lib/rules/ariaRoleValidity.js +1 -3
  23. package/lib/rules/ariaUnsupportedElements.d.ts +0 -1
  24. package/lib/rules/ariaUnsupportedElements.js +1 -3
  25. package/lib/rules/autoFocusProps.d.ts +0 -1
  26. package/lib/rules/autoFocusProps.js +0 -2
  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 +0 -2
  31. package/lib/rules/bracedStatements.d.ts +0 -1
  32. package/lib/rules/bracedStatements.js +0 -2
  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 +0 -2
  37. package/lib/rules/clickEventKeyEvents.d.ts +0 -1
  38. package/lib/rules/clickEventKeyEvents.js +1 -3
  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 +1 -3
  43. package/lib/rules/elementChildrenValidity.d.ts +0 -1
  44. package/lib/rules/elementChildrenValidity.js +1 -3
  45. package/lib/rules/headingContents.d.ts +0 -1
  46. package/lib/rules/headingContents.js +1 -3
  47. package/lib/rules/htmlLangs.d.ts +0 -1
  48. package/lib/rules/htmlLangs.js +0 -2
  49. package/lib/rules/iframeTitles.d.ts +0 -1
  50. package/lib/rules/iframeTitles.js +0 -2
  51. package/lib/rules/interactiveElementRoles.d.ts +0 -1
  52. package/lib/rules/interactiveElementRoles.js +2 -4
  53. package/lib/rules/interactiveElementsFocusable.d.ts +0 -1
  54. package/lib/rules/interactiveElementsFocusable.js +4 -6
  55. package/lib/rules/labelAssociatedControls.d.ts +0 -1
  56. package/lib/rules/labelAssociatedControls.js +1 -3
  57. package/lib/rules/langValidity.d.ts +0 -1
  58. package/lib/rules/langValidity.js +0 -2
  59. package/lib/rules/mediaCaptions.d.ts +0 -1
  60. package/lib/rules/mediaCaptions.js +0 -2
  61. package/lib/rules/mouseEventKeyEvents.d.ts +0 -1
  62. package/lib/rules/mouseEventKeyEvents.js +1 -3
  63. package/lib/rules/nonInteractiveElementInteractions.d.ts +0 -1
  64. package/lib/rules/nonInteractiveElementInteractions.js +2 -4
  65. package/lib/rules/nonInteractiveElementRoles.d.ts +0 -1
  66. package/lib/rules/nonInteractiveElementRoles.js +7 -9
  67. package/lib/rules/nonInteractiveElementTabIndexes.d.ts +0 -1
  68. package/lib/rules/nonInteractiveElementTabIndexes.js +2 -4
  69. package/lib/rules/propDuplicates.d.ts +0 -1
  70. package/lib/rules/propDuplicates.js +0 -2
  71. package/lib/rules/roleRedundancies.d.ts +0 -1
  72. package/lib/rules/roleRedundancies.js +0 -2
  73. package/lib/rules/roleRequiredAriaProps.d.ts +0 -1
  74. package/lib/rules/roleRequiredAriaProps.js +0 -2
  75. package/lib/rules/roleSupportedAriaProps.d.ts +0 -1
  76. package/lib/rules/roleSupportedAriaProps.js +81 -83
  77. package/lib/rules/roleTags.d.ts +0 -1
  78. package/lib/rules/roleTags.js +0 -2
  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 +0 -2
  83. package/lib/rules/staticElementInteractions.d.ts +0 -1
  84. package/lib/rules/staticElementInteractions.js +1 -3
  85. package/lib/rules/svgTitles.d.ts +0 -1
  86. package/lib/rules/svgTitles.js +0 -2
  87. package/lib/rules/tabIndexPositiveValues.d.ts +0 -1
  88. package/lib/rules/tabIndexPositiveValues.js +0 -2
  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 +0 -2
  93. package/package.json +7 -8
@@ -2,7 +2,7 @@ import { ruleCreator } from "./ruleCreator.js";
2
2
  import { SyntaxKind } from "typescript";
3
3
  import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/roleSupportedAriaProps.ts
5
- const globalAriaProperties = new Set([
5
+ const globalAriaProperties = /* @__PURE__ */ new Set([
6
6
  "aria-atomic",
7
7
  "aria-busy",
8
8
  "aria-controls",
@@ -26,30 +26,30 @@ const globalAriaProperties = new Set([
26
26
  "aria-roledescription"
27
27
  ]);
28
28
  const roleToSupportedProps = {
29
- alert: new Set(["aria-expanded"]),
30
- alertdialog: new Set(["aria-expanded", "aria-modal"]),
31
- application: new Set(["aria-activedescendant", "aria-expanded"]),
32
- article: new Set([
29
+ alert: /* @__PURE__ */ new Set(["aria-expanded"]),
30
+ alertdialog: /* @__PURE__ */ new Set(["aria-expanded", "aria-modal"]),
31
+ application: /* @__PURE__ */ new Set(["aria-activedescendant", "aria-expanded"]),
32
+ article: /* @__PURE__ */ new Set([
33
33
  "aria-expanded",
34
34
  "aria-posinset",
35
35
  "aria-setsize"
36
36
  ]),
37
- banner: new Set(["aria-expanded"]),
38
- button: new Set(["aria-expanded", "aria-pressed"]),
39
- cell: new Set([
37
+ banner: /* @__PURE__ */ new Set(["aria-expanded"]),
38
+ button: /* @__PURE__ */ new Set(["aria-expanded", "aria-pressed"]),
39
+ cell: /* @__PURE__ */ new Set([
40
40
  "aria-colindex",
41
41
  "aria-colspan",
42
42
  "aria-expanded",
43
43
  "aria-rowindex",
44
44
  "aria-rowspan"
45
45
  ]),
46
- checkbox: new Set([
46
+ checkbox: /* @__PURE__ */ new Set([
47
47
  "aria-checked",
48
48
  "aria-expanded",
49
49
  "aria-readonly",
50
50
  "aria-required"
51
51
  ]),
52
- columnheader: new Set([
52
+ columnheader: /* @__PURE__ */ new Set([
53
53
  "aria-colindex",
54
54
  "aria-colspan",
55
55
  "aria-expanded",
@@ -60,25 +60,25 @@ const roleToSupportedProps = {
60
60
  "aria-selected",
61
61
  "aria-sort"
62
62
  ]),
63
- combobox: new Set([
63
+ combobox: /* @__PURE__ */ new Set([
64
64
  "aria-activedescendant",
65
65
  "aria-autocomplete",
66
66
  "aria-expanded",
67
67
  "aria-readonly",
68
68
  "aria-required"
69
69
  ]),
70
- command: new Set(["aria-expanded"]),
71
- complementary: new Set(["aria-expanded"]),
72
- composite: new Set(["aria-activedescendant", "aria-expanded"]),
73
- contentinfo: new Set(["aria-expanded"]),
74
- definition: new Set(["aria-expanded"]),
75
- dialog: new Set(["aria-expanded", "aria-modal"]),
76
- directory: new Set(["aria-expanded"]),
77
- document: new Set(["aria-expanded"]),
78
- feed: new Set(["aria-expanded"]),
79
- figure: new Set(["aria-expanded"]),
80
- form: new Set(["aria-expanded"]),
81
- grid: new Set([
70
+ command: /* @__PURE__ */ new Set(["aria-expanded"]),
71
+ complementary: /* @__PURE__ */ new Set(["aria-expanded"]),
72
+ composite: /* @__PURE__ */ new Set(["aria-activedescendant", "aria-expanded"]),
73
+ contentinfo: /* @__PURE__ */ new Set(["aria-expanded"]),
74
+ definition: /* @__PURE__ */ new Set(["aria-expanded"]),
75
+ dialog: /* @__PURE__ */ new Set(["aria-expanded", "aria-modal"]),
76
+ directory: /* @__PURE__ */ new Set(["aria-expanded"]),
77
+ document: /* @__PURE__ */ new Set(["aria-expanded"]),
78
+ feed: /* @__PURE__ */ new Set(["aria-expanded"]),
79
+ figure: /* @__PURE__ */ new Set(["aria-expanded"]),
80
+ form: /* @__PURE__ */ new Set(["aria-expanded"]),
81
+ grid: /* @__PURE__ */ new Set([
82
82
  "aria-activedescendant",
83
83
  "aria-colcount",
84
84
  "aria-expanded",
@@ -87,7 +87,7 @@ const roleToSupportedProps = {
87
87
  "aria-readonly",
88
88
  "aria-rowcount"
89
89
  ]),
90
- gridcell: new Set([
90
+ gridcell: /* @__PURE__ */ new Set([
91
91
  "aria-colindex",
92
92
  "aria-colspan",
93
93
  "aria-expanded",
@@ -97,14 +97,14 @@ const roleToSupportedProps = {
97
97
  "aria-rowspan",
98
98
  "aria-selected"
99
99
  ]),
100
- group: new Set(["aria-activedescendant", "aria-expanded"]),
101
- heading: new Set(["aria-expanded", "aria-level"]),
102
- img: new Set(["aria-expanded"]),
103
- input: new Set(["aria-expanded"]),
104
- landmark: new Set(["aria-expanded"]),
105
- link: new Set(["aria-expanded"]),
106
- list: new Set(["aria-expanded"]),
107
- listbox: new Set([
100
+ group: /* @__PURE__ */ new Set(["aria-activedescendant", "aria-expanded"]),
101
+ heading: /* @__PURE__ */ new Set(["aria-expanded", "aria-level"]),
102
+ img: /* @__PURE__ */ new Set(["aria-expanded"]),
103
+ input: /* @__PURE__ */ new Set(["aria-expanded"]),
104
+ landmark: /* @__PURE__ */ new Set(["aria-expanded"]),
105
+ link: /* @__PURE__ */ new Set(["aria-expanded"]),
106
+ list: /* @__PURE__ */ new Set(["aria-expanded"]),
107
+ listbox: /* @__PURE__ */ new Set([
108
108
  "aria-activedescendant",
109
109
  "aria-expanded",
110
110
  "aria-multiselectable",
@@ -112,49 +112,49 @@ const roleToSupportedProps = {
112
112
  "aria-readonly",
113
113
  "aria-required"
114
114
  ]),
115
- listitem: new Set([
115
+ listitem: /* @__PURE__ */ new Set([
116
116
  "aria-expanded",
117
117
  "aria-level",
118
118
  "aria-posinset",
119
119
  "aria-setsize"
120
120
  ]),
121
- log: new Set(["aria-expanded"]),
122
- main: new Set(["aria-expanded"]),
123
- marquee: new Set(["aria-expanded"]),
124
- math: new Set(["aria-expanded"]),
125
- menu: new Set([
121
+ log: /* @__PURE__ */ new Set(["aria-expanded"]),
122
+ main: /* @__PURE__ */ new Set(["aria-expanded"]),
123
+ marquee: /* @__PURE__ */ new Set(["aria-expanded"]),
124
+ math: /* @__PURE__ */ new Set(["aria-expanded"]),
125
+ menu: /* @__PURE__ */ new Set([
126
126
  "aria-activedescendant",
127
127
  "aria-expanded",
128
128
  "aria-orientation"
129
129
  ]),
130
- menubar: new Set([
130
+ menubar: /* @__PURE__ */ new Set([
131
131
  "aria-activedescendant",
132
132
  "aria-expanded",
133
133
  "aria-orientation"
134
134
  ]),
135
- menuitem: new Set([
135
+ menuitem: /* @__PURE__ */ new Set([
136
136
  "aria-expanded",
137
137
  "aria-posinset",
138
138
  "aria-setsize"
139
139
  ]),
140
- menuitemcheckbox: new Set([
140
+ menuitemcheckbox: /* @__PURE__ */ new Set([
141
141
  "aria-checked",
142
142
  "aria-expanded",
143
143
  "aria-posinset",
144
144
  "aria-readonly",
145
145
  "aria-setsize"
146
146
  ]),
147
- menuitemradio: new Set([
147
+ menuitemradio: /* @__PURE__ */ new Set([
148
148
  "aria-checked",
149
149
  "aria-expanded",
150
150
  "aria-posinset",
151
151
  "aria-readonly",
152
152
  "aria-setsize"
153
153
  ]),
154
- navigation: new Set(["aria-expanded"]),
154
+ navigation: /* @__PURE__ */ new Set(["aria-expanded"]),
155
155
  none: /* @__PURE__ */ new Set([]),
156
- note: new Set(["aria-expanded"]),
157
- option: new Set([
156
+ note: /* @__PURE__ */ new Set(["aria-expanded"]),
157
+ option: /* @__PURE__ */ new Set([
158
158
  "aria-checked",
159
159
  "aria-expanded",
160
160
  "aria-posinset",
@@ -162,37 +162,37 @@ const roleToSupportedProps = {
162
162
  "aria-setsize"
163
163
  ]),
164
164
  presentation: /* @__PURE__ */ new Set([]),
165
- progressbar: new Set([
165
+ progressbar: /* @__PURE__ */ new Set([
166
166
  "aria-expanded",
167
167
  "aria-valuemax",
168
168
  "aria-valuemin",
169
169
  "aria-valuenow",
170
170
  "aria-valuetext"
171
171
  ]),
172
- radio: new Set([
172
+ radio: /* @__PURE__ */ new Set([
173
173
  "aria-checked",
174
174
  "aria-expanded",
175
175
  "aria-posinset",
176
176
  "aria-readonly",
177
177
  "aria-setsize"
178
178
  ]),
179
- radiogroup: new Set([
179
+ radiogroup: /* @__PURE__ */ new Set([
180
180
  "aria-activedescendant",
181
181
  "aria-expanded",
182
182
  "aria-orientation",
183
183
  "aria-readonly",
184
184
  "aria-required"
185
185
  ]),
186
- range: new Set([
186
+ range: /* @__PURE__ */ new Set([
187
187
  "aria-expanded",
188
188
  "aria-valuemax",
189
189
  "aria-valuemin",
190
190
  "aria-valuenow",
191
191
  "aria-valuetext"
192
192
  ]),
193
- region: new Set(["aria-expanded"]),
194
- roletype: new Set(["aria-expanded"]),
195
- row: new Set([
193
+ region: /* @__PURE__ */ new Set(["aria-expanded"]),
194
+ roletype: /* @__PURE__ */ new Set(["aria-expanded"]),
195
+ row: /* @__PURE__ */ new Set([
196
196
  "aria-activedescendant",
197
197
  "aria-colindex",
198
198
  "aria-expanded",
@@ -200,8 +200,8 @@ const roleToSupportedProps = {
200
200
  "aria-rowindex",
201
201
  "aria-selected"
202
202
  ]),
203
- rowgroup: new Set(["aria-activedescendant", "aria-expanded"]),
204
- rowheader: new Set([
203
+ rowgroup: /* @__PURE__ */ new Set(["aria-activedescendant", "aria-expanded"]),
204
+ rowheader: /* @__PURE__ */ new Set([
205
205
  "aria-colindex",
206
206
  "aria-colspan",
207
207
  "aria-expanded",
@@ -212,7 +212,7 @@ const roleToSupportedProps = {
212
212
  "aria-selected",
213
213
  "aria-sort"
214
214
  ]),
215
- scrollbar: new Set([
215
+ scrollbar: /* @__PURE__ */ new Set([
216
216
  "aria-controls",
217
217
  "aria-expanded",
218
218
  "aria-orientation",
@@ -221,8 +221,8 @@ const roleToSupportedProps = {
221
221
  "aria-valuenow",
222
222
  "aria-valuetext"
223
223
  ]),
224
- search: new Set(["aria-expanded"]),
225
- searchbox: new Set([
224
+ search: /* @__PURE__ */ new Set(["aria-expanded"]),
225
+ searchbox: /* @__PURE__ */ new Set([
226
226
  "aria-activedescendant",
227
227
  "aria-autocomplete",
228
228
  "aria-expanded",
@@ -231,14 +231,14 @@ const roleToSupportedProps = {
231
231
  "aria-readonly",
232
232
  "aria-required"
233
233
  ]),
234
- section: new Set(["aria-expanded"]),
235
- sectionhead: new Set(["aria-expanded"]),
236
- select: new Set([
234
+ section: /* @__PURE__ */ new Set(["aria-expanded"]),
235
+ sectionhead: /* @__PURE__ */ new Set(["aria-expanded"]),
236
+ select: /* @__PURE__ */ new Set([
237
237
  "aria-activedescendant",
238
238
  "aria-expanded",
239
239
  "aria-orientation"
240
240
  ]),
241
- separator: new Set([
241
+ separator: /* @__PURE__ */ new Set([
242
242
  "aria-expanded",
243
243
  "aria-orientation",
244
244
  "aria-valuemax",
@@ -246,7 +246,7 @@ const roleToSupportedProps = {
246
246
  "aria-valuenow",
247
247
  "aria-valuetext"
248
248
  ]),
249
- slider: new Set([
249
+ slider: /* @__PURE__ */ new Set([
250
250
  "aria-expanded",
251
251
  "aria-orientation",
252
252
  "aria-readonly",
@@ -255,7 +255,7 @@ const roleToSupportedProps = {
255
255
  "aria-valuenow",
256
256
  "aria-valuetext"
257
257
  ]),
258
- spinbutton: new Set([
258
+ spinbutton: /* @__PURE__ */ new Set([
259
259
  "aria-activedescendant",
260
260
  "aria-expanded",
261
261
  "aria-readonly",
@@ -265,37 +265,37 @@ const roleToSupportedProps = {
265
265
  "aria-valuenow",
266
266
  "aria-valuetext"
267
267
  ]),
268
- status: new Set(["aria-expanded"]),
269
- structure: new Set(["aria-expanded"]),
270
- switch: new Set([
268
+ status: /* @__PURE__ */ new Set(["aria-expanded"]),
269
+ structure: /* @__PURE__ */ new Set(["aria-expanded"]),
270
+ switch: /* @__PURE__ */ new Set([
271
271
  "aria-checked",
272
272
  "aria-expanded",
273
273
  "aria-readonly",
274
274
  "aria-required"
275
275
  ]),
276
- tab: new Set([
276
+ tab: /* @__PURE__ */ new Set([
277
277
  "aria-expanded",
278
278
  "aria-posinset",
279
279
  "aria-selected",
280
280
  "aria-setsize"
281
281
  ]),
282
- table: new Set([
282
+ table: /* @__PURE__ */ new Set([
283
283
  "aria-colcount",
284
284
  "aria-expanded",
285
285
  "aria-level",
286
286
  "aria-multiselectable",
287
287
  "aria-rowcount"
288
288
  ]),
289
- tablist: new Set([
289
+ tablist: /* @__PURE__ */ new Set([
290
290
  "aria-activedescendant",
291
291
  "aria-expanded",
292
292
  "aria-level",
293
293
  "aria-multiselectable",
294
294
  "aria-orientation"
295
295
  ]),
296
- tabpanel: new Set(["aria-expanded"]),
297
- term: new Set(["aria-expanded"]),
298
- textbox: new Set([
296
+ tabpanel: /* @__PURE__ */ new Set(["aria-expanded"]),
297
+ term: /* @__PURE__ */ new Set(["aria-expanded"]),
298
+ textbox: /* @__PURE__ */ new Set([
299
299
  "aria-activedescendant",
300
300
  "aria-autocomplete",
301
301
  "aria-expanded",
@@ -304,21 +304,21 @@ const roleToSupportedProps = {
304
304
  "aria-readonly",
305
305
  "aria-required"
306
306
  ]),
307
- timer: new Set(["aria-expanded"]),
308
- toolbar: new Set([
307
+ timer: /* @__PURE__ */ new Set(["aria-expanded"]),
308
+ toolbar: /* @__PURE__ */ new Set([
309
309
  "aria-activedescendant",
310
310
  "aria-expanded",
311
311
  "aria-orientation"
312
312
  ]),
313
- tooltip: new Set(["aria-expanded"]),
314
- tree: new Set([
313
+ tooltip: /* @__PURE__ */ new Set(["aria-expanded"]),
314
+ tree: /* @__PURE__ */ new Set([
315
315
  "aria-activedescendant",
316
316
  "aria-expanded",
317
317
  "aria-multiselectable",
318
318
  "aria-orientation",
319
319
  "aria-required"
320
320
  ]),
321
- treegrid: new Set([
321
+ treegrid: /* @__PURE__ */ new Set([
322
322
  "aria-activedescendant",
323
323
  "aria-colcount",
324
324
  "aria-expanded",
@@ -329,7 +329,7 @@ const roleToSupportedProps = {
329
329
  "aria-required",
330
330
  "aria-rowcount"
331
331
  ]),
332
- treeitem: new Set([
332
+ treeitem: /* @__PURE__ */ new Set([
333
333
  "aria-checked",
334
334
  "aria-expanded",
335
335
  "aria-level",
@@ -337,8 +337,8 @@ const roleToSupportedProps = {
337
337
  "aria-selected",
338
338
  "aria-setsize"
339
339
  ]),
340
- widget: new Set(["aria-expanded"]),
341
- window: new Set(["aria-expanded", "aria-modal"])
340
+ widget: /* @__PURE__ */ new Set(["aria-expanded"]),
341
+ window: /* @__PURE__ */ new Set(["aria-expanded", "aria-modal"])
342
342
  };
343
343
  const implicitRoles = {
344
344
  a: "link",
@@ -368,7 +368,7 @@ const implicitRoles = {
368
368
  ul: "list"
369
369
  };
370
370
  function getSupportedPropsForRole(role) {
371
- return new Set([...roleToSupportedProps[role] ?? [], ...globalAriaProperties]);
371
+ return /* @__PURE__ */ new Set([...roleToSupportedProps[role] ?? [], ...globalAriaProperties]);
372
372
  }
373
373
  var roleSupportedAriaProps_default = ruleCreator.createRule(typescriptLanguage, {
374
374
  about: {
@@ -415,5 +415,3 @@ var roleSupportedAriaProps_default = ruleCreator.createRule(typescriptLanguage,
415
415
  });
416
416
  //#endregion
417
417
  export { roleSupportedAriaProps_default as default };
418
-
419
- //# sourceMappingURL=roleSupportedAriaProps.js.map
@@ -7,4 +7,3 @@ declare const _default: import("@flint.fyi/core").Rule<{
7
7
  readonly url: string;
8
8
  }, "preferSemanticElement", undefined>;
9
9
  export default _default;
10
- //# sourceMappingURL=roleTags.d.ts.map
@@ -68,5 +68,3 @@ var roleTags_default = ruleCreator.createRule(typescriptLanguage, {
68
68
  });
69
69
  //#endregion
70
70
  export { roleTags_default as default };
71
-
72
- //# sourceMappingURL=roleTags.js.map
@@ -1,3 +1,2 @@
1
1
  import { RuleCreator } from "@flint.fyi/core";
2
2
  export declare const ruleCreator: RuleCreator<"logical" | "logicalStrict" | "stylistic", import("@flint.fyi/core").RuleAbout<"logical" | "logicalStrict" | "stylistic">>;
3
- //# sourceMappingURL=ruleCreator.d.ts.map
@@ -11,5 +11,3 @@ const ruleCreator = new RuleCreator({
11
11
  });
12
12
  //#endregion
13
13
  export { ruleCreator };
14
-
15
- //# sourceMappingURL=ruleCreator.js.map
@@ -7,4 +7,3 @@ declare const _default: import("@flint.fyi/core").Rule<{
7
7
  readonly url: string;
8
8
  }, "invalidScope", undefined>;
9
9
  export default _default;
10
- //# sourceMappingURL=scopeProps.d.ts.map
@@ -37,5 +37,3 @@ var scopeProps_default = ruleCreator.createRule(typescriptLanguage, {
37
37
  });
38
38
  //#endregion
39
39
  export { scopeProps_default as default };
40
-
41
- //# sourceMappingURL=scopeProps.js.map
@@ -7,4 +7,3 @@ declare const _default: import("@flint.fyi/core").Rule<{
7
7
  readonly url: string;
8
8
  }, "missingRole", undefined>;
9
9
  export default _default;
10
- //# sourceMappingURL=staticElementInteractions.d.ts.map
@@ -10,7 +10,7 @@ const interactiveHandlers = [
10
10
  "onMouseDown",
11
11
  "onMouseUp"
12
12
  ];
13
- const interactiveElements = new Set([
13
+ const interactiveElements = /* @__PURE__ */ new Set([
14
14
  "a",
15
15
  "button",
16
16
  "input",
@@ -56,5 +56,3 @@ var staticElementInteractions_default = ruleCreator.createRule(typescriptLanguag
56
56
  });
57
57
  //#endregion
58
58
  export { staticElementInteractions_default as default };
59
-
60
- //# sourceMappingURL=staticElementInteractions.js.map
@@ -7,4 +7,3 @@ declare const _default: import("@flint.fyi/core").Rule<{
7
7
  readonly url: string;
8
8
  }, "missingTitle", undefined>;
9
9
  export default _default;
10
- //# sourceMappingURL=svgTitles.d.ts.map
@@ -55,5 +55,3 @@ function isTitleElement(node) {
55
55
  }
56
56
  //#endregion
57
57
  export { svgTitles_default as default };
58
-
59
- //# sourceMappingURL=svgTitles.js.map
@@ -7,4 +7,3 @@ declare const _default: import("@flint.fyi/core").Rule<{
7
7
  readonly url: string;
8
8
  }, "noPositiveTabIndex", undefined>;
9
9
  export default _default;
10
- //# sourceMappingURL=tabIndexPositiveValues.d.ts.map
@@ -41,5 +41,3 @@ function getInitializerValue(initializer) {
41
41
  }
42
42
  //#endregion
43
43
  export { tabIndexPositiveValues_default as default };
44
-
45
- //# sourceMappingURL=tabIndexPositiveValues.js.map
@@ -7,4 +7,3 @@ declare const _default: import("@flint.fyi/core").Rule<{
7
7
  readonly url: string;
8
8
  }, "unescapedEntity", undefined>;
9
9
  export default _default;
10
- //# sourceMappingURL=unescapedEntities.d.ts.map
@@ -66,5 +66,3 @@ var unescapedEntities_default = ruleCreator.createRule(typescriptLanguage, {
66
66
  });
67
67
  //#endregion
68
68
  export { unescapedEntities_default as default };
69
-
70
- //# sourceMappingURL=unescapedEntities.js.map
@@ -7,4 +7,3 @@ declare const _default: import("@flint.fyi/core").Rule<{
7
7
  readonly url: string;
8
8
  }, "unnecessaryFragment", undefined>;
9
9
  export default _default;
10
- //# sourceMappingURL=unnecessaryFragments.d.ts.map
@@ -47,5 +47,3 @@ var unnecessaryFragments_default = ruleCreator.createRule(typescriptLanguage, {
47
47
  });
48
48
  //#endregion
49
49
  export { unnecessaryFragments_default as default };
50
-
51
- //# sourceMappingURL=unnecessaryFragments.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flint.fyi/jsx",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "description": "[Experimental] A Flint plugin for JSX code.",
5
5
  "homepage": "https://flint.fyi/rules/jsx",
6
6
  "repository": {
@@ -19,19 +19,18 @@
19
19
  ".": "./lib/index.js"
20
20
  },
21
21
  "files": [
22
- "lib/",
23
- "!lib/**/*.map"
22
+ "lib/"
24
23
  ],
25
24
  "dependencies": {
26
25
  "language-tags": "^2.1.0",
27
- "typescript": "^5.9.3 || ^6.0.0",
28
- "@flint.fyi/core": "^0.23.0",
29
- "@flint.fyi/utils": "^0.14.1",
30
- "@flint.fyi/typescript-language": "^0.18.3"
26
+ "typescript": "^6.0.0",
27
+ "@flint.fyi/typescript-language": "^0.18.4",
28
+ "@flint.fyi/core": "^0.23.3",
29
+ "@flint.fyi/utils": "^0.14.1"
31
30
  },
32
31
  "devDependencies": {
33
32
  "@types/language-tags": "1.0.4",
34
- "tsdown": "0.21.0",
33
+ "tsdown": "0.22.3",
35
34
  "vitest": "4.1.0",
36
35
  "@flint.fyi/rule-tester": "^0.16.4"
37
36
  },