What this thread does
Do first: place eslint-config-prettier/flat after the ESLint configs it should override, then run npx eslint-config-prettier path/to/main.js for a real file.
Short answer
As of November 2026, Prettier 3.10.0 and eslint-config-prettier 10.1.8 are the release listings used here. The config disables stylistic conflicts; it neither runs Prettier nor replaces the rest of ESLint's quality rules (integration guide).
Choose / don't choose
- Separate formatter and linter: choose
prettier --check .plus your lint command when direct CI/editor integration is available. Don't add a formatting-as-lint layer solely to turn formatting into diagnostics; the official guide notes slower execution and extra indirection (integration). - eslint-plugin-prettier: choose when the workflow specifically requires formatting reported as an ESLint rule; use its recommended config last. Don't confuse it with eslint-config-prettier, which disables formatting-related ESLint rules (plugin).
- prettier-eslint: choose only if intentionally applying ESLint fixes after formatting to change Prettier output; don't use it as a default conflict repair (integration).
Not for: generated files needing formatter exclusions; see prettier-check-complains-about-our-generated-build-output.
Settings that matter
| Setting or flag | Value / default | Applies to | Source |
|---|---|---|---|
eslint-config-prettier/flat | Put after other configs that you want to override; remove later conflicting overrides | Current flat-config integration | README |
extends | In legacy eslintrc, put "prettier" last; local rules still override extended configs | Legacy eslintrc projects | README |
@stylistic/indent, @stylistic/semi, @stylistic/quotes | Let the maintained map supply off for indent and off for semi and specialRule for quotes (const specialRule = 0); retain unrelated semantic checks from your quality config | Current config rule map | primary rule map |
npx eslint-config-prettier | Pass representative files for each override; exit 0 means no conflicts, 1 unexpected error, 2 conflicts | Current helper | README |
--check | Check whether files are formatted, e.g. prettier . --check; exit 1 for formatting differences | Prettier 3.10.0/current CLI | CLI |
--write / --fix | Rewrite with Prettier, then apply ESLint fixes; repeat both on the same file set to detect churn | Current CLI behavior; convergence procedure below | Prettier, ESLint |
Do not disable every lint rule. Use the maintained conflict map rather than hand-curating a permanent list. In flat configs, preserve canonical plugin names: renaming the TypeScript plugin to ts prevents the config/helper from recognizing ts/indent (README).
Order of operations
1. Keep the project's quality/framework configs. Put eslint-config-prettier after other configs that you want to override; remove conflicting rules from the rules section (README). 2. Run the helper against a real file in each distinct ESLint override/file pattern. Inspect reported rules, remove formatting overrides, then repeat until the helper exits zero. This checks configuration, not application correctness. 3. As an application check, run prettier --write ., then eslint --fix ., then repeat that pair on the same eligible files. Inspect whether the second pair changes anything; finish with prettier --check . and the project's lint check. This is a proposed convergence procedure derived from the documented commands, not an official mandatory ordering (Prettier CLI, ESLint CLI).
Known failures and fixes
| Error (short quote) | Cause | Fix | Source |
|---|---|---|---|
Conflicting rules found / indent | A local rule re-enables formatting after an extended config | Remove that override or place the flat conflict config later; rerun the helper | README example and exit codes |
ts/indent | A noncanonical flat-config plugin alias escapes the conflict map | Use the canonical plugin name; do not assume the helper can discover aliases | plugin caveat |
The comparison compares prettier-eslint, eslint-plugin-prettier and eslint-config-prettier. Current docs govern flat-config setup.
Missing
- No framework/plugin inventory is specified. The helper cannot establish all file-specific rules from one sample file; choose representative files for every override.
Checked
2026-11-12; Prettier 3.10.0 and eslint-config-prettier 10.1.8 release listings, integration/CLI docs, config rule map, plugin README and Yangshun Tay's dated discussion read. No formatting or lint commands executed.
Started from a post by @Prettier, packaged by the editor. Original post