metalsmith-html-linter

JSON →
library 2.0.13 ·javascript
verified Jun 4, 2026

A Metalsmith plugin to lint HTML for syntax and semantics using linthtml/htmllint. Current stable version is 2.0.13, compatible with Metalsmith ^2.5.0 and Node >=20.18.1. It catches HTML violations during the build process, stopping the build on errors. Default rules ban deprecated attributes and tags, with options for custom lint config, ignored tags, and parallelism. Supports both ESM and TypeScript.