Skip to content

Commit

Permalink
Provide rules for htmlhint
Browse files Browse the repository at this point in the history
disable the rule head-script-disabled because upstream code violates it
by design:

./index.html
   L80 |    <script src="/lottie/player.js"></script>
            ^ The <script> tag cannot be used in a <head> tag. (head-script-disabled)

and I'm not certain if fixing this rule will lead to unsuspected
problems because of how these JavaScript files expect to interact with
one another!
  • Loading branch information
atodorov committed Jan 8, 2024
1 parent 685c80a commit 385ef98
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .htmlhintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"tagname-lowercase": true,
"attr-lowercase": true,
"attr-value-double-quotes": true,
"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,
"alt-require": true,
"doctype-html5": true,
"id-class-value": "dash",
"style-disabled": false,
"inline-style-disabled": false,
"inline-script-disabled": false,
"space-tab-mixed-disabled": "space",
"id-class-ad-disabled": false,
"href-abs-or-rel": false,
"attr-unsafe-chars": true,
"head-script-disabled": false
}

0 comments on commit 385ef98

Please sign in to comment.