@prettier/html-tags 1.1.0 → 2.1.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/html-tags.json ADDED
@@ -0,0 +1,152 @@
1
+ [
2
+ "a",
3
+ "abbr",
4
+ "acronym",
5
+ "address",
6
+ "applet",
7
+ "area",
8
+ "article",
9
+ "aside",
10
+ "audio",
11
+ "b",
12
+ "base",
13
+ "basefont",
14
+ "bdi",
15
+ "bdo",
16
+ "bgsound",
17
+ "big",
18
+ "blink",
19
+ "blockquote",
20
+ "body",
21
+ "br",
22
+ "button",
23
+ "canvas",
24
+ "caption",
25
+ "center",
26
+ "cite",
27
+ "code",
28
+ "col",
29
+ "colgroup",
30
+ "command",
31
+ "content",
32
+ "data",
33
+ "datalist",
34
+ "dd",
35
+ "del",
36
+ "details",
37
+ "dfn",
38
+ "dialog",
39
+ "dir",
40
+ "div",
41
+ "dl",
42
+ "dt",
43
+ "em",
44
+ "embed",
45
+ "fencedframe",
46
+ "fieldset",
47
+ "figcaption",
48
+ "figure",
49
+ "font",
50
+ "footer",
51
+ "form",
52
+ "frame",
53
+ "frameset",
54
+ "h1",
55
+ "h2",
56
+ "h3",
57
+ "h4",
58
+ "h5",
59
+ "h6",
60
+ "head",
61
+ "header",
62
+ "hgroup",
63
+ "hr",
64
+ "html",
65
+ "i",
66
+ "iframe",
67
+ "image",
68
+ "img",
69
+ "input",
70
+ "ins",
71
+ "isindex",
72
+ "kbd",
73
+ "keygen",
74
+ "label",
75
+ "legend",
76
+ "li",
77
+ "link",
78
+ "listing",
79
+ "main",
80
+ "map",
81
+ "mark",
82
+ "marquee",
83
+ "math",
84
+ "menu",
85
+ "menuitem",
86
+ "meta",
87
+ "meter",
88
+ "multicol",
89
+ "nav",
90
+ "nextid",
91
+ "nobr",
92
+ "noembed",
93
+ "noframes",
94
+ "noscript",
95
+ "object",
96
+ "ol",
97
+ "optgroup",
98
+ "option",
99
+ "output",
100
+ "p",
101
+ "param",
102
+ "picture",
103
+ "plaintext",
104
+ "pre",
105
+ "progress",
106
+ "q",
107
+ "rb",
108
+ "rbc",
109
+ "rp",
110
+ "rt",
111
+ "rtc",
112
+ "ruby",
113
+ "s",
114
+ "samp",
115
+ "script",
116
+ "search",
117
+ "section",
118
+ "select",
119
+ "selectedcontent",
120
+ "shadow",
121
+ "slot",
122
+ "small",
123
+ "source",
124
+ "spacer",
125
+ "span",
126
+ "strike",
127
+ "strong",
128
+ "style",
129
+ "sub",
130
+ "summary",
131
+ "sup",
132
+ "svg",
133
+ "table",
134
+ "tbody",
135
+ "td",
136
+ "template",
137
+ "textarea",
138
+ "tfoot",
139
+ "th",
140
+ "thead",
141
+ "time",
142
+ "title",
143
+ "tr",
144
+ "track",
145
+ "tt",
146
+ "u",
147
+ "ul",
148
+ "var",
149
+ "video",
150
+ "wbr",
151
+ "xmp"
152
+ ]
@@ -0,0 +1,22 @@
1
+ [
2
+ "area",
3
+ "base",
4
+ "basefont",
5
+ "bgsound",
6
+ "br",
7
+ "col",
8
+ "command",
9
+ "embed",
10
+ "frame",
11
+ "hr",
12
+ "image",
13
+ "img",
14
+ "input",
15
+ "keygen",
16
+ "link",
17
+ "meta",
18
+ "param",
19
+ "source",
20
+ "track",
21
+ "wbr"
22
+ ]
package/index.d.ts CHANGED
@@ -1,165 +1,197 @@
1
- type HtmlTags =
2
- | "a"
3
- | "abbr"
4
- | "acronym"
5
- | "address"
6
- | "applet"
7
- | "area"
8
- | "article"
9
- | "aside"
10
- | "audio"
11
- | "b"
12
- | "base"
13
- | "basefont"
14
- | "bdi"
15
- | "bdo"
16
- | "bgsound"
17
- | "big"
18
- | "blink"
19
- | "blockquote"
20
- | "body"
21
- | "br"
22
- | "button"
23
- | "canvas"
24
- | "caption"
25
- | "center"
26
- | "cite"
27
- | "code"
28
- | "col"
29
- | "colgroup"
30
- | "command"
31
- | "content"
32
- | "data"
33
- | "datalist"
34
- | "dd"
35
- | "del"
36
- | "details"
37
- | "dfn"
38
- | "dialog"
39
- | "dir"
40
- | "div"
41
- | "dl"
42
- | "dt"
43
- | "em"
44
- | "embed"
45
- | "fieldset"
46
- | "figcaption"
47
- | "figure"
48
- | "font"
49
- | "footer"
50
- | "form"
51
- | "frame"
52
- | "frameset"
53
- | "h1"
54
- | "h2"
55
- | "h3"
56
- | "h4"
57
- | "h5"
58
- | "h6"
59
- | "head"
60
- | "header"
61
- | "hgroup"
62
- | "hr"
63
- | "html"
64
- | "i"
65
- | "iframe"
66
- | "image"
67
- | "img"
68
- | "input"
69
- | "ins"
70
- | "isindex"
71
- | "kbd"
72
- | "keygen"
73
- | "label"
74
- | "legend"
75
- | "li"
76
- | "link"
77
- | "listing"
78
- | "main"
79
- | "map"
80
- | "mark"
81
- | "marquee"
82
- | "math"
83
- | "menu"
84
- | "menuitem"
85
- | "meta"
86
- | "meter"
87
- | "multicol"
88
- | "nav"
89
- | "nextid"
90
- | "nobr"
91
- | "noembed"
92
- | "noframes"
93
- | "noscript"
94
- | "object"
95
- | "ol"
96
- | "optgroup"
97
- | "option"
98
- | "output"
99
- | "p"
100
- | "param"
101
- | "picture"
102
- | "plaintext"
103
- | "pre"
104
- | "progress"
105
- | "q"
106
- | "rb"
107
- | "rbc"
108
- | "rp"
109
- | "rt"
110
- | "rtc"
111
- | "ruby"
112
- | "s"
113
- | "samp"
114
- | "script"
115
- | "search"
116
- | "section"
117
- | "select"
118
- | "selectedcontent"
119
- | "shadow"
120
- | "slot"
121
- | "small"
122
- | "source"
123
- | "spacer"
124
- | "span"
125
- | "strike"
126
- | "strong"
127
- | "style"
128
- | "sub"
129
- | "summary"
130
- | "sup"
131
- | "svg"
132
- | "table"
133
- | "tbody"
134
- | "td"
135
- | "template"
136
- | "textarea"
137
- | "tfoot"
138
- | "th"
139
- | "thead"
140
- | "time"
141
- | "title"
142
- | "tr"
143
- | "track"
144
- | "tt"
145
- | "u"
146
- | "ul"
147
- | "var"
148
- | "video"
149
- | "wbr"
150
- | "xmp";
151
-
152
1
  /**
153
2
  List of HTML tags.
154
3
 
155
4
  @example
156
- ```
157
- import htmlTags from "@prettier/html-tags";
5
+ ```js
6
+ import {htmlTags} from '@prettier/html-tags'
158
7
 
159
- console.log(htmlTags);
160
- //=> ['a', 'abbr', 'acronym', ]
8
+ console.log(htmlTags)
9
+ //=> ['a', 'abbr', 'acronym', ... 147 more items]
161
10
  ```
162
11
  */
163
- declare const htmlTags: readonly HtmlTags[];
12
+ export const htmlTags: readonly [
13
+ 'a',
14
+ 'abbr',
15
+ 'acronym',
16
+ 'address',
17
+ 'applet',
18
+ 'area',
19
+ 'article',
20
+ 'aside',
21
+ 'audio',
22
+ 'b',
23
+ 'base',
24
+ 'basefont',
25
+ 'bdi',
26
+ 'bdo',
27
+ 'bgsound',
28
+ 'big',
29
+ 'blink',
30
+ 'blockquote',
31
+ 'body',
32
+ 'br',
33
+ 'button',
34
+ 'canvas',
35
+ 'caption',
36
+ 'center',
37
+ 'cite',
38
+ 'code',
39
+ 'col',
40
+ 'colgroup',
41
+ 'command',
42
+ 'content',
43
+ 'data',
44
+ 'datalist',
45
+ 'dd',
46
+ 'del',
47
+ 'details',
48
+ 'dfn',
49
+ 'dialog',
50
+ 'dir',
51
+ 'div',
52
+ 'dl',
53
+ 'dt',
54
+ 'em',
55
+ 'embed',
56
+ 'fencedframe',
57
+ 'fieldset',
58
+ 'figcaption',
59
+ 'figure',
60
+ 'font',
61
+ 'footer',
62
+ 'form',
63
+ 'frame',
64
+ 'frameset',
65
+ 'h1',
66
+ 'h2',
67
+ 'h3',
68
+ 'h4',
69
+ 'h5',
70
+ 'h6',
71
+ 'head',
72
+ 'header',
73
+ 'hgroup',
74
+ 'hr',
75
+ 'html',
76
+ 'i',
77
+ 'iframe',
78
+ 'image',
79
+ 'img',
80
+ 'input',
81
+ 'ins',
82
+ 'isindex',
83
+ 'kbd',
84
+ 'keygen',
85
+ 'label',
86
+ 'legend',
87
+ 'li',
88
+ 'link',
89
+ 'listing',
90
+ 'main',
91
+ 'map',
92
+ 'mark',
93
+ 'marquee',
94
+ 'math',
95
+ 'menu',
96
+ 'menuitem',
97
+ 'meta',
98
+ 'meter',
99
+ 'multicol',
100
+ 'nav',
101
+ 'nextid',
102
+ 'nobr',
103
+ 'noembed',
104
+ 'noframes',
105
+ 'noscript',
106
+ 'object',
107
+ 'ol',
108
+ 'optgroup',
109
+ 'option',
110
+ 'output',
111
+ 'p',
112
+ 'param',
113
+ 'picture',
114
+ 'plaintext',
115
+ 'pre',
116
+ 'progress',
117
+ 'q',
118
+ 'rb',
119
+ 'rbc',
120
+ 'rp',
121
+ 'rt',
122
+ 'rtc',
123
+ 'ruby',
124
+ 's',
125
+ 'samp',
126
+ 'script',
127
+ 'search',
128
+ 'section',
129
+ 'select',
130
+ 'selectedcontent',
131
+ 'shadow',
132
+ 'slot',
133
+ 'small',
134
+ 'source',
135
+ 'spacer',
136
+ 'span',
137
+ 'strike',
138
+ 'strong',
139
+ 'style',
140
+ 'sub',
141
+ 'summary',
142
+ 'sup',
143
+ 'svg',
144
+ 'table',
145
+ 'tbody',
146
+ 'td',
147
+ 'template',
148
+ 'textarea',
149
+ 'tfoot',
150
+ 'th',
151
+ 'thead',
152
+ 'time',
153
+ 'title',
154
+ 'tr',
155
+ 'track',
156
+ 'tt',
157
+ 'u',
158
+ 'ul',
159
+ 'var',
160
+ 'video',
161
+ 'wbr',
162
+ 'xmp',
163
+ ]
164
+
165
+ /**
166
+ List of HTML void tags.
164
167
 
165
- export default htmlTags;
168
+ @example
169
+ ```js
170
+ import {htmlVoidTags} from '@prettier/html-tags'
171
+
172
+ console.log(htmlVoidTags)
173
+ //=> ['area', 'base', 'basefont', ... 17 more items]
174
+ ```
175
+ */
176
+ export const htmlVoidTags: readonly [
177
+ 'area',
178
+ 'base',
179
+ 'basefont',
180
+ 'bgsound',
181
+ 'br',
182
+ 'col',
183
+ 'command',
184
+ 'embed',
185
+ 'frame',
186
+ 'hr',
187
+ 'image',
188
+ 'img',
189
+ 'input',
190
+ 'keygen',
191
+ 'link',
192
+ 'meta',
193
+ 'param',
194
+ 'source',
195
+ 'track',
196
+ 'wbr',
197
+ ]
package/index.js CHANGED
@@ -1 +1,2 @@
1
- export { default } from "./index.json" with { type: "json" };
1
+ export {default as htmlTags} from './html-tags.json' with {type: 'json'}
2
+ export {default as htmlVoidTags} from './html-void-tags.json' with {type: 'json'}
package/index.json CHANGED
@@ -1,151 +1,176 @@
1
- [
2
- "a",
3
- "abbr",
4
- "acronym",
5
- "address",
6
- "applet",
7
- "area",
8
- "article",
9
- "aside",
10
- "audio",
11
- "b",
12
- "base",
13
- "basefont",
14
- "bdi",
15
- "bdo",
16
- "bgsound",
17
- "big",
18
- "blink",
19
- "blockquote",
20
- "body",
21
- "br",
22
- "button",
23
- "canvas",
24
- "caption",
25
- "center",
26
- "cite",
27
- "code",
28
- "col",
29
- "colgroup",
30
- "command",
31
- "content",
32
- "data",
33
- "datalist",
34
- "dd",
35
- "del",
36
- "details",
37
- "dfn",
38
- "dialog",
39
- "dir",
40
- "div",
41
- "dl",
42
- "dt",
43
- "em",
44
- "embed",
45
- "fieldset",
46
- "figcaption",
47
- "figure",
48
- "font",
49
- "footer",
50
- "form",
51
- "frame",
52
- "frameset",
53
- "h1",
54
- "h2",
55
- "h3",
56
- "h4",
57
- "h5",
58
- "h6",
59
- "head",
60
- "header",
61
- "hgroup",
62
- "hr",
63
- "html",
64
- "i",
65
- "iframe",
66
- "image",
67
- "img",
68
- "input",
69
- "ins",
70
- "isindex",
71
- "kbd",
72
- "keygen",
73
- "label",
74
- "legend",
75
- "li",
76
- "link",
77
- "listing",
78
- "main",
79
- "map",
80
- "mark",
81
- "marquee",
82
- "math",
83
- "menu",
84
- "menuitem",
85
- "meta",
86
- "meter",
87
- "multicol",
88
- "nav",
89
- "nextid",
90
- "nobr",
91
- "noembed",
92
- "noframes",
93
- "noscript",
94
- "object",
95
- "ol",
96
- "optgroup",
97
- "option",
98
- "output",
99
- "p",
100
- "param",
101
- "picture",
102
- "plaintext",
103
- "pre",
104
- "progress",
105
- "q",
106
- "rb",
107
- "rbc",
108
- "rp",
109
- "rt",
110
- "rtc",
111
- "ruby",
112
- "s",
113
- "samp",
114
- "script",
115
- "search",
116
- "section",
117
- "select",
118
- "selectedcontent",
119
- "shadow",
120
- "slot",
121
- "small",
122
- "source",
123
- "spacer",
124
- "span",
125
- "strike",
126
- "strong",
127
- "style",
128
- "sub",
129
- "summary",
130
- "sup",
131
- "svg",
132
- "table",
133
- "tbody",
134
- "td",
135
- "template",
136
- "textarea",
137
- "tfoot",
138
- "th",
139
- "thead",
140
- "time",
141
- "title",
142
- "tr",
143
- "track",
144
- "tt",
145
- "u",
146
- "ul",
147
- "var",
148
- "video",
149
- "wbr",
150
- "xmp"
151
- ]
1
+ {
2
+ "htmlTags": [
3
+ "a",
4
+ "abbr",
5
+ "acronym",
6
+ "address",
7
+ "applet",
8
+ "area",
9
+ "article",
10
+ "aside",
11
+ "audio",
12
+ "b",
13
+ "base",
14
+ "basefont",
15
+ "bdi",
16
+ "bdo",
17
+ "bgsound",
18
+ "big",
19
+ "blink",
20
+ "blockquote",
21
+ "body",
22
+ "br",
23
+ "button",
24
+ "canvas",
25
+ "caption",
26
+ "center",
27
+ "cite",
28
+ "code",
29
+ "col",
30
+ "colgroup",
31
+ "command",
32
+ "content",
33
+ "data",
34
+ "datalist",
35
+ "dd",
36
+ "del",
37
+ "details",
38
+ "dfn",
39
+ "dialog",
40
+ "dir",
41
+ "div",
42
+ "dl",
43
+ "dt",
44
+ "em",
45
+ "embed",
46
+ "fencedframe",
47
+ "fieldset",
48
+ "figcaption",
49
+ "figure",
50
+ "font",
51
+ "footer",
52
+ "form",
53
+ "frame",
54
+ "frameset",
55
+ "h1",
56
+ "h2",
57
+ "h3",
58
+ "h4",
59
+ "h5",
60
+ "h6",
61
+ "head",
62
+ "header",
63
+ "hgroup",
64
+ "hr",
65
+ "html",
66
+ "i",
67
+ "iframe",
68
+ "image",
69
+ "img",
70
+ "input",
71
+ "ins",
72
+ "isindex",
73
+ "kbd",
74
+ "keygen",
75
+ "label",
76
+ "legend",
77
+ "li",
78
+ "link",
79
+ "listing",
80
+ "main",
81
+ "map",
82
+ "mark",
83
+ "marquee",
84
+ "math",
85
+ "menu",
86
+ "menuitem",
87
+ "meta",
88
+ "meter",
89
+ "multicol",
90
+ "nav",
91
+ "nextid",
92
+ "nobr",
93
+ "noembed",
94
+ "noframes",
95
+ "noscript",
96
+ "object",
97
+ "ol",
98
+ "optgroup",
99
+ "option",
100
+ "output",
101
+ "p",
102
+ "param",
103
+ "picture",
104
+ "plaintext",
105
+ "pre",
106
+ "progress",
107
+ "q",
108
+ "rb",
109
+ "rbc",
110
+ "rp",
111
+ "rt",
112
+ "rtc",
113
+ "ruby",
114
+ "s",
115
+ "samp",
116
+ "script",
117
+ "search",
118
+ "section",
119
+ "select",
120
+ "selectedcontent",
121
+ "shadow",
122
+ "slot",
123
+ "small",
124
+ "source",
125
+ "spacer",
126
+ "span",
127
+ "strike",
128
+ "strong",
129
+ "style",
130
+ "sub",
131
+ "summary",
132
+ "sup",
133
+ "svg",
134
+ "table",
135
+ "tbody",
136
+ "td",
137
+ "template",
138
+ "textarea",
139
+ "tfoot",
140
+ "th",
141
+ "thead",
142
+ "time",
143
+ "title",
144
+ "tr",
145
+ "track",
146
+ "tt",
147
+ "u",
148
+ "ul",
149
+ "var",
150
+ "video",
151
+ "wbr",
152
+ "xmp"
153
+ ],
154
+ "htmlVoidTags": [
155
+ "area",
156
+ "base",
157
+ "basefont",
158
+ "bgsound",
159
+ "br",
160
+ "col",
161
+ "command",
162
+ "embed",
163
+ "frame",
164
+ "hr",
165
+ "image",
166
+ "img",
167
+ "input",
168
+ "keygen",
169
+ "link",
170
+ "meta",
171
+ "param",
172
+ "source",
173
+ "track",
174
+ "wbr"
175
+ ]
176
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prettier/html-tags",
3
- "version": "1.1.0",
4
- "description": "List of HTML tags",
3
+ "version": "2.1.0",
4
+ "description": "List of HTML tags.",
5
5
  "license": "MIT",
6
6
  "repository": "prettier/html-tags",
7
7
  "author": {
@@ -11,23 +11,21 @@
11
11
  },
12
12
  "type": "module",
13
13
  "exports": {
14
- "types": "./index.d.ts",
15
- "require": "./index.json",
16
- "default": "./index.js"
14
+ ".": {
15
+ "types": "./index.d.ts",
16
+ "require": "./index.json",
17
+ "default": "./index.js"
18
+ },
19
+ "./html-tags": "./html-tags.json",
20
+ "./html-void-tags": "./html-void-tags.json"
17
21
  },
18
22
  "sideEffects": false,
19
- "scripts": {
20
- "fix": "prettier . --write",
21
- "lint": "prettier . --check",
22
- "build": "node scripts/build.js",
23
- "test": "node --test test.js",
24
- "test-coverage": "c8 yarn test",
25
- "release": "release-it"
26
- },
27
23
  "files": [
28
24
  "index.js",
29
25
  "index.json",
30
- "index.d.ts"
26
+ "index.d.ts",
27
+ "html-tags.json",
28
+ "html-void-tags.json"
31
29
  ],
32
30
  "keywords": [
33
31
  "html",
@@ -38,21 +36,8 @@
38
36
  "whatwg",
39
37
  "w3c"
40
38
  ],
41
- "devDependencies": {
42
- "c8": "^10.1.3",
43
- "cheerio": "1.0.0",
44
- "outdent": "0.8.0",
45
- "prettier": "3.5.3",
46
- "release-it": "^19.0.1"
47
- },
48
39
  "publishConfig": {
49
40
  "access": "public",
50
41
  "registry": "https://registry.npmjs.org/"
51
- },
52
- "c8": {
53
- "reporter": [
54
- "lcov",
55
- "text"
56
- ]
57
42
  }
58
43
  }
package/readme.md CHANGED
@@ -21,9 +21,16 @@ yarn add @prettier/html-tags
21
21
 
22
22
  ## Usage
23
23
 
24
+ <!-- Usage start -->
25
+
24
26
  ```js
25
- import htmlTags from '@prettier/html-tags;
27
+ import {htmlTags, htmlVoidTags} from '@prettier/html-tags'
28
+
29
+ console.log(htmlTags)
30
+ //=> ['a', 'abbr', 'acronym', ... 147 more items]
26
31
 
27
- console.log(htmlTags);
28
- //=> ['a', 'abbr', 'acronym', ]
32
+ console.log(htmlVoidTags)
33
+ //=> ['area', 'base', 'basefont', ... 17 more items]
29
34
  ```
35
+
36
+ <!-- Usage end -->