@html-eslint/eslint-plugin 0.36.0 → 0.38.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.
@@ -0,0 +1,509 @@
1
+ /**
2
+ * This file is auto-generated. (yarn run baseline)
3
+ */
4
+ const BASELINE_HIGH = 10;
5
+ const BASELINE_LOW = 5;
6
+ const BASELINE_FALSE = 0;
7
+
8
+ const elements = new Map([
9
+ ["a", "10:2015"],
10
+ ["a.attributionsourceid", "0:"],
11
+ ["a.attributionsrc", "0:"],
12
+ ["a.download", "10:2019"],
13
+ ["a.href", "10:2015"],
14
+ ["a.hreflang", "10:2015"],
15
+ ["a.ping", "0:"],
16
+ ["a.referrerpolicy", "10:2020"],
17
+ ["a.referrerpolicy.no-referrer-when-downgrade", "0:"],
18
+ ["a.referrerpolicy.origin-when-cross-origin", "0:"],
19
+ ["a.referrerpolicy.unsafe-url", "0:"],
20
+ ["a.rel", "10:2015"],
21
+ ["a.rel.noopener", "10:2020"],
22
+ ["a.rel.noreferrer", "10:2015"],
23
+ ["a.target", "10:2015"],
24
+ ["a.target.unfencedTop", "0:"],
25
+ ["a.type", "10:2015"],
26
+ ["abbr", "10:2015"],
27
+ ["address", "10:2015"],
28
+ ["area", "10:2015"],
29
+ ["area.alt", "10:2015"],
30
+ ["area.attributionsrc", "0:"],
31
+ ["area.coords", "10:2015"],
32
+ ["area.download", "10:2017"],
33
+ ["area.href", "10:2015"],
34
+ ["area.ping", "0:"],
35
+ ["area.referrerpolicy", "10:2020"],
36
+ ["area.referrerpolicy.no-referrer-when-downgrade", "0:"],
37
+ ["area.referrerpolicy.origin-when-cross-origin", "0:"],
38
+ ["area.referrerpolicy.unsafe-url", "0:"],
39
+ ["area.rel", "10:2015"],
40
+ ["area.rel.noopener", "10:2020"],
41
+ ["area.rel.noreferrer", "10:2015"],
42
+ ["area.shape", "10:2015"],
43
+ ["area.target", "10:2015"],
44
+ ["article", "10:2015"],
45
+ ["aside", "10:2015"],
46
+ ["audio", "10:2015"],
47
+ ["audio.autoplay", "0:"],
48
+ ["audio.controls", "10:2015"],
49
+ ["audio.controlslist", "0:"],
50
+ ["audio.crossorigin", "10:2020"],
51
+ ["audio.disableremoteplayback", "0:"],
52
+ ["audio.loop", "10:2015"],
53
+ ["audio.muted", "10:2018"],
54
+ ["audio.preload", "10:2015"],
55
+ ["audio.src", "10:2015"],
56
+ ["b", "10:2015"],
57
+ ["base", "10:2015"],
58
+ ["base.href", "10:2015"],
59
+ ["base.target", "10:2015"],
60
+ ["bdi", "10:2020"],
61
+ ["bdo", "10:2015"],
62
+ ["blockquote", "10:2015"],
63
+ ["blockquote.cite", "10:2015"],
64
+ ["body", "10:2015"],
65
+ ["br", "10:2015"],
66
+ ["button", "10:2015"],
67
+ ["button.command", "0:"],
68
+ ["button.commandfor", "0:"],
69
+ ["button.disabled", "10:2015"],
70
+ ["button.form", "10:2017"],
71
+ ["button.formaction", "10:2015"],
72
+ ["button.formenctype", "10:2015"],
73
+ ["button.formmethod", "10:2015"],
74
+ ["button.formnovalidate", "10:2015"],
75
+ ["button.formtarget", "10:2015"],
76
+ ["button.name", "10:2015"],
77
+ ["button.popovertarget", "5:2024"],
78
+ ["button.popovertargetaction", "5:2024"],
79
+ ["button.type", "10:2015"],
80
+ ["button.value", "10:2015"],
81
+ ["canvas", "10:2015"],
82
+ ["canvas.height", "10:2015"],
83
+ ["canvas.width", "10:2015"],
84
+ ["caption", "10:2015"],
85
+ ["cite", "10:2015"],
86
+ ["code", "10:2015"],
87
+ ["col", "10:2015"],
88
+ ["col.span", "10:2015"],
89
+ ["colgroup", "10:2015"],
90
+ ["colgroup.span", "10:2015"],
91
+ ["data", "10:2017"],
92
+ ["data.value", "10:2017"],
93
+ ["datalist", "0:"],
94
+ ["dd", "10:2015"],
95
+ ["del", "10:2015"],
96
+ ["del.cite", "10:2015"],
97
+ ["del.datetime", "10:2015"],
98
+ ["details", "10:2020"],
99
+ ["details.name", "5:2024"],
100
+ ["details.open", "10:2020"],
101
+ ["dfn", "10:2015"],
102
+ ["dialog", "10:2022"],
103
+ ["dialog.open", "10:2022"],
104
+ ["div", "10:2015"],
105
+ ["dl", "10:2015"],
106
+ ["dt", "10:2015"],
107
+ ["em", "10:2015"],
108
+ ["embed", "10:2015"],
109
+ ["embed.height", "10:2015"],
110
+ ["embed.src", "10:2015"],
111
+ ["embed.type", "10:2020"],
112
+ ["embed.width", "10:2015"],
113
+ ["fencedframe", "0:"],
114
+ ["fencedframe.allow", "0:"],
115
+ ["fencedframe.height", "0:"],
116
+ ["fencedframe.width", "0:"],
117
+ ["fieldset", "10:2015"],
118
+ ["fieldset.disabled", "10:2020"],
119
+ ["fieldset.form", "10:2015"],
120
+ ["fieldset.name", "10:2015"],
121
+ ["figcaption", "10:2015"],
122
+ ["figure", "10:2015"],
123
+ ["footer", "10:2015"],
124
+ ["form", "10:2015"],
125
+ ["form.accept-charset", "10:2015"],
126
+ ["form.action", "10:2015"],
127
+ ["form.autocomplete", "10:2015"],
128
+ ["form.enctype", "10:2015"],
129
+ ["form.method", "10:2015"],
130
+ ["form.name", "10:2015"],
131
+ ["form.novalidate", "10:2017"],
132
+ ["form.rel", "5:2023"],
133
+ ["form.target", "10:2015"],
134
+ ["h1", "10:2015"],
135
+ ["h2", "10:2015"],
136
+ ["h3", "10:2015"],
137
+ ["h4", "10:2015"],
138
+ ["h5", "10:2015"],
139
+ ["h6", "10:2015"],
140
+ ["head", "10:2015"],
141
+ ["header", "10:2015"],
142
+ ["hgroup", "10:2015"],
143
+ ["hr", "10:2015"],
144
+ ["html", "10:2015"],
145
+ ["i", "10:2015"],
146
+ ["iframe", "10:2015"],
147
+ ["iframe.allow", "10:2020"],
148
+ ["iframe.allow.accelerometer", "0:"],
149
+ ["iframe.allow.ambient-light-sensor", "0:"],
150
+ ["iframe.allow.attribution-reporting", "0:"],
151
+ ["iframe.allow.bluetooth", "0:"],
152
+ ["iframe.allow.camera", "10:2020"],
153
+ ["iframe.allow.compute-pressure", "0:"],
154
+ ["iframe.allow.display-capture", "0:"],
155
+ ["iframe.allow.encrypted-media", "0:"],
156
+ ["iframe.allow.fullscreen", "0:"],
157
+ ["iframe.allow.gamepad", "0:"],
158
+ ["iframe.allow.geolocation", "0:"],
159
+ ["iframe.allow.gyroscope", "0:"],
160
+ ["iframe.allow.hid", "0:"],
161
+ ["iframe.allow.idle-detection", "0:"],
162
+ ["iframe.allow.local-fonts", "0:"],
163
+ ["iframe.allow.magnetometer", "0:"],
164
+ ["iframe.allow.microphone", "10:2020"],
165
+ ["iframe.allow.midi", "0:"],
166
+ ["iframe.allow.otp-credentials", "0:"],
167
+ ["iframe.allow.payment", "0:"],
168
+ ["iframe.allow.picture-in-picture", "0:"],
169
+ ["iframe.allow.publickey-credentials-create", "0:"],
170
+ ["iframe.allow.publickey-credentials-get", "0:"],
171
+ ["iframe.allow.screen-wake-lock", "5:2024"],
172
+ ["iframe.allow.serial", "0:"],
173
+ ["iframe.allow.storage-access", "0:"],
174
+ ["iframe.allow.usb", "0:"],
175
+ ["iframe.allow.web-share", "0:"],
176
+ ["iframe.allow.window-management", "0:"],
177
+ ["iframe.allow.xr-spatial-tracking", "0:"],
178
+ ["iframe.allowfullscreen", "0:"],
179
+ ["iframe.credentialless", "0:"],
180
+ ["iframe.csp", "0:"],
181
+ ["iframe.height", "10:2015"],
182
+ ["iframe.loading", "5:2023"],
183
+ ["iframe.name", "10:2015"],
184
+ ["iframe.referrerpolicy", "10:2020"],
185
+ ["iframe.referrerpolicy.no-referrer-when-downgrade", "0:"],
186
+ ["iframe.referrerpolicy.origin-when-cross-origin", "0:"],
187
+ ["iframe.referrerpolicy.unsafe-url", "0:"],
188
+ ["iframe.sandbox", "10:2015"],
189
+ ["iframe.sandbox.allow-downloads", "5:2023"],
190
+ ["iframe.sandbox.allow-forms", "10:2020"],
191
+ ["iframe.sandbox.allow-modals", "10:2020"],
192
+ ["iframe.sandbox.allow-pointer-lock", "0:"],
193
+ ["iframe.sandbox.allow-popups", "10:2015"],
194
+ ["iframe.sandbox.allow-popups-to-escape-sandbox", "10:2020"],
195
+ ["iframe.sandbox.allow-presentation", "0:"],
196
+ ["iframe.sandbox.allow-same-origin", "10:2020"],
197
+ ["iframe.sandbox.allow-scripts", "10:2020"],
198
+ ["iframe.sandbox.allow-top-navigation", "10:2020"],
199
+ ["iframe.sandbox.allow-top-navigation-by-user-activation", "10:2020"],
200
+ ["iframe.sandbox.allow-top-navigation-to-custom-protocols", "0:"],
201
+ ["iframe.src", "10:2015"],
202
+ ["iframe.srcdoc", "10:2020"],
203
+ ["iframe.width", "10:2015"],
204
+ ["img", "10:2015"],
205
+ ["img.alt", "10:2015"],
206
+ ["img.attributionsrc", "0:"],
207
+ ["img.crossorigin", "10:2015"],
208
+ ["img.decoding", "10:2020"],
209
+ ["img.fetchpriority", "5:2024"],
210
+ ["img.height", "10:2015"],
211
+ ["img.ismap", "10:2015"],
212
+ ["img.loading", "10:2022"],
213
+ ["img.referrerpolicy", "10:2020"],
214
+ ["img.referrerpolicy.no-referrer-when-downgrade", "0:"],
215
+ ["img.referrerpolicy.origin-when-cross-origin", "0:"],
216
+ ["img.referrerpolicy.unsafe-url", "0:"],
217
+ ["img.sizes", "10:2016"],
218
+ ["img.src", "10:2015"],
219
+ ["img.srcset", "10:2015"],
220
+ ["img.usemap", "10:2015"],
221
+ ["img.width", "10:2015"],
222
+ ["input", "10:2015"],
223
+ ["input.accept", "10:2015"],
224
+ ["input.alpha", "0:"],
225
+ ["input.alt", "10:2015"],
226
+ ["input.capture", "0:"],
227
+ ["input.checked", "10:2015"],
228
+ ["input.colorspace", "0:"],
229
+ ["input.dirname", "5:2023"],
230
+ ["input.disabled", "10:2015"],
231
+ ["input.form", "10:2015"],
232
+ ["input.formaction", "10:2015"],
233
+ ["input.formenctype", "10:2015"],
234
+ ["input.formmethod", "10:2015"],
235
+ ["input.formnovalidate", "10:2015"],
236
+ ["input.formtarget", "10:2015"],
237
+ ["input.list", "10:2019"],
238
+ ["input.max", "10:2015"],
239
+ ["input.maxlength", "10:2015"],
240
+ ["input.min", "10:2015"],
241
+ ["input.minlength", "10:2018"],
242
+ ["input.multiple", "10:2015"],
243
+ ["input.name", "10:2015"],
244
+ ["input.pattern", "10:2015"],
245
+ ["input.placeholder", "10:2015"],
246
+ ["input.popovertarget", "5:2024"],
247
+ ["input.popovertargetaction", "5:2024"],
248
+ ["input.readonly", "10:2015"],
249
+ ["input.required", "10:2015"],
250
+ ["input.size", "10:2015"],
251
+ ["input.src", "10:2015"],
252
+ ["input.step", "10:2015"],
253
+ ["ins", "10:2015"],
254
+ ["ins.cite", "10:2015"],
255
+ ["ins.datetime", "10:2015"],
256
+ ["kbd", "10:2015"],
257
+ ["label", "10:2015"],
258
+ ["label.for", "10:2015"],
259
+ ["legend", "10:2015"],
260
+ ["li", "10:2015"],
261
+ ["li.value", "10:2015"],
262
+ ["link", "10:2015"],
263
+ ["link.as", "10:2018"],
264
+ ["link.blocking", "0:"],
265
+ ["link.crossorigin", "10:2018"],
266
+ ["link.disabled", "10:2015"],
267
+ ["link.fetchpriority", "5:2024"],
268
+ ["link.href", "10:2015"],
269
+ ["link.hreflang", "10:2015"],
270
+ ["link.imagesizes", "5:2023"],
271
+ ["link.imagesrcset", "5:2023"],
272
+ ["link.integrity", "10:2018"],
273
+ ["link.media", "10:2015"],
274
+ ["link.referrerpolicy", "10:2020"],
275
+ ["link.referrerpolicy.no-referrer-when-downgrade", "0:"],
276
+ ["link.referrerpolicy.origin-when-cross-origin", "0:"],
277
+ ["link.referrerpolicy.unsafe-url", "0:"],
278
+ ["link.rel", "10:2015"],
279
+ ["link.rel.dns-prefetch", "5:2024"],
280
+ ["link.rel.expect", "0:"],
281
+ ["link.rel.manifest", "0:"],
282
+ ["link.rel.modulepreload", "5:2023"],
283
+ ["link.rel.preconnect", "10:2020"],
284
+ ["link.rel.prefetch", "0:"],
285
+ ["link.rel.preload", "10:2021"],
286
+ ["link.rel.preload.as-fetch", "10:2021"],
287
+ ["link.rel.preload.as-font", "10:2021"],
288
+ ["link.rel.preload.as-image", "10:2021"],
289
+ ["link.rel.preload.as-script", "10:2021"],
290
+ ["link.rel.preload.as-style", "10:2021"],
291
+ ["link.rel.preload.as-track", "0:"],
292
+ ["link.sizes", "10:2020"],
293
+ ["link.type", "10:2015"],
294
+ ["main", "10:2015"],
295
+ ["map", "10:2015"],
296
+ ["map.name", "10:2015"],
297
+ ["mark", "10:2015"],
298
+ ["menu", "10:2015"],
299
+ ["meta", "10:2015"],
300
+ ["meta.charset", "10:2015"],
301
+ ["meta.content", "10:2015"],
302
+ ["meta.http-equiv", "10:2015"],
303
+ ["meta.http-equiv.content-security-policy", "10:2017"],
304
+ ["meta.http-equiv.content-type", "10:2017"],
305
+ ["meta.http-equiv.refresh", "10:2015"],
306
+ ["meta.name", "10:2015"],
307
+ ["meta.name.application-title", "0:"],
308
+ ["meta.name.color-scheme", "10:2022"],
309
+ ["meta.name.referrer", "10:2020"],
310
+ ["meta.name.theme-color", "0:"],
311
+ ["meter", "10:2017"],
312
+ ["meter.high", "10:2017"],
313
+ ["meter.low", "10:2017"],
314
+ ["meter.max", "10:2017"],
315
+ ["meter.min", "10:2017"],
316
+ ["meter.optimum", "10:2017"],
317
+ ["meter.value", "10:2017"],
318
+ ["nav", "10:2015"],
319
+ ["noscript", "10:2015"],
320
+ ["object", "10:2015"],
321
+ ["object.data", "10:2015"],
322
+ ["object.form", "10:2015"],
323
+ ["object.height", "10:2015"],
324
+ ["object.name", "10:2015"],
325
+ ["object.type", "10:2015"],
326
+ ["object.width", "10:2015"],
327
+ ["ol", "10:2015"],
328
+ ["ol.reversed", "10:2020"],
329
+ ["ol.start", "10:2015"],
330
+ ["ol.type", "10:2015"],
331
+ ["optgroup", "10:2015"],
332
+ ["optgroup.disabled", "10:2015"],
333
+ ["optgroup.label", "10:2015"],
334
+ ["option", "10:2015"],
335
+ ["option.disabled", "10:2015"],
336
+ ["option.label", "10:2015"],
337
+ ["option.selected", "10:2015"],
338
+ ["option.value", "10:2015"],
339
+ ["output", "10:2018"],
340
+ ["output.for", "10:2018"],
341
+ ["output.form", "10:2018"],
342
+ ["output.name", "10:2018"],
343
+ ["p", "10:2015"],
344
+ ["picture", "10:2016"],
345
+ ["pre", "10:2015"],
346
+ ["progress", "10:2015"],
347
+ ["progress.max", "10:2015"],
348
+ ["progress.value", "10:2015"],
349
+ ["q", "10:2015"],
350
+ ["q.cite", "10:2015"],
351
+ ["rp", "10:2015"],
352
+ ["rt", "10:2015"],
353
+ ["ruby", "10:2015"],
354
+ ["s", "10:2015"],
355
+ ["samp", "10:2015"],
356
+ ["script", "10:2015"],
357
+ ["script.async", "10:2015"],
358
+ ["script.attributionsrc", "0:"],
359
+ ["script.blocking", "0:"],
360
+ ["script.crossorigin", "10:2016"],
361
+ ["script.defer", "10:2015"],
362
+ ["script.fetchpriority", "5:2024"],
363
+ ["script.integrity", "10:2018"],
364
+ ["script.nomodule", "10:2018"],
365
+ ["script.referrerpolicy", "10:2020"],
366
+ ["script.referrerpolicy.no-referrer-when-downgrade", "0:"],
367
+ ["script.referrerpolicy.origin-when-cross-origin", "0:"],
368
+ ["script.referrerpolicy.unsafe-url", "0:"],
369
+ ["script.src", "10:2015"],
370
+ ["script.type", "10:2015"],
371
+ ["script.type.importmap", "5:2023"],
372
+ ["script.type.module", "10:2018"],
373
+ ["script.type.speculationrules", "0:"],
374
+ ["script.type.speculationrules.eagerness", "0:"],
375
+ ["script.type.speculationrules.prefetch", "0:"],
376
+ ["script.type.speculationrules.prerender", "0:"],
377
+ ["script.type.speculationrules.requires", "0:"],
378
+ [
379
+ "script.type.speculationrules.requires.anonymous-client-ip-when-cross-origin",
380
+ "0:",
381
+ ],
382
+ ["script.type.speculationrules.urls", "0:"],
383
+ ["script.type.speculationrules.where", "0:"],
384
+ ["search", "5:2023"],
385
+ ["section", "10:2015"],
386
+ ["select", "10:2015"],
387
+ ["select.disabled", "10:2015"],
388
+ ["select.form", "10:2015"],
389
+ ["select.multiple", "10:2015"],
390
+ ["select.name", "10:2015"],
391
+ ["select.required", "10:2015"],
392
+ ["select.size", "0:"],
393
+ ["selectedcontent", "0:"],
394
+ ["slot", "10:2020"],
395
+ ["slot.name", "10:2020"],
396
+ ["small", "10:2015"],
397
+ ["source", "10:2015"],
398
+ ["source.height", "5:2022"],
399
+ ["source.media", "10:2015"],
400
+ ["source.sizes", "10:2016"],
401
+ ["source.src", "10:2015"],
402
+ ["source.srcset", "10:2016"],
403
+ ["source.type", "10:2015"],
404
+ ["source.width", "5:2022"],
405
+ ["span", "10:2015"],
406
+ ["strong", "10:2015"],
407
+ ["style", "10:2015"],
408
+ ["style.blocking", "0:"],
409
+ ["style.media", "10:2015"],
410
+ ["sub", "10:2015"],
411
+ ["summary", "10:2020"],
412
+ ["sup", "10:2015"],
413
+ ["table", "10:2015"],
414
+ ["tbody", "10:2015"],
415
+ ["td", "10:2015"],
416
+ ["td.colspan", "10:2015"],
417
+ ["td.headers", "10:2015"],
418
+ ["td.rowspan", "10:2015"],
419
+ ["template", "10:2015"],
420
+ ["template.shadowrootclonable", "0:"],
421
+ ["template.shadowrootdelegatesfocus", "0:"],
422
+ ["template.shadowrootmode", "5:2024"],
423
+ ["template.shadowrootserializable", "0:"],
424
+ ["textarea", "10:2015"],
425
+ ["textarea.autocomplete", "10:2020"],
426
+ ["textarea.cols", "10:2015"],
427
+ ["textarea.dirname", "5:2023"],
428
+ ["textarea.disabled", "10:2015"],
429
+ ["textarea.form", "10:2015"],
430
+ ["textarea.maxlength", "10:2015"],
431
+ ["textarea.minlength", "10:2018"],
432
+ ["textarea.name", "10:2015"],
433
+ ["textarea.placeholder", "10:2015"],
434
+ ["textarea.readonly", "10:2015"],
435
+ ["textarea.required", "10:2015"],
436
+ ["textarea.rows", "10:2015"],
437
+ ["textarea.spellcheck", "10:2015"],
438
+ ["textarea.wrap", "10:2015"],
439
+ ["textarea.wrap.hard", "0:"],
440
+ ["tfoot", "10:2015"],
441
+ ["th", "10:2015"],
442
+ ["th.abbr", "10:2015"],
443
+ ["th.colspan", "10:2015"],
444
+ ["th.headers", "10:2015"],
445
+ ["th.rowspan", "10:2015"],
446
+ ["th.scope", "10:2015"],
447
+ ["thead", "10:2015"],
448
+ ["time", "10:2017"],
449
+ ["time.datetime", "10:2017"],
450
+ ["title", "10:2015"],
451
+ ["tr", "10:2015"],
452
+ ["track", "10:2015"],
453
+ ["track.default", "10:2015"],
454
+ ["track.kind", "10:2015"],
455
+ ["track.label", "10:2015"],
456
+ ["track.src", "10:2016"],
457
+ ["track.srclang", "10:2015"],
458
+ ["u", "10:2015"],
459
+ ["ul", "10:2015"],
460
+ ["var", "10:2015"],
461
+ ["video", "10:2015"],
462
+ ["video.autoplay", "10:2016"],
463
+ ["video.controls", "10:2015"],
464
+ ["video.controlslist", "0:"],
465
+ ["video.crossorigin", "10:2020"],
466
+ ["video.disablepictureinpicture", "0:"],
467
+ ["video.disableremoteplayback", "0:"],
468
+ ["video.height", "10:2015"],
469
+ ["video.loop", "10:2015"],
470
+ ["video.muted", "10:2015"],
471
+ ["video.poster", "10:2015"],
472
+ ["video.preload", "10:2015"],
473
+ ["video.src", "10:2015"],
474
+ ["video.width", "10:2015"],
475
+ ["wbr", "10:2015"],
476
+ ]);
477
+ const globalAttributes = new Map([
478
+ ["accesskey", "10:2015"],
479
+ ["autocapitalize", "0:"],
480
+ ["autocorrect", "0:"],
481
+ ["autofocus", "5:2023"],
482
+ ["contenteditable", "10:2015"],
483
+ ["contenteditable.plaintext-only", "5:2025"],
484
+ ["enterkeyhint", "10:2021"],
485
+ ["exportparts", "10:2020"],
486
+ ["inert", "5:2023"],
487
+ ["inputmode", "10:2021"],
488
+ ["is", "0:"],
489
+ ["lang", "10:2015"],
490
+ ["nonce", "10:2022"],
491
+ ["part", "10:2020"],
492
+ ["popover", "5:2024"],
493
+ ["popover.hint", "0:"],
494
+ ["slot", "10:2020"],
495
+ ["spellcheck", "10:2017"],
496
+ ["style", "10:2015"],
497
+ ["tabindex", "10:2015"],
498
+ ["title", "10:2015"],
499
+ ["translate", "5:2023"],
500
+ ["virtualkeyboardpolicy", "0:"],
501
+ ["writingsuggestions", "0:"],
502
+ ]);
503
+ module.exports = {
504
+ elements,
505
+ globalAttributes,
506
+ BASELINE_HIGH,
507
+ BASELINE_LOW,
508
+ BASELINE_FALSE,
509
+ };
package/lib/types/rule.ts CHANGED
@@ -80,8 +80,8 @@ interface ReportDescriptorOptionsBase {
80
80
  fix?: null | ReportFixFunction;
81
81
  }
82
82
 
83
- type SuggestionDescriptorMessage = { desc: string } | { messageId: string };
84
- type SuggestionReportDescriptor = SuggestionDescriptorMessage &
83
+ type SuggestionDescriptorMessage = { messageId: string };
84
+ export type SuggestionReportDescriptor = SuggestionDescriptorMessage &
85
85
  ReportDescriptorOptionsBase;
86
86
 
87
87
  interface ReportDescriptorOptions extends ReportDescriptorOptionsBase {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@html-eslint/eslint-plugin",
3
- "version": "0.36.0",
3
+ "version": "0.38.0",
4
4
  "description": "ESLint plugin for html",
5
5
  "author": "yeonjuan",
6
6
  "homepage": "https://github.com/yeonjuan/html-eslint#readme",
@@ -37,12 +37,12 @@
37
37
  "accessibility"
38
38
  ],
39
39
  "dependencies": {
40
- "@html-eslint/template-parser": "^0.36.0",
41
- "@html-eslint/template-syntax-parser": "^0.36.0"
40
+ "@html-eslint/template-parser": "^0.38.0",
41
+ "@html-eslint/template-syntax-parser": "^0.38.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@html-eslint/parser": "^0.36.0",
45
- "@html-eslint/types": "^0.36.0",
44
+ "@html-eslint/parser": "^0.38.0",
45
+ "@html-eslint/types": "^0.38.0",
46
46
  "@types/eslint": "^9.6.1",
47
47
  "@types/estree": "^0.0.47",
48
48
  "es-html-parser": "0.1.1",
@@ -50,5 +50,5 @@
50
50
  "espree": "^10.3.0",
51
51
  "typescript": "^5.7.2"
52
52
  },
53
- "gitHead": "58070e74098924f15410662fb00737fda9fbe7fe"
53
+ "gitHead": "a5d65ce4f4a59ac2d631486258584b59ffe27e26"
54
54
  }
@@ -16,5 +16,6 @@ export let rules: {
16
16
  "@html-eslint/no-obsolete-tags": string;
17
17
  "@html-eslint/require-closing-tags": string;
18
18
  "@html-eslint/no-duplicate-attrs": string;
19
+ "@html-eslint/use-baseline": string;
19
20
  };
20
21
  //# sourceMappingURL=recommended.d.ts.map
package/types/index.d.ts CHANGED
@@ -64,6 +64,7 @@ type AllRules = {
64
64
  "require-input-label": import("./types").RuleModule<[]>;
65
65
  "max-element-depth": import("./types").RuleModule<[import("./rules/max-element-depth").Option]>;
66
66
  "require-explicit-size": import("./types").RuleModule<[import("./rules/require-explicit-size").Option]>;
67
+ "use-baseline": import("./types").RuleModule<[import("./rules/use-baseline").Option]>;
67
68
  };
68
69
  type RecommendedConfig = {
69
70
  rules: {
@@ -84,6 +85,7 @@ type RecommendedConfig = {
84
85
  "@html-eslint/no-obsolete-tags": string;
85
86
  "@html-eslint/require-closing-tags": string;
86
87
  "@html-eslint/no-duplicate-attrs": string;
88
+ "@html-eslint/use-baseline": string;
87
89
  };
88
90
  };
89
91
  //# sourceMappingURL=index.d.ts.map
@@ -7,7 +7,6 @@ type RuleFixer = import("../types").RuleFixer;
7
7
  type MessageId = {
8
8
  CLOSE_STYLE_WRONG: "closeStyleWrong";
9
9
  NEWLINE_MISSING: "newlineMissing";
10
- NEWLINE_UNEXPECTED: "newlineUnexpected";
11
10
  };
12
11
  type Option = {
13
12
  closeStyle?: "sameline" | "newline" | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"attrs-newline.d.ts","sourceRoot":"","sources":["../../lib/rules/attrs-newline.js"],"names":[],"mappings":";;;wBA4BU,UAAU;;iBA3BN,OAAO,UAAU,EAAE,SAAS;;uBAG5B,iBAAiB;qBACjB,gBAAgB;wBAChB,mBAAmB;;;;;;kBAMnB,OAAO,UAAU,EAAE,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"attrs-newline.d.ts","sourceRoot":"","sources":["../../lib/rules/attrs-newline.js"],"names":[],"mappings":";;;wBA0BU,UAAU;;iBAzBN,OAAO,UAAU,EAAE,SAAS;;uBAG5B,iBAAiB;qBACjB,gBAAgB;;;;;;kBAMhB,OAAO,UAAU,EAAE,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  declare namespace _exports {
2
- export { AnyNode, Line, Tag, RuleListener, Context, TemplateText, Token, SourceCode, Range, SourceLocation, TemplateLiteral, OpenTemplate, CloseTemplate, AnyNodeOrLine, IndentType, MessageId, IndentOptionInfo, Option1, Option2, RuleModule };
2
+ export { AnyNode, Line, Tag, RuleListener, Context, TemplateText, Token, SourceCode, Range, SourceLocation, TemplateLiteral, OpenTemplate, CloseTemplate, ScriptTag, StyleTag, AnyNodeOrLine, IndentType, MessageId, IndentOptionInfo, Option1, Option2, RuleModule };
3
3
  }
4
4
  declare const _exports: RuleModule;
5
5
  export = _exports;
@@ -16,6 +16,8 @@ type SourceLocation = import("eslint").AST.SourceLocation;
16
16
  type TemplateLiteral = import("@html-eslint/types").TemplateLiteral;
17
17
  type OpenTemplate = import("@html-eslint/types").OpenTemplate;
18
18
  type CloseTemplate = import("@html-eslint/types").CloseTemplate;
19
+ type ScriptTag = import("@html-eslint/types").ScriptTag;
20
+ type StyleTag = import("@html-eslint/types").StyleTag;
19
21
  type AnyNodeOrLine = AnyNode | Line;
20
22
  type IndentType = {
21
23
  TAB: "tab";
@@ -1 +1 @@
1
- {"version":3,"file":"indent.d.ts","sourceRoot":"","sources":["../../../lib/rules/indent/indent.js"],"names":[],"mappings":";;;wBAgEU,UAAU;;eA/DN,OAAO,oBAAoB,EAAE,OAAO;YACpC,OAAO,aAAa,EAAE,IAAI;WAC1B,OAAO,oBAAoB,EAAE,GAAG;oBAChC,OAAO,aAAa,EAAE,YAAY;eAClC,OAAO,aAAa,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC;oBACpC,OAAO,oBAAoB,EAAE,YAAY;aACzC,OAAO,QAAQ,EAAE,GAAG,CAAC,KAAK;kBAC1B,OAAO,QAAQ,EAAE,UAAU;aAC3B,OAAO,QAAQ,EAAE,GAAG,CAAC,KAAK;sBAC1B,OAAO,QAAQ,EAAE,GAAG,CAAC,cAAc;uBACnC,OAAO,oBAAoB,EAAE,eAAe;oBAC5C,OAAO,oBAAoB,EAAE,YAAY;qBACzC,OAAO,oBAAoB,EAAE,aAAa;qBAE3C,OAAO,GAAG,IAAI;;SAEb,KAAK;WACL,OAAO;;;kBAEP,aAAa;;;gBAEb,UAAU,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC;gBACvC,MAAM;gBACN,MAAM;;eAEP,KAAK,GAAG,MAAM;;;;;kBAKb,OAAO,aAAa,EAAE,UAAU,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"indent.d.ts","sourceRoot":"","sources":["../../../lib/rules/indent/indent.js"],"names":[],"mappings":";;;wBAoEU,UAAU;;eAnEN,OAAO,oBAAoB,EAAE,OAAO;YACpC,OAAO,aAAa,EAAE,IAAI;WAC1B,OAAO,oBAAoB,EAAE,GAAG;oBAChC,OAAO,aAAa,EAAE,YAAY;eAClC,OAAO,aAAa,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC;oBACpC,OAAO,oBAAoB,EAAE,YAAY;aACzC,OAAO,QAAQ,EAAE,GAAG,CAAC,KAAK;kBAC1B,OAAO,QAAQ,EAAE,UAAU;aAC3B,OAAO,QAAQ,EAAE,GAAG,CAAC,KAAK;sBAC1B,OAAO,QAAQ,EAAE,GAAG,CAAC,cAAc;uBACnC,OAAO,oBAAoB,EAAE,eAAe;oBAC5C,OAAO,oBAAoB,EAAE,YAAY;qBACzC,OAAO,oBAAoB,EAAE,aAAa;iBAC1C,OAAO,oBAAoB,EAAE,SAAS;gBACtC,OAAO,oBAAoB,EAAE,QAAQ;qBAEtC,OAAO,GAAG,IAAI;;SAEb,KAAK;WACL,OAAO;;;kBAEP,aAAa;;;gBAEb,UAAU,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC;gBACvC,MAAM;gBACN,MAAM;;eAEP,KAAK,GAAG,MAAM;;;;;kBAKb,OAAO,aAAa,EAAE,UAAU,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC"}
@@ -46,6 +46,7 @@ declare const _exports: {
46
46
  "require-input-label": import("../types").RuleModule<[]>;
47
47
  "max-element-depth": import("../types").RuleModule<[maxElementDepth.Option]>;
48
48
  "require-explicit-size": import("../types").RuleModule<[requireExplicitSize.Option]>;
49
+ "use-baseline": import("../types").RuleModule<[useBaseLine.Option]>;
49
50
  };
50
51
  export = _exports;
51
52
  import requireImgAlt = require("./require-img-alt");
@@ -65,4 +66,5 @@ import requireOpenGraphProtocol = require("./require-open-graph-protocol");
65
66
  import sortAttrs = require("./sort-attrs");
66
67
  import maxElementDepth = require("./max-element-depth");
67
68
  import requireExplicitSize = require("./require-explicit-size");
69
+ import useBaseLine = require("./use-baseline");
68
70
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  declare namespace _exports {
2
- export { Tag, StyleTag, ScriptTag, RuleModule };
2
+ export { Tag, StyleTag, ScriptTag, RuleModule, Attribute, SuggestionReportDescriptor };
3
3
  }
4
4
  declare const _exports: RuleModule;
5
5
  export = _exports;
@@ -7,4 +7,6 @@ type Tag = import("@html-eslint/types").Tag;
7
7
  type StyleTag = import("@html-eslint/types").StyleTag;
8
8
  type ScriptTag = import("@html-eslint/types").ScriptTag;
9
9
  type RuleModule = import("../types").RuleModule<[]>;
10
+ type Attribute = import("@html-eslint/types").Attribute;
11
+ type SuggestionReportDescriptor = import("../types").SuggestionReportDescriptor;
10
12
  //# sourceMappingURL=no-duplicate-attrs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"no-duplicate-attrs.d.ts","sourceRoot":"","sources":["../../lib/rules/no-duplicate-attrs.js"],"names":[],"mappings":";;;wBAeU,UAAU;;WAdN,OAAO,oBAAoB,EAAE,GAAG;gBAChC,OAAO,oBAAoB,EAAE,QAAQ;iBACrC,OAAO,oBAAoB,EAAE,SAAS;kBACtC,OAAO,UAAU,EAAE,UAAU,CAAC,EAAE,CAAC"}
1
+ {"version":3,"file":"no-duplicate-attrs.d.ts","sourceRoot":"","sources":["../../lib/rules/no-duplicate-attrs.js"],"names":[],"mappings":";;;wBAkBU,UAAU;;WAjBN,OAAO,oBAAoB,EAAE,GAAG;gBAChC,OAAO,oBAAoB,EAAE,QAAQ;iBACrC,OAAO,oBAAoB,EAAE,SAAS;kBACtC,OAAO,UAAU,EAAE,UAAU,CAAC,EAAE,CAAC;iBACjC,OAAO,oBAAoB,EAAE,SAAS;kCACtC,OAAO,UAAU,EAAE,0BAA0B"}
@@ -1,7 +1,9 @@
1
1
  declare namespace _exports {
2
- export { RuleModule };
2
+ export { RuleModule, AttributeValue, SuggestionReportDescriptor };
3
3
  }
4
4
  declare const _exports: RuleModule;
5
5
  export = _exports;
6
6
  type RuleModule = import("../types").RuleModule<[]>;
7
+ type AttributeValue = import("@html-eslint/types").AttributeValue;
8
+ type SuggestionReportDescriptor = import("../types").SuggestionReportDescriptor;
7
9
  //# sourceMappingURL=require-button-type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"require-button-type.d.ts","sourceRoot":"","sources":["../../lib/rules/require-button-type.js"],"names":[],"mappings":";;;wBAgBU,UAAU;;kBAfN,OAAO,UAAU,EAAE,UAAU,CAAC,EAAE,CAAC"}
1
+ {"version":3,"file":"require-button-type.d.ts","sourceRoot":"","sources":["../../lib/rules/require-button-type.js"],"names":[],"mappings":";;;wBAqBU,UAAU;;kBApBN,OAAO,UAAU,EAAE,UAAU,CAAC,EAAE,CAAC;sBACjC,OAAO,oBAAoB,EAAE,cAAc;kCAC3C,OAAO,UAAU,EAAE,0BAA0B"}