-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy path.htmlhintrc
More file actions
58 lines (51 loc) · 1.99 KB
/
Copy path.htmlhintrc
File metadata and controls
58 lines (51 loc) · 1.99 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"tagname-lowercase": true,
"tagname-specialchars": true,
"empty-tag-not-self-closed": true,
"tag-self-close": false,
"tag-pair": false,
"tag-no-obsolete": true,
"tags-check": false,
// Scala code in the twirl templates creates false positives. Browsers lowercase attr names on their own anyway.
"attr-lowercase": false,
// If getting twirl false positives, removing space between paren and curly brace on if statements might fix it.
"attr-no-duplication": true,
"attr-value-not-empty": false,
"attr-value-double-quotes": false,
"attr-value-single-quotes": false,
"attr-value-no-duplication": true,
"attr-unsafe-chars": true,
// If getting twirl false positives, removing space after "<-" might fix it, possibly even on the previous line.
"attr-no-unnecessary-whitespace": true,
"attr-whitespace": false,
"attr-sorted": false,
"id-unique": true, // For a twirl template false positive, you can often rewrite it slightly to not duplicate the ID.
"id-class-value": false,
"id-class-ad-disabled": true,
// If the src field is filled in with JS, you can add a transparent square placeholder:
// src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
"src-not-empty": true,
"href-abs-or-rel": false,
"alt-require": true,
"title-require": true,
"frame-title-require": true,
"input-requires-label": true,
"button-type-require": true,
"form-method-require": false,
"h1-require": false,
"main-require": false,
"doctype-first": false,
"doctype-html5": true,
"html-lang-require": true,
"head-script-disabled": false, // Nontrivial refactor to enable, but would give a small speedup to first paint.
"meta-charset-require": false,
"meta-viewport-require": false,
"meta-description-require": false,
"link-rel-canonical-require": false,
"style-disabled": false,
"script-disabled": false,
"inline-style-disabled": true,
"inline-script-disabled": true,
"spec-char-escape": false,
"space-tab-mixed-disabled": "space"
}