Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gulp.task("lint:html", () => {
return gulp.src("./*.html")
.pipe(htmlhint())
.pipe(htmlhint.reporter())
.pipe(htmlhint.failAfterError());
});
gulp.task('lint:html', () => {
return gulp
.src(`${config.html.build}/**/*.html`, {
since: gulp.lastRun('lint:html'),
})
.pipe(htmlhint('.htmlhintrc'))
.pipe(htmlhint.reporter())
.pipe(gulpif(config.failOnError, htmlhint.failAfterError()));
});