eslint-config-prettier turns off ESLint stylistic rules that clash with Prettier so shared configs can pair with Prettier formatting without duplicate style enforcement.
Overview
eslint-config-prettier is a shareable ESLint config that only disables rules; it does not enable linting on its own. Add "prettier" last in extends arrays for eslintrc or import eslintConfigPrettier after other flat configs so formatting stays with Prettier.
It automatically neutralizes overlapping rules from core ESLint and common plugins, including @typescript-eslint, react, vue, unicorn, babel, and stylistic packages. A CLI helper scans configs for remaining conflicts against Prettier.
Flat-config users must match official plugin name prefixes when relying on automatic rule shutdown; renamed @stylistic or typescript prefixes need consistent naming. Optional ESLINT_CONFIG_PRETTIER_NO_DEPRECATED trims deprecated rule entries.
Projects pair it with organizational ESLint presets to stop dueling indent or quote rules while keeping semantic lint coverage elsewhere.
Key features
- Disables Prettier-conflicting ESLint rules
- Flat and eslintrc compatibility
- Plugin-specific rule shutdowns
- CLI conflict detection tool
- Special-case rule documentation
- Extends-only integration pattern
Use cases
- Run Prettier beside Airbnb ESLint
- Silence stylistic duplicates in monorepos
- Audit flat config for conflicts
- Adopt Prettier without rule fights