Command-line interface for htmllint, an HTML linter. Version 0.0.7 (as of last release). This package provides a CLI tool to lint HTML files against configurable rules via a .htmllintrc file. It is a thin wrapper around the htmllint library, with basic glob support and an init command. Development appears inactive (last updated long ago), and it requires Node >=4. Compared to alternatives like HTMLHint, this package has limited features and no recent updates.
npm install htmllint-cliVerified import paths — ran on the pinned version, not inferred.
Global install, initialize config, lint a single HTML file.
Migrate to HTMLHint (npm install htmlhint) or other active HTML linters.
Backup existing .htmllintrc before running htmllint init.
Use quotes for globs: htmllint "**/*.html"
Run npm install -g htmllint-cli htmllint
Validate .htmllintrc with a JSON linter or use jsonlint.