diff --git a/.github/linters/.htmlhintrc b/.github/linters/.htmlhintrc new file mode 100644 index 00000000000..997c7ae63a9 --- /dev/null +++ b/.github/linters/.htmlhintrc @@ -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 +} diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index af09a3ab5e9..2cd574dfa38 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -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 @@ -38,3 +38,4 @@ jobs: VALIDATE_JAVASCRIPT_ES: true VALIDATE_CSS: true VALIDATE_MD: true + VALIDATE_HTML: true