A pretty formatter for Stylelint that provides a clean, colorized output with clickable file links and rule IDs. Version 4.0.1 requires Node >=18.12.0 and Stylelint >=16.0.0. It is a stable, actively maintained package with weekly-committed updates. Compared to the default Stylelint formatter, it offers a more readable output, hyperlink support, and is designed for modern terminals. It is the Stylelint counterpart to eslint-formatter-pretty.
npm install stylelint-formatter-prettyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates command-line usage with --custom-formatter and programmatic usage with stylelint.lint() and the imported formatter.
Upgrade Node.js to >=18.12.0 and Stylelint to >=16.0.0.
Use import syntax or dynamic import() instead of require().
Add a declaration file: declare module 'stylelint-formatter-pretty';
Check the documentation for the task runner's current API. For programmatic use, pass the formatter as a function.
Use a terminal that supports hyperlinks (e.g., iTerm2, Hyper, Windows Terminal).
Change to import stylelintFormatter from 'stylelint-formatter-pretty'; or use dynamic import().
Use import syntax or set type: module in your package.json.
Use import stylelintFormatter from 'stylelint-formatter-pretty'; (without curly braces).
Use --formatter instead for Stylelint <16, or upgrade to Stylelint >=16.