🌐
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
This lets you use your favorite shareable config without letting its stylistic choices get in the way when using Prettier. Note that this config only turns rules off, so it only makes sense using it together with some other config.
Starred by 5.9K users
Forked by 262 users
Languages   JavaScript
🌐
ESLint
eslint.org › docs › latest › use › configure › configuration-files
Configuration Files - ESLint - Pluggable JavaScript Linter
Selecting a version will take you to the chosen version of the ESLint docs. Version ... Results will be shown and updated as you type. ... This page explains how to use flat config files.
Discussions

eslint-config-prettier npm package compromised
Good reminder to use a password manager as well (as it would also catch the 'npnjs' typo squatted domain too) · Similar incident happened to the HIBP guy who mentioned ignoring the password manager safeguards due to being half asleep while on the plane More on news.ycombinator.com
🌐 news.ycombinator.com
11
74
July 28, 2025
Prettier doesn't format based on my eslint config
I have installed Eslint-Prettier extension on VSCode. I already have an .eslintrc.js and my default formatter (Eslint-prettier) doesn't format according to my eslint rules. For example: when i typ... More on stackoverflow.com
🌐 stackoverflow.com
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 4, 2019
Malware published in eslint-config-prettier and other packages
That's pretty awful More on reddit.com
🌐 r/webdev
28
385
July 21, 2025
🌐
DEV Community
dev.to › viniciuskneves › prettier-eslint-and-typescript-491j
Prettier, ESLint and Typescript - DEV Community
September 20, 2021 - Prettier provides two packages that integrate with ESLint. eslint-config-prettier: turns off rules that might conflict with Prettier.
🌐
npm
npmjs.com › package › eslint-config-prettier
eslint-config-prettier - npm
July 18, 2025 - This lets you use your favorite shareable config without letting its stylistic choices get in the way when using Prettier. Note that this config only turns rules off, so it only makes sense using it together with some other config.
      » npm install eslint-config-prettier
    
Published   Jul 18, 2025
Version   10.1.8
Author   Simon Lydell
🌐
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. Our recommended configuration automatically enables eslint-config-prettier to disable all formatting-related ESLint rules.
      » npm install eslint-plugin-prettier
    
Published   Jan 14, 2026
Version   5.5.5
Author   Teddy Katz
🌐
Prettier
prettier.io › docs › install
Install · Prettier
If you use ESLint, install eslint-config-prettier to make ESLint and Prettier play nice with each other. It turns off all ESLint rules that are unnecessary or might conflict with Prettier.
🌐
Medium
medium.com › @contactmanoharbatra › eslint-and-prettier-configuration-f0259ebeb58b
Eslint and Prettier configuration | by Manohar Batra | Medium
September 10, 2025 - Eslint and Prettier configuration YouTube: https://www.youtube.com/@RoadToCodeWithMB 🔧 Step 1: Install ESLint and Plugins In your Vite React project root, run: (sometimes it comes by default when …
Find elsewhere
🌐
GitHub
github.com › prettier › eslint-plugin-prettier
GitHub - prettier/eslint-plugin-prettier: ESLint plugin for Prettier formatting · GitHub
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. Our recommended configuration automatically enables eslint-config-prettier to disable all formatting-related ESLint rules.
Starred by 3.6K users
Forked by 212 users
Languages   JavaScript
🌐
Prettier
prettier.io › docs › configuration
Configuration File · Prettier
The configuration file will be resolved starting from the location of the file being formatted, and searching up the file tree until a config file is (or isn’t) found.
🌐
Prettier
prettier.io › docs › integrating-with-linters.html
Integrating with Linters · Prettier
Finally, we have tools that run prettier and then immediately lint files by running, for example, eslint --fix on them.
🌐
LogRocket
blog.logrocket.com › home › using prettier and eslint for javascript formatting
Using Prettier and ESLint for JavaScript formatting - LogRocket Blog
October 22, 2024 - In a dedicated ESLint configuration file, you can manage the rules your project uses and disable any you don’t wish to use. ESLint allows rules to be set as errors or warnings and some errors can be automatically fixed. While ESLint can handle some formatting tasks, Prettier offers several advantages that make it a valuable addition to the development workflow.
🌐
Hacker News
news.ycombinator.com › item
eslint-config-prettier npm package compromised | Hacker News
July 28, 2025 - Good reminder to use a password manager as well (as it would also catch the 'npnjs' typo squatted domain too) · Similar incident happened to the HIBP guy who mentioned ignoring the password manager safeguards due to being half asleep while on the plane
🌐
Ryan Patterson
cgamesplay.com › post › 2019 › 12 › 20 › prettier
Configuring Prettier and ESLint | Ryan Patterson
December 20, 2019 - It provides mostly sane defaults, many of which ESLint can automatically fix. extends "plugin:react/recommended" This plugin adds several useful React-specific style and quality rules. extends "plugin:prettier/recommended" This plugin configures ESLint to defer all style decisions to Prettier.
🌐
Endor Labs
endorlabs.com › learn › cve-2025-54313-eslint-config-prettier-compromise----high-severity-but-windows-only
CVE-2025-54313: eslint-config-prettier Compromise — High Severity but Windows-Only | Blog | Endor Labs
September 17, 2025 - CVE-2025-54313 tracks a supply chain attack on eslint-config-prettier, where four malicious versions of a popular npm library targeted Windows machines with a remote-code execution payload. Learn how it happened and how to stay safe.
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
Prettier ESLint - Visual Studio Marketplace
Extension for Visual Studio Code - A Visual Studio Extension to format JavaScript and Typescript code using prettier-eslint package
🌐
Josh Finnie
joshfinnie.com › blog › adding-eslint-and-prettier-to-my-blog
Adding ESLint & Prettier to My Blog | www.joshfinnie.com
December 2, 2024 - This package disables ESLint’s formatting rules, letting Prettier handle formatting while ESLint focuses on code quality. Another hurdle was the eslint.config.json file. This newer configuration approach lacks extensive documentation, and the add-on packages made it more complex.
🌐
GitHub
github.com › prettier › eslint-config-prettier › blob › main › CHANGELOG.md
eslint-config-prettier/CHANGELOG.md at main · prettier/eslint-config-prettier
On top of that, the docs have been updated to mention how to use both eslint.config.js (flat config) and eslintrc, and the tests now test both config systems. Changed: unicode-bom is no longer turned off. Prettier preserves the BOM if you have one, and does not add one if missing.
Author   prettier
🌐
Joshuakgoldberg
joshuakgoldberg.com › blog › you-probably-dont-need-eslint-config-prettier-or-eslint-plugin-prettier
You Probably Don't Need eslint-config-prettier or eslint-plugin-prettier | Goldblog
January 23, 2024 - Developers got around those formatting ...g-prettier could be placed last in a project’s ESLint config to turn off any formatting rules enabled by previous plugins....
Top answer
1 of 2
18
  1. Install eslint:
    npm i --save-dev eslint
    
  2. Init eslint:
    npx eslint --init
    
    For some options you need choose next:
    • How would you like to use ESLint?
    • To check syntax and find problems
    • What format do you want your config file to be in?
    • JavaScript
  3. Install prettier:
    npm i --save-dev eslint-config-prettier eslint-plugin-prettier prettier 
    
  4. Create .prettierrc config file:
     {
         "printWidth": 80,
         "singleQuote": true,
         "trailingComma": "es5"
     }
    

At now you can check style with eslint and fix style with prettier from comand line.

For VSCode integration with eslint and prettier you need to install one of:

  1. esbenp.prettier-vscode.
  2. dbaeumer.vscode-eslint;

After that you need to set this extension as default formatter:

  1. Open command pallette ctrl+shift+p;
  2. Select Format Document With...;
  3. Select Configure Document With...;
  4. Select Prettier - Code Formatter or ESLint based on your preferences.

Now, eslint will work as linter and prettier as formatter:

VSCode problem tab:

eslint output

If I save file all prettier problems will be fixed (Autoformat on save should be turned on)

Eslint plugin does not apply automatically changes in settings located in .prettierrc. See issue on github. To fix this you can:

  • move .prettierrc content in .eslint (not recommended because prettier plugins sometimes do not read this file);
  • run from command pallette in VSCode ESLint: Restart ESLint server after edit .prettierrc file.
2 of 2
16

in eslint config, change


  extends: ["prettier"],

to


  extends: ['plugin:prettier/recommended'],