Skip to content

Commit

Permalink
Whitelist svg camelcase attributes in htmlhint
Browse files Browse the repository at this point in the history
This is better than ignoring all camelcase.

Introduced by htmlhint/HTMLHint#121 and released in 0.9.13.

However, 0.9.13 is incompatible with node v0.10.  This was fixed
in htmlhint/HTMLHint#132, but there has not been a release since
(in 8 months).

Therefore we are pinning to today's git version instead of a release.
This gets us the camelcase whitelisting feature and doesn't break with
node v0.10.

Change-Id: I1e3b6c0c96ef24662b46497b1a601bde0dae5704
  • Loading branch information
joeyparrish committed Jan 18, 2017
1 parent d229006 commit 6f65df2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .htmlhintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"alt-require": true,
"attr-lowercase": false,
"attr-lowercase": ["viewBox"],
"attr-no-duplication": true,
"attr-unsafe-chars": true,
"attr-value-double-quotes": true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
],
"devDependencies": {
"htmlhint": "0.9.12",
"htmlhint": "yaniswang/HTMLHint#152a114f",
"in-publish": "2.x",
"jasmine-ajax": "3.3.x",
"jasmine-core": "2.4.x",
Expand Down

0 comments on commit 6f65df2

Please sign in to comment.