Skip to content

HTML

Linters

Linter Additional
djlint
HTML_DJLINT
GitHub stars
htmlhint
HTML_HTMLHINT
GitHub stars

Linted files

  • File extensions:
    • .html
    • .htm

Configuration in MegaLinter

Variable Description Default value
HTML_PRE_COMMANDS List of bash commands to run before the linters None
HTML_POST_COMMANDS List of bash commands to run after the linters None
HTML_FILTER_REGEX_INCLUDE Custom regex including filter
HTML_FILTER_REGEX_EXCLUDE Custom regex excluding filter