There are a number of ways to set up prettier to work with eslint and it can be confusing.

To run prettier as an eslint rule, you would want to add a rule that allows eslint to run prettier. You do that with the eslint-plugin-prettier plugin.

  "plugins": ["prettier"],          // Defines a rule that allows eslint to run prettier.
  "rules": {
    "prettier/prettier": "error"    // Turns on that rule.
  }

You would also want to turn off eslint rules that may conflct with prettier. You do this with the eslint-config-prettier extension. Note this should come after any other extensions in order to override the rules as appropriate.

"extends": [
    /*other extensions*/, 
    "prettier"                      // Turns off conflicting eslint rules.  
]             

As per their documentation, it sounds the recommended extension that comes with the prettier plugin actually takes care of everything for you, so you should be able to get away with just:

  extends: [
    // .. other extensions
    'plugin:prettier/recommended',
  ]

https://github.com/prettier/eslint-plugin-prettier

Also, in case third-party plugins come with their own rules that may conflict with prettier, you used to have to add "prettier/that-plugin" - "prettier/react" in your case for instance - to the list of plugins in order to tell eslint to defer to prettier for these non-standard rules as relevant as well. But this no longer seems required.

Answer from IAmDranged on Stack Overflow
🌐
GitHub
github.com › prettier › eslint-config-prettier
GitHub - prettier/eslint-config-prettier: Turns off all rules that are unnecessary or might conflict with Prettier. · GitHub
eslint-config-prettier not only turns off core rules, but also some from these plugins automatically: ... ℹ️ Note: You might find guides on the Internet saying you should also extend stuff like "prettier/react". Since version 8.0.0 of eslint-config-prettier, all you need to extend is "prettier"!
Author   prettier
🌐
Imaginary Cloud
imaginarycloud.com › blog › how-to-configure-eslint-prettier-in-react
How to configure ESLint and Prettier in React
On one hand, ESLint is responsible for checking against programming errors, on the other hand, we have Prettier an opinionated code formatter capable of finding any stylistic errors.
Discussions

Proper way of Installing ESlint with Prettier in a React Project
I've recently started using eslint and prettier in my projects, but I'm always not sure if I'm installing them correctly. I've read several articles online and it seems each one does it differently... More on stackoverflow.com
🌐 stackoverflow.com
How do you use eslint and prettier to your react project
install both plugins for vscode itself install prettier and eslint as dev dependencies install eslint-config-prettier create a .eslintrc.js and begin configuring.... here is where most of the issues arise as its a jungle of information out there on how to do that properly if you want to skip the entire ordeal, I built my own eslint config which supports both out of the box without any setup needed if youre happy with the defaults. More on reddit.com
🌐 r/reactjs
15
9
November 14, 2020
What eslint prettier config do u use?

Heres the tooling/linting/formatting guide I wrote for the company I work for...

https://signal-noise.github.io/rfcs/text/0002-tooling-linting-formatting

May be marginally out-of-date.

More on reddit.com
🌐 r/reactjs
8
4
January 5, 2019
Zed config for TypeScript + React + Tailwind + ESlint with prettier plugin

try biomejs, it's quite simple

More on reddit.com
🌐 r/ZedEditor
8
6
February 26, 2023
🌐
DEV Community
dev.to › knowankit › setup-eslint-and-prettier-in-react-app-357b
Setup ESLINT and PRETTIER in React app - DEV Community
September 26, 2021 - eslint-plugin-prettier - Runs Prettier as an ESLint rule · After installing above, make changes to .eslintrc file. "extends": ["eslint:recommended", "plugin:react/recommended", "plugin:prettier/recommended"]
🌐
npm
npmjs.com › package › eslint-config-prettier
eslint-config-prettier - npm
July 18, 2025 - eslint-config-prettier not only turns off core rules, but also some from these plugins automatically: ... ℹ️ Note: You might find guides on the Internet saying you should also extend stuff like "prettier/react". Since version 8.0.0 of eslint-config-prettier, all you need to extend is "prettier"!
      » npm install eslint-config-prettier
    
Published   Jul 18, 2025
Version   10.1.8
Author   Simon Lydell
🌐
DEV Community
dev.to › tsamaya › eslint-and-prettier-configuration-for-react-project-2gij
ESLint and Prettier configuration for React project - DEV Community
March 21, 2023 - Time to update the .eslintrc.js file, adding the prettier recommended plugin · extends: [ 'plugin:react/recommended', 'airbnb', 'plugin:prettier/recommended', ],
🌐
npm
npmjs.com › package › eslint-plugin-prettier
eslint-plugin-prettier - npm
January 14, 2026 - This plugin works best if you disable all other ESLint rules relating to code formatting, and only enable rules that detect potential bugs. If another active ESLint rule disagrees with prettier about how code should be formatted, it will be impossible to avoid lint errors.
      » npm install eslint-plugin-prettier
    
Published   Jan 14, 2026
Version   5.5.5
Author   Teddy Katz
Find elsewhere
🌐
Medium
medium.com › @grantsky0503 › setup-eslint-and-prettier-in-react-app-7c46b37697f6
Setup ESLint and Prettier in React App | by Alan Grant | Medium
August 21, 2023 - Prettier is an opinionated code formatter which is compatible with most of the languages. To create a project called demo-app, run this command: npx create-react-app demo-app cd demo-app npm start
🌐
Medium
zakimohammed.medium.com › react-prettier-eslint-configuration-22bf2cd77127
React Prettier ESLint Configuration | by Shaikh Zaki Mohammed | Medium
April 7, 2024 - Run Prettier to fix. Here, this command shows the file which has code style issue which is Footer.jsx. ... npm run lint > react-eslint-prettier@0.0.0 lint > eslint .
🌐
LinkedIn
linkedin.com › pulse › config-eslint-prettier-vs-code-react-js-anurag-kumar
Config Eslint and Prettier in VS Code for React js
June 19, 2023 - To do this, access the extensions section of VSCode by pressing "Ctrl + Shift + X" and search for "Eslint" and "Prettier — Code formatter" extensions. Install both of them to ensure their functionality.
🌐
Medium
aaron-janes.medium.com › effortlessly-elevate-your-react-code-with-eslint-and-prettier-a-step-by-step-guide-for-2023-b7cb065316fa
Effortlessly Elevate Your React Code with ESLint and Prettier: A Step-by-Step Guide for 2023 | by Aaron Janes | Medium
February 19, 2023 - Once the install completes, your project will have a .eslintrc.json file in your project. We will update this config to extend from prettier by adding the “prettier” string to the extends code block in your .eslintrc.json file .
🌐
Medium
medium.com › globant › improving-code-quality-in-react-with-eslint-prettier-and-typescript-86635033d803
Improving Code Quality in React with ESLint, Prettier, and TypeScript | by Saurabh Lende | Globant | Medium
January 24, 2024 - Using ESLint and Prettier with TypeScript and React can improve code quality and catch errors early on. Customizing rules can ensure efficiency and maintainability.
🌐
Medium
leandroaps.medium.com › setting-up-eslint-and-prettier-in-a-react-project-with-vite-c2ab658dc0e7
Setting Up ESLint and Prettier in a React Project with Vite | by Leandro A. Siqueira | Medium
January 20, 2025 - eslint-config-prettier: Disables ESLint rules that might conflict with Prettier. eslint-plugin-react: Adds linting rules for React.
🌐
JavaScript in Plain English
javascript.plainenglish.io › how-to-set-up-eslint-prettier-and-typescript-for-a-react-app-7ede39c2cd0e
How to Set Up ESLint, Prettier, and TypeScript for a React App | by Anton Machula | JavaScript in Plain English
October 23, 2025 - Plugins like @typescript-eslint, react, and unused-imports enhance type awareness, React-specific linting, and automatic cleanup. The Perfectionist plugin ensures sorted imports and exports for a clean, predictable structure.
🌐
GitHub
github.com › prettier › eslint-plugin-prettier
GitHub - prettier/eslint-plugin-prettier: ESLint plugin for Prettier formatting · GitHub
ESLint plugin for Prettier formatting. Contribute to prettier/eslint-plugin-prettier development by creating an account on GitHub.
Author   prettier
🌐
Prettier
prettier.io
Prettier · Opinionated Code Formatter · Prettier
styled-components 💅 · Lightning Web Components (LWC)
🌐
Prettier
prettier.io › docs › install
Install · Prettier
Use eslint-config-prettier to make Prettier and ESLint play nice together.
🌐
Next.js
nextjs.org › docs › pages › building-your-application › configuring › eslint
ESLint
2 weeks ago - We recommend including eslint-config-prettier in your ESLint config to make ESLint and Prettier work together.