Gulp plugin for html linting using BEM methodology.
![Example of html tree view output to the terminal indicating inconsistencies with the BEM methodology.](https://raw.githubusercontent.com/firefoxic/gulp-html-bemlinter/main/example/light.webp)
pnpm add -D gulp gulp-html-bemlinter
Add the following to your gulpfile.js
:
import bemlinter from "gulp-html-bemlinter"
import { src } from "gulp"
export function lintBemMarkup () {
return src("dist/**/*.html")
.pipe(bemlinter())
}
And then run this task:
pnpm exec gulp lintBemMarkup