{"id":20476,"library":"prettylint","title":"prettylint","description":"Run Prettier as a linter, providing eslint-style output for Prettier formatting errors. Version 2.0.0 requires Node >=16 and Prettier ^3.0.0 as a peer dependency. Lightweight alternative to eslint-plugin-prettier with no ESLint integration needed; outputs warnings in a familiar format. Minimal configuration: works out of the box with default Prettier config or custom config files.","status":"active","version":"2.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/ikatyang/prettylint","tags":["javascript","linter","prettier"],"install":[{"cmd":"npm install prettylint","lang":"bash","label":"npm"},{"cmd":"yarn add prettylint","lang":"bash","label":"yarn"},{"cmd":"pnpm add prettylint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency: uses Prettier to parse and format code.","package":"prettier","optional":false}],"imports":[{"note":"CLI tool, not a library; use via npx or global install.","wrong":"prettylint \"**/*.ts\" (if not installed globally)","symbol":"prettylint","correct":"npx prettylint \"**/*.ts\""}],"quickstart":{"code":"npx prettylint \"**/*.ts\" --fix\n# or install locally:\nnpm install --save-dev prettylint prettier\nnpx prettylint .","lang":"javascript","description":"Run prettylint on all TypeScript files in the project, auto-fixing issues."},"warnings":[{"fix":"Update Prettier to ^3.0.0.","message":"Version 2.0.0 requires Prettier ^3.0.0; previous versions used Prettier 2.x.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Upgrade Node.js to 16 or later.","message":"Version 2.0.0 requires Node.js >=16.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Ensure Prettier configuration is present, or use --config to specify a file.","message":"Prettylint does not use .eslintrc; it uses Prettier's config resolution (.prettierrc or prettier key in package.json).","severity":"gotcha","affected_versions":"*"},{"fix":"To use a custom ignore file, specify only one path: --ignore-path .myignore.","message":"The --ignore-path flag defaults to ['.gitignore', '.prettierignore']; only one file can be passed explicitly (not an array).","severity":"gotcha","affected_versions":"*"},{"fix":"npm install --save-dev eslint-formatter-pretty or use --format <other>.","message":"Output format defaults to 'eslint-formatter-pretty', which may not be installed automatically.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"npm install --save-dev prettier","cause":"Missing peer dependency prettier.","error":"Error: Cannot find module 'prettier'"},{"fix":"npm install prettier@latest --save-dev","cause":"Prettier version is too old (<3.0.0).","error":"Error: Requires prettier ^3.0.0"},{"fix":"Specify only one ignore file: --ignore-path .gitignore","cause":"Passing multiple --ignore-path values (e.g., --ignore-path .gitignore .prettierignore) treats second argument as file pattern.","error":"TypeError [ERR_INVALID_ARG_TYPE]: The \"path\" argument must be of type string. Received an instance of Array"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}