-const { lint } = require('html-minifier-lint');
-
-function lintHtml(html) {
- const result = lint(html);
- stubLogger.debug('lintHtml', '', { result, html });
- assert(!result);
-}
+const htmlValidate = new HtmlValidate();
+const lintHtml = makeHtmlLint(stubLogger, htmlValidate);