Skip to content

Commit

Permalink
Add HTML Linter (#998)
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb authored Jul 12, 2020
1 parent b520b77 commit cacf6a1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/linters/.htmlhintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"alt-require": true,
"attr-lowercase": ["viewBox"],
"attr-value-double-quotes": true,
"attr-value-not-empty": false,
"attr-no-duplication": true,
"attr-unsafe-chars": true,
"doctype-first": false,
"doctype-html5": true,
"empyty-tag-self-close": true,
"id-unique": false,
"id-class-value": true,
"head-script-disabled": false,
"href-abs-or-rel": false,
"id-class-ad-disabled": true,
"inline-style-disabled": true,
"inline-script-disabled": true,
"space-tab-mixed-disabled": "space",
"spec-char-escape": false,
"src-not-empty": true,
"style-disabled": false,
"tag-pair": true,
"tagname-lowercase": true,
"title-require": true
}
3 changes: 2 additions & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v2
- name: Lint Code Base
uses: docker://github/super-linter:v2.2.0
uses: docker://github/super-linter:v3.3.0
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
Expand All @@ -38,3 +38,4 @@ jobs:
VALIDATE_JAVASCRIPT_ES: true
VALIDATE_CSS: true
VALIDATE_MD: true
VALIDATE_HTML: true

0 comments on commit cacf6a1

Please sign in to comment.