{"id":20457,"library":"prettier-pretty-check","title":"prettier-pretty-check","description":"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.","status":"active","version":"0.2.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install prettier-pretty-check","lang":"bash","label":"npm"},{"cmd":"yarn add prettier-pretty-check","lang":"bash","label":"yarn"},{"cmd":"pnpm add prettier-pretty-check","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Runtime peer dependency – the actual formatting engine. Must be installed in the project.","package":"prettier","optional":false}],"imports":[{"note":"The package is a CLI tool, not a library. Use npx or add to package.json scripts. Not meant for programmatic require/import.","wrong":"npm run prettier-pretty-check --check src/","symbol":"prettier-pretty-check","correct":"npx prettier-pretty-check --check src/"}],"quickstart":{"code":"npm install --save-dev prettier prettier-pretty-check\n# or bun add --dev prettier prettier-pretty-check\n\n# Add to package.json:\n# {\n#   \"scripts\": {\n#     \"format:check\": \"prettier-pretty-check --check \\\"src/**/*.{js,ts}\\\"\"\n#   }\n# }\n\n# Run:\nnpx prettier-pretty-check --check \"src/**/*.js\"","lang":"javascript","description":"Install prettier and prettier-pretty-check, then run the enhanced check command via npx or a npm script."},"warnings":[{"fix":"Run npm install --save-dev prettier alongside prettier-pretty-check.","message":"prettier-pretty-check does not bundle prettier; you must install prettier separately.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use --write as with normal prettier; enhanced output only appears with --check.","message":"When --write is used, arguments are passed through to prettier unchanged; no enhanced output is produced.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Watch the repository for updates; for now the tool works with prettier v2 and v3.","message":"Version 0.2.0 still works but may lack features for newer prettier versions.","severity":"deprecated","affected_versions":"<=0.2.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Install prettier: npm install --save-dev prettier","cause":"Prettier is not installed in the project.","error":"Error: Cannot find module 'prettier'"},{"fix":"Check prettier's documentation for valid options.","cause":"Using an argument that prettier does not support; passed through to prettier and rejected.","error":"Error: Unknown argument: --foo"},{"fix":"Specify a glob pattern like npx prettier-pretty-check --check \"src/**/*.js\"","cause":"Running prettier-pretty-check without any file pattern.","error":"Error: The 'path' argument must be of type string. Received undefined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}