Runs Prettier as an ESLint rule, reporting formatting differences as individual lint issues. Current stable version is v5.5.5, released Jan 2025. Requires ESLint >=8, Prettier >=3, and eslint-config-prettier >=7. Actively maintained with monthly releases. Ships TypeScript types and supports flat config (eslint.config.js) and legacy .eslintrc. Integrates with eslint-config-prettier to disable conflicting rules. Notable features: supports non-JS languages (CSS, JSON) via @eslint/css and @eslint/json plugins, Svelte support, and configurable options like 'usePrettierrc' and 'fileInfoOptions'. Faster than prettier-eslint as it avoids double parsing.
npm install eslint-plugin-prettierVerified import paths — ran on the pinned version, not inferred.
Flat config setup with eslint-plugin-prettier and eslint-config-prettier to automatically fix formatting.
Upgrade Prettier to v3+ and ESLint to v8+.
Use Node 14.18+ or 16+; for CJS projects, use dynamic import or upgrade to Node 22+ with require(esm) support.
Rename the 'options' property to 'prettierOptions' in rule configuration.
Add 'arrow-body-style': 'off' and 'prefer-arrow-callback': 'off' in your ESLint rules.
Use 'import recommended from "eslint-plugin-prettier/recommended"' and spread it in your config array.
Run 'npm install --save-dev eslint-plugin-prettier'.
Upgrade to eslint-plugin-prettier v5.4.1+ which bumps synckit to v0.11.7.
Install and configure @typescript-eslint/parser or eslint-plugin-react.
Add 'prettier: eslintPluginPrettier' to the plugins object in your flat config.