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.
npm install prettylintVerified import paths — ran on the pinned version, not inferred.
Run prettylint on all TypeScript files in the project, auto-fixing issues.
Update Prettier to ^3.0.0.
Upgrade Node.js to 16 or later.
Ensure Prettier configuration is present, or use --config to specify a file.
To use a custom ignore file, specify only one path: --ignore-path .myignore.
npm install --save-dev eslint-formatter-pretty or use --format <other>.
npm install --save-dev prettier
npm install prettier@latest --save-dev
Specify only one ignore file: --ignore-path .gitignore