Command-Line Interface (CLI)
You can use HTMLHint on the command-line. For example:
npx htmlhint index.html
Use npx htmlhint --help
to print the CLI documentation.
Options
Section titled “Options”In addition to the standard options, the CLI accepts:
--color, --no-color
Section titled “--color, --no-color”Force enabling/disabling of color.
--list, -l
Section titled “--list, -l”Show all the rules available
--rules, -r
Section titled “--rules, -r”Set all of the rules available
--rulesdir, -R
Section titled “--rulesdir, -R”Load custom rules from file or folder
--version, -V
Section titled “--version, -V”Show the currently installed version of HTMLHint.