Skip to content

Instantly share code, notes, and snippets.

@DrummerHead
Forked from thorade/.htmlhintrc
Last active March 7, 2017 09:23
Show Gist options
  • Save DrummerHead/7f6a93dee0031cf3851b to your computer and use it in GitHub Desktop.
Save DrummerHead/7f6a93dee0031cf3851b to your computer and use it in GitHub Desktop.
HTMLHint rules
{
"tagname-lowercase": true,
"attr-lowercase": true,
"attr-value-double-quotes": false,
"attr-value-not-empty": false,
"attr-no-duplication": true,
"doctype-first": true,
"tag-pair": true,
"tag-self-close": false,
"spec-char-escape": true,
"id-unique": true,
"src-not-empty": true,
"title-require": true,
"head-script-disabled": true,
"alt-require": true,
"doctype-html5": true,
"id-class-value": "dash",
"style-disabled": true,
"inline-style-disabled": true,
"inline-script-disabled": true,
"space-tab-mixed-disabled": "space2",
"id-class-ad-disabled": true,
"href-abs-or-rel": false,
"attr-unsafe-chars": true
}
@chriswelchgb
Copy link

This file is complete - thanks! 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
Copy link
Author

Thanks @chriswelchgb for the note, updated the gist to reflect this change and added more sensible defaults

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment