An unopinionated and configurable linter and style checker for Pug (formerly Jade). Current stable version is 2.7.0, released in 2016 with no further updates. The project is effectively abandoned; no releases since 2016. It provides a CLI, configuration via .pug-lintrc files or package.json, and supports extending configs from npm packages. Key differentiators: highly configurable with many rules, but no longer maintained, so use with caution.
npm install pug-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a linter instance, configure it with rules, and lint a Pug string.
Use extends property in config file instead of preset.
Ensure .pug-lintrc.js exports a config object via module.exports.
Update to v2.1.8+ or adjust error parsing.
Install pug-lexer: npm install pug-lexer
Use const linter = new pugLint.Linter() or import { Linter } from 'pug-lint' and then new Linter().Create a .pug-lintrc file or add pugLintConfig to package.json.