-
Notifications
You must be signed in to change notification settings - Fork 4
/
.htmllintrc
32 lines (30 loc) · 1.94 KB
/
.htmllintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
// Stolley House Config, v. 1.1.2, 20180910
// names of npm modules to load into htmllint
"plugins": [],
// Configuration options:
"attr-bans": ["align", "background", "bgcolor", "border", "frameborder", "longdesc", "marginwidth", "marginheight", "scrolling", "style", "target", "width", "height", "onload", "onclick"], // ban deprecated/obsolete attributes
"attr-name-style": "dash", // allow hyphens/dashes in attributes, e.g., for data- attributes
"attr-no-dup": true, // no duplicate attributes
"attr-validate": true, // well-formed attribute style
"class-no-dup": true, // no duplicate classes on same element
"doctype-first": true, // <!DOCTYPE html> must be first line
"fig-req-figcaption": true, // require <figcaption>
"html-req-lang": true, // <html> tag must have lang attribute
"head-req-title": true, // All documents must have <title>
"head-valid-content-model": true, // Only valid <head> children
"id-class-style": "dash", // allow hyphens/dashes in attribute values, e.g., week-one
"id-no-dup": true, // no duplicate IDs anywhere on page
"img-req-alt": true, // All <img> tags must have non-empty alt attribute
"indent-style": "spaces", // use spaces to indent
"indent-width": 2, // use two spaces, to be precise
"input-req-label": true, // All <input> tags must have a <label> tag
"label-req-for": true, // All <label> tags must have a for attribute
"line-end-style": "lf", // Unix-style LF line-endings
"spec-char-escape": true, // XML special characters (<,>,&,etc.) must be escaped
"tag-bans": ["style", "iframe", "br", "hr"], // no on-pages styles (for now), no iframes, breaks, horizontal rules
"tag-close": true, // tags that open must close
"tag-name-lowercase": true, // only lowercase for tag names
"tag-name-match": true, // tag names must match, in both name and case
"tag-self-close": "always" // tags like <meta> must self-close: <meta />
}