{"library":"mocha-pug-lint","title":"mocha-pug-lint","description":"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.","language":"javascript","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["npm install mocha-pug-lint"],"cli":null},"imports":["const mochaPugLint = require('mocha-pug-lint');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const mochaPugLint = require('mocha-pug-lint');\nconst path = require('path');\nconst globPatterns = ['./test/files/**/*.pug'];\nconst options = {\n  disallowAttributeConcatenation: true\n};\nmochaPugLint(globPatterns, options);","lang":"javascript","description":"Shows typical usage: requiring the function, specifying glob patterns for .pug files, and passing pug-lint options.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}