4b5cd4757f0123d7f5968aae7798b3111879d754
[websub-hub] / lint-html.js
1 'use strict';
2
3 const assert = require('assert');
4 const stubLogger = require('./stub-logger');
5 const { lint } = require('html-minifier-lint'); // eslint-disable-line node/no-unpublished-require
6
7 function lintHtml(html) {
8 const result = lint(html);
9 stubLogger.debug('lintHtml', '', { result, html });
10 assert(!result);
11 }
12
13 module.exports = lintHtml;