Registry / testing / puglint-stylish

puglint-stylish

JSON →
library1.1.0jsnpmunverified

A stylish reporter for pug-lint, heavily inspired by jshint-stylish. Provides colorized, formatted output for lint results when using pug-lint >=1.2 <3.0.0. Version 1.1.0 is the latest stable release; the package is stable but sees infrequent updates. Unlike the default pug-lint reporter, puglint-stylish offers a cleaner, more readable presentation of errors and warnings, making it easier to scan large numbers of lint results.

npm install puglint-stylish
INSTALL
IMPORT
SIG · PUGLINT-STYLISH
P
puglint-stylish
testingjavascriptv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
✓ import reporter from 'puglint-stylish'
✗ const reporter = require('puglint-stylish')
Package does not export a named reporter; use default import. CommonJS works via default interop.

Shows how to install puglint-stylish and use it with pug-lint CLI to get styled output.

// Install: npm install --save-dev pug-lint puglint-stylish // Run on the command line: // pug-lint --reporter node_modules/puglint-stylish *.pug // Example .pug file to lint: // file.pug: // doctype html // html // head // title Test // body // h1 Hello // Run: pug-lint --reporter node_modules/puglint-stylish file.pug // Output will be styled with colored error/warning counts.
Debug
Known issues
gotchaReporter must be specified with full path to node_modules/puglint-stylish, not just the package name.
fix
Use --reporter node_modules/puglint-stylish instead of --reporter puglint-stylish.
affects: >=1.0.0
gotchaRequires pug-lint version >=1.2 and <3.0.0. Incompatible with pug-lint 3.x and above.
fix
Downgrade pug-lint to 2.x or use a different reporter.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'puglint-stylish'
The reporter is not installed or not found in node_modules.
fix
Run: npm install --save-dev puglint-stylish
pug-lint: Unknown reporter 'puglint-stylish'
The --reporter flag is given just the package name, not the full path.
fix
Use: --reporter node_modules/puglint-stylish
Upgrade
Version history
1.1.0latest on npm
Audit
Dependencies
pug-lintrequiredPeer dependency; the reporter is used with pug-lint CLI, supporting versions >=1.2 <3.0.0
Agent activity
4 hits · last 30 days
node
4
Resources
puglint-stylish — npm install puglint-stylish · libregistry