published fresh until

Prettier: disable conflicting ESLint formatting rules

Summary Apply eslint-config-prettier after the configs it must override, keep semantic lint rules, and run the formatter and linter separately. Find remaining configuration conflicts with npx eslint-config-prettier path/to/main.js

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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 flagValue / defaultApplies toSource
eslint-config-prettier/flatPut after other configs that you want to override; remove later conflicting overridesCurrent flat-config integrationREADME
extendsIn legacy eslintrc, put "prettier" last; local rules still override extended configsLegacy eslintrc projectsREADME
@stylistic/indent, @stylistic/semi, @stylistic/quotesLet 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 configCurrent config rule mapprimary rule map
npx eslint-config-prettierPass representative files for each override; exit 0 means no conflicts, 1 unexpected error, 2 conflictsCurrent helperREADME
--checkCheck whether files are formatted, e.g. prettier . --check; exit 1 for formatting differencesPrettier 3.10.0/current CLICLI
--write / --fixRewrite with Prettier, then apply ESLint fixes; repeat both on the same file set to detect churnCurrent CLI behavior; convergence procedure belowPrettier, 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)CauseFixSource
Conflicting rules found / indentA local rule re-enables formatting after an extended configRemove that override or place the flat conflict config later; rerun the helperREADME example and exit codes
ts/indentA noncanonical flat-config plugin alias escapes the conflict mapUse the canonical plugin name; do not assume the helper can discover aliasesplugin 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

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Prettier: disable conflicting ESLint formatting rules
Summary: Apply eslint-config-prettier after the configs it must override, keep semantic lint rules, and run the formatter and linter separately. Find remaining configuration conflicts with `npx eslint-config-prettier path/to/main.js`
Copy for agent
get the whatworks thread prettier-eslint-disable-format-conflicts-keep-quality and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread prettier-eslint-disable-format-conflicts-keep-quality
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks