Last active
January 14, 2018 04:22
-
-
Save thorade/6988cc4b3df8f3f75f8f to your computer and use it in GitHub Desktop.
HTMLHint rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"alt-require": true, | |
"attr-lowercase": true, | |
"attr-no-duplication": true, | |
"attr-unsafe-chars": true, | |
"attr-value-double-quotes": false, | |
"attr-value-not-empty": false, | |
"doctype-first": true, | |
"doctype-html5": true, | |
"head-script-disabled": true, | |
"href-abs-or-rel": false, | |
"id-class-ad-disabled": true, | |
"id-class-value": "dash", | |
"id-unique": true, | |
"inline-script-disabled": true, | |
"inline-style-disabled": true, | |
"space-tab-mixed-disabled": "space2", | |
"spec-char-escape": true, | |
"src-not-empty": true, | |
"style-disabled": true, | |
"tag-pair": true, | |
"tag-self-close": false, | |
"tagname-lowercase": true, | |
"title-require": true | |
} |
I've added missing attrs at https://gist.github.com/DrummerHead/7f6a93dee0031cf3851b
There are no pull requests for gists so I'm just sending you the link, cheers!
Just a comment for posterity. If anyone tries to use this file and your alt alerts aren't firing, you'll want to change img-alt-require to simply alt-require.
@DrummerHead Thanks, I didn't even notice, looks like gists do not send notifications.
I copied your example back here, and sorted the lines alphabetically.
It would be nice if they added an options for ignoring unescaped codes within double handlebars only for handlebars users. (or just support handlebars in general)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All HTMLHint rules, as described here:
https://github.com/yaniswang/HTMLHint/wiki/Rules
https://github.com/yaniswang/HTMLHint/wiki/Usage#how-to-use