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.
Common errors
error Error: Cannot find module 'bemhtml-lint' ↓
cause Package not installed globally or not in PATH.
fix
Install globally: npm install -g bemhtml-lint
Warnings
deprecated Package is unmaintained since 2013. ↓
fix Do not use for new projects. Consider alternatives or manual validation.
Install
npm install bemhtml-lint yarn add bemhtml-lint pnpm add bemhtml-lint Imports
- default (CLI) wrong
require('bemhtml-lint')correctbemhtml-lint <file> - N/A wrong
import { lint } from 'bemhtml-lint'correctN/A
Quickstart
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