diff options
author | XhmikosR <xhmikosr@gmail.com> | 2017-10-22 15:02:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-22 15:02:24 +0300 |
commit | 2ef5b901364b9024ef62286be59bcd67a3ec7d89 (patch) | |
tree | 939839e1b4b4bcfd756f424684ce3a8deae902d0 /build | |
parent | fbd42af6ca17abf1e01349d7c581ec399202f4c0 (diff) |
Tighten htmllint's rules. (#24471)
Diffstat (limited to 'build')
-rw-r--r-- | build/.htmllintrc | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/build/.htmllintrc b/build/.htmllintrc index c04658fb9e..ba2c6b3a39 100644 --- a/build/.htmllintrc +++ b/build/.htmllintrc @@ -1,19 +1,43 @@ { "attr-bans": ["align", "background", "bgcolor", "border", "frameborder", "longdesc", "marginwidth", "marginheight", "scrolling"], "attr-name-style": false, - "attr-no-unsafe-char": false, + "attr-no-dup": true, + "attr-no-unsafe-char": true, + "attr-quote-style": "double", + "attr-req-value": true, + "attr-validate": true, + "class-no-dup": true, "class-style": "dash", "doctype-first": true, "doctype-html5": true, "fig-req-figcaption": false, + "focusable-tabindex-style": true, + "head-req-title": true, + "head-valid-content-model": false, + "href-style": false, + "html-req-lang": true, "html-valid-content-model": false, "id-class-ignore-regex": "(onclick|content|[a-z]+([A-Z][a-z])+)", + "id-class-no-ad": true, "id-class-style": "dash", + "id-no-dup": true, + "img-req-alt": "allownull", "img-req-src": false, - "img-req-alt": false, "indent-style": "spaces", "indent-width": 2, + "input-radio-req-name": false, + "input-req-label": false, + "label-req-for": true, + "lang-style": "case", + "line-end-style": "lf", "spec-char-escape": false, + "table-req-header": false, "tag-bans": ["b", "i"], - "title-max-len": false + "tag-close": true, + "tagname-lowercase": true, + "tag-name-match": true, + "tag-self-close": false, + "text-ignore-regex": false, + "title-max-len": 70, + "title-no-dup": true } |