Allows developers to run pug-lint as Mocha tests. This package integrates pug-lint (a linter for Pug/Jade templates) with the Mocha test framework, enabling linting as part of the test suite. Current stable version is 1.1.0. Last release was in 2017, with low maintenance cadence. Key differentiator: simplifies linting by treating it as a test, so failures break the build naturally. Alternatives: separate lint step in build pipeline. Supports Node >=6, uses CJS require.
npm install mocha-pug-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows typical usage: requiring the function, specifying glob patterns for .pug files, and passing pug-lint options.
Call mochaPugLint() at the top level of your test file, not inside describe or it.
Use path.resolve() or paths relative to project root.
Upgrade Node to current LTS; package may still work but untested.
Run npm install mocha-pug-lint --save-dev
Use const mochaPugLint = require('mocha-pug-lint');