Skip to content

Commit 4ce343d

Browse files
committed
Add update-resources script
1 parent 5a1bb86 commit 4ce343d

8 files changed

+209
-131
lines changed

Diff for: lib/utils/deprecated-html-elements.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@
66
"big",
77
"blink",
88
"center",
9-
"command",
10-
"content",
119
"dir",
12-
"element",
1310
"font",
1411
"frame",
1512
"frameset",
16-
"image",
1713
"isindex",
1814
"keygen",
1915
"listing",
@@ -24,8 +20,10 @@
2420
"nobr",
2521
"noembed",
2622
"noframes",
23+
"param",
2724
"plaintext",
28-
"shadow",
25+
"rb",
26+
"rtc",
2927
"spacer",
3028
"strike",
3129
"tt",

Diff for: lib/utils/html-elements.json

+78-84
Original file line numberDiff line numberDiff line change
@@ -1,120 +1,114 @@
11
[
2-
"html",
3-
"body",
4-
"base",
5-
"head",
6-
"link",
7-
"meta",
8-
"style",
9-
"title",
2+
"a",
3+
"abbr",
104
"address",
5+
"area",
116
"article",
127
"aside",
8+
"audio",
9+
"b",
10+
"base",
11+
"bdi",
12+
"bdo",
13+
"blockquote",
14+
"body",
15+
"br",
16+
"button",
17+
"canvas",
18+
"caption",
19+
"cite",
20+
"code",
21+
"col",
22+
"colgroup",
23+
"data",
24+
"datalist",
25+
"dd",
26+
"del",
27+
"details",
28+
"dfn",
29+
"dialog",
30+
"div",
31+
"dl",
32+
"dt",
33+
"em",
34+
"embed",
35+
"fieldset",
36+
"figcaption",
37+
"figure",
1338
"footer",
14-
"header",
39+
"form",
1540
"h1",
1641
"h2",
1742
"h3",
1843
"h4",
1944
"h5",
2045
"h6",
46+
"head",
47+
"header",
2148
"hgroup",
22-
"nav",
23-
"section",
24-
"div",
25-
"dd",
26-
"dl",
27-
"dt",
28-
"figcaption",
29-
"figure",
3049
"hr",
50+
"html",
51+
"i",
52+
"iframe",
3153
"img",
54+
"input",
55+
"ins",
56+
"kbd",
57+
"label",
58+
"legend",
3259
"li",
60+
"link",
3361
"main",
62+
"map",
63+
"mark",
64+
"menu",
65+
"meta",
66+
"meter",
67+
"nav",
68+
"noscript",
69+
"object",
3470
"ol",
71+
"optgroup",
72+
"option",
73+
"output",
3574
"p",
75+
"picture",
3676
"pre",
37-
"ul",
38-
"a",
39-
"b",
40-
"abbr",
41-
"bdi",
42-
"bdo",
43-
"br",
44-
"cite",
45-
"code",
46-
"data",
47-
"dfn",
48-
"em",
49-
"i",
50-
"kbd",
51-
"mark",
77+
"progress",
5278
"q",
5379
"rp",
5480
"rt",
55-
"rtc",
5681
"ruby",
5782
"s",
5883
"samp",
84+
"script",
85+
"search",
86+
"section",
87+
"select",
88+
"slot",
5989
"small",
90+
"source",
6091
"span",
6192
"strong",
93+
"style",
6294
"sub",
95+
"summary",
6396
"sup",
64-
"time",
65-
"u",
66-
"var",
67-
"wbr",
68-
"area",
69-
"audio",
70-
"map",
71-
"track",
72-
"video",
73-
"embed",
74-
"object",
75-
"param",
76-
"source",
77-
"canvas",
78-
"script",
79-
"noscript",
80-
"del",
81-
"ins",
82-
"caption",
83-
"col",
84-
"colgroup",
8597
"table",
86-
"thead",
8798
"tbody",
88-
"tfoot",
8999
"td",
100+
"template",
101+
"textarea",
102+
"tfoot",
90103
"th",
104+
"thead",
105+
"time",
106+
"title",
91107
"tr",
92-
"button",
93-
"datalist",
94-
"fieldset",
95-
"form",
96-
"input",
97-
"label",
98-
"legend",
99-
"meter",
100-
"optgroup",
101-
"option",
102-
"output",
103-
"progress",
104-
"select",
105-
"textarea",
106-
"details",
107-
"dialog",
108-
"menu",
109-
"menuitem",
110-
"summary",
111-
"content",
112-
"element",
113-
"shadow",
114-
"template",
115-
"slot",
116-
"blockquote",
117-
"iframe",
118-
"noframes",
119-
"picture"
108+
"track",
109+
"u",
110+
"ul",
111+
"var",
112+
"video",
113+
"wbr"
120114
]

Diff for: lib/utils/svg-elements.json

-6
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
"animate",
44
"animateMotion",
55
"animateTransform",
6-
"audio",
7-
"canvas",
86
"circle",
97
"clipPath",
108
"defs",
119
"desc",
12-
"discard",
1310
"ellipse",
1411
"feBlend",
1512
"feColorMatrix",
@@ -39,7 +36,6 @@
3936
"filter",
4037
"foreignObject",
4138
"g",
42-
"iframe",
4339
"image",
4440
"line",
4541
"linearGradient",
@@ -64,8 +60,6 @@
6460
"textPath",
6561
"title",
6662
"tspan",
67-
"unknown",
6863
"use",
69-
"video",
7064
"view"
7165
]

Diff for: tests/lib/rules/no-reserved-component-names.js

-4
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,6 @@ const invalidElements = [
278278
'Defs',
279279
'desc',
280280
'Desc',
281-
'discard',
282-
'Discard',
283281
'ellipse',
284282
'Ellipse',
285283
'feBlend',
@@ -351,8 +349,6 @@ const invalidElements = [
351349
'textPath',
352350
'tspan',
353351
'Tspan',
354-
'unknown',
355-
'Unknown',
356352
'use',
357353
'Use',
358354
'view',

Diff for: tools/lib/http.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
httpGet
3+
}
4+
function httpGet(url) {
5+
return fetch(url).then((res) => res.text())
6+
}

0 commit comments

Comments
 (0)