Skip to content

Commit 82e4750

Browse files
author
Jannis Hell
committed
chore: sort HTML_ELEMENTS and messages
1 parent 5f49f51 commit 82e4750

File tree

1 file changed

+112
-112
lines changed

1 file changed

+112
-112
lines changed

lib/rules/no-invalid-html-attribute.js

Lines changed: 112 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -70,147 +70,147 @@ const VALID_PAIR_VALUES = new Map([
7070
* @type {Set<string>}
7171
*/
7272
const HTML_ELEMENTS = new Set([
73-
'html',
74-
'base',
75-
'head',
76-
'link',
77-
'meta',
78-
'style',
79-
'title',
80-
'body',
73+
'a',
74+
'abbr',
75+
'acronym',
8176
'address',
77+
'applet',
78+
'area',
8279
'article',
8380
'aside',
84-
'footer',
85-
'header',
86-
'h1',
87-
'h2',
88-
'h3',
89-
'h4',
90-
'h5',
91-
'h6',
92-
'main',
93-
'nav',
94-
'section',
95-
'blockquote',
96-
'dd',
97-
'div',
98-
'dl',
99-
'dt',
100-
'figcaption',
101-
'figure',
102-
'hr',
103-
'li',
104-
'ol',
105-
'p',
106-
'pre',
107-
'ul',
108-
'a',
109-
'abbr',
81+
'audio',
11082
'b',
83+
'base',
84+
'basefont',
11185
'bdi',
11286
'bdo',
87+
'bgsound',
88+
'big',
89+
'blink',
90+
'blockquote',
91+
'body',
11392
'br',
93+
'button',
94+
'canvas',
95+
'caption',
96+
'center',
11497
'cite',
11598
'code',
99+
'col',
100+
'colgroup',
101+
'content',
116102
'data',
103+
'datalist',
104+
'dd',
105+
'del',
106+
'details',
117107
'dfn',
108+
'dialog',
109+
'dir',
110+
'div',
111+
'dl',
112+
'dt',
118113
'em',
114+
'embed',
115+
'fieldset',
116+
'figcaption',
117+
'figure',
118+
'font',
119+
'footer',
120+
'form',
121+
'frame',
122+
'frameset',
123+
'h1',
124+
'h2',
125+
'h3',
126+
'h4',
127+
'h5',
128+
'h6',
129+
'head',
130+
'header',
131+
'hgroup',
132+
'hr',
133+
'html',
119134
'i',
135+
'iframe',
136+
'image',
137+
'img',
138+
'input',
139+
'ins',
120140
'kbd',
141+
'keygen',
142+
'label',
143+
'legend',
144+
'li',
145+
'link',
146+
'main',
147+
'map',
121148
'mark',
149+
'marquee',
150+
'math',
151+
'menu',
152+
'menuitem',
153+
'meta',
154+
'meter',
155+
'nav',
156+
'nobr',
157+
'noembed',
158+
'noframes',
159+
'noscript',
160+
'object',
161+
'ol',
162+
'optgroup',
163+
'option',
164+
'output',
165+
'p',
166+
'param',
167+
'picture',
168+
'plaintext',
169+
'portal',
170+
'pre',
171+
'progress',
122172
'q',
173+
'rb',
123174
'rp',
124175
'rt',
176+
'rtc',
125177
'ruby',
126178
's',
127179
'samp',
180+
'script',
181+
'section',
182+
'select',
183+
'shadow',
184+
'slot',
128185
'small',
186+
'source',
187+
'spacer',
129188
'span',
189+
'strike',
130190
'strong',
191+
'style',
131192
'sub',
193+
'summary',
132194
'sup',
133-
'time',
134-
'u',
135-
'var',
136-
'wbr',
137-
'area',
138-
'audio',
139-
'img',
140-
'map',
141-
'track',
142-
'video',
143-
'embed',
144-
'iframe',
145-
'object',
146-
'param',
147-
'picture',
148-
'portal',
149-
'source',
150195
'svg',
151-
'math',
152-
'canvas',
153-
'noscript',
154-
'script',
155-
'del',
156-
'ins',
157-
'caption',
158-
'col',
159-
'colgroup',
160196
'table',
161197
'tbody',
162198
'td',
199+
'template',
200+
'textarea',
163201
'tfoot',
164202
'th',
165203
'thead',
204+
'time',
205+
'title',
166206
'tr',
167-
'button',
168-
'datalist',
169-
'fieldset',
170-
'form',
171-
'input',
172-
'label',
173-
'legend',
174-
'meter',
175-
'optgroup',
176-
'option',
177-
'output',
178-
'progress',
179-
'select',
180-
'textarea',
181-
'details',
182-
'dialog',
183-
'menu',
184-
'summary',
185-
'slot',
186-
'template',
187-
'acronym',
188-
'applet',
189-
'basefont',
190-
'bgsound',
191-
'big',
192-
'blink',
193-
'center',
194-
'content',
195-
'dir',
196-
'font',
197-
'frame',
198-
'frameset',
199-
'hgroup',
200-
'image',
201-
'keygen',
202-
'marquee',
203-
'menuitem',
204-
'nobr',
205-
'noembed',
206-
'noframes',
207-
'plaintext',
208-
'rb',
209-
'rtc',
210-
'shadow',
211-
'spacer',
212-
'strike',
207+
'track',
213208
'tt',
209+
'u',
210+
'ul',
211+
'var',
212+
'video',
213+
'wbr',
214214
'xmp',
215215
]);
216216

@@ -222,16 +222,16 @@ const COMPONENT_ATTRIBUTE_MAP = new Map();
222222
COMPONENT_ATTRIBUTE_MAP.set('rel', new Set(['link', 'a', 'area', 'form']));
223223

224224
const messages = {
225-
onlyStrings: '“{{attributeName}}” attribute only supports strings.',
226-
noEmpty: 'An empty “{{attributeName}}” attribute is meaningless.',
225+
emptyIsMeaningless: 'An empty “{{attributeName}}” attribute is meaningless.',
227226
neverValid: '“{{reportingValue}}” is never a valid “{{attributeName}}” attribute value.',
228-
notValidFor: '“{{reportingValue}}” is not a valid “{{attributeName}}” attribute value for <{{elementName}}>.',
229-
spaceDelimited: '”{{attributeName}}“ attribute values should be space delimited.',
227+
noEmpty: 'An empty “{{attributeName}}” attribute is meaningless.',
230228
noMethod: 'The ”{{attributeName}}“ attribute cannot be a method.',
231-
onlyMeaningfulFor: 'The ”{{attributeName}}“ attribute only has meaning on the tags: {{tagNames}}',
232-
emptyIsMeaningless: 'An empty “{{attributeName}}” attribute is meaningless.',
233229
notAlone: '“{{reportingValue}}” must be directly followed by “{{missingValue}}”.',
234230
notPaired: '“{{reportingValue}}” can not be directly followed by “{{secondValue}}” without “{{missingValue}}”.',
231+
notValidFor: '“{{reportingValue}}” is not a valid “{{attributeName}}” attribute value for <{{elementName}}>.',
232+
onlyMeaningfulFor: 'The ”{{attributeName}}“ attribute only has meaning on the tags: {{tagNames}}',
233+
onlyStrings: '“{{attributeName}}” attribute only supports strings.',
234+
spaceDelimited: '”{{attributeName}}“ attribute values should be space delimited.',
235235
};
236236

237237
function splitIntoRangedParts(node, regex) {

0 commit comments

Comments
 (0)