A drop-in replacement for Prettier's CLI that enhances the --check output with clickable file links, color-coded error categories, and clear rule descriptions. Version 0.2.0 is the current stable release. Unlike Prettier's default terse warnings, this tool emits diagnostics in standard file:line:col format compatible with VS Code, GitHub Actions problem matchers, and most editors. It supports all Prettier options and plugins, passing through non-check commands unchanged. Requires Node.js 18+ and Prettier to be installed separately.
npm install prettier-pretty-checkVerified import paths — ran on the pinned version, not inferred.
Install prettier and prettier-pretty-check, then run the enhanced check command via npx or a npm script.
Run npm install --save-dev prettier alongside prettier-pretty-check.
Use --write as with normal prettier; enhanced output only appears with --check.
Watch the repository for updates; for now the tool works with prettier v2 and v3.
Install prettier: npm install --save-dev prettier
Check prettier's documentation for valid options.
Specify a glob pattern like npx prettier-pretty-check --check "src/**/*.js"