bemhtml-lint

raw JSON →
0.1.0 verified Fri May 01 auth: no javascript abandoned

A lint tool for BEMHTML template syntax, only checking parser errors. Version 0.1.0, last updated in 2013. No active development; only available as a global npm package. It has no dependencies and is limited to basic validation. Not comparable to modern linters; essentially a proof-of-concept.

error Error: Cannot find module 'bemhtml-lint'
cause Package not installed globally or not in PATH.
fix
Install globally: npm install -g bemhtml-lint
deprecated Package is unmaintained since 2013.
fix Do not use for new projects. Consider alternatives or manual validation.
npm install bemhtml-lint
yarn add bemhtml-lint
pnpm add bemhtml-lint

Shows global installation and basic command-line usage on a single BEMHTML file.

npm install -g bemhtml-lint
# Create a test file
echo 'block my-block' > test.bemhtml
# Lint it
bemhtml-lint test.bemhtml
# Output: no errors or syntax error message