🌐
npm
npmjs.com › package › eslint-plugin-prettier
eslint-plugin-prettier - npm
January 14, 2026 - Runs prettier as an eslint rule. Latest version: 5.5.5, last published: 2 months ago. Start using eslint-plugin-prettier in your project by running `npm i eslint-plugin-prettier`. There are 8708 other projects in the npm registry using eslint-plugin-prettier.
      » npm install eslint-plugin-prettier
    
Published   Jan 14, 2026
Version   5.5.5
Author   Teddy Katz
🌐
npm
npmjs.com › search
eslint-plugin-prettier - npm search
``` "eslint": "^8.9", "eslint-config-prettier": "^8.3", "eslint-formatter-codeframe": "^7.32", "eslint-plugin-babel": "^5.3", "eslint-plugin-import": "^2.25", "eslint-plugin-jsx-a11y": "^6.5", "eslint-plugin-prettier": "^4.0", "eslint-plugin-react": "^7.2
Discussions

Malware published in eslint-config-prettier and other packages
That's pretty awful More on reddit.com
🌐 r/webdev
28
385
July 21, 2025
What's the difference between prettier-eslint, eslint-plugin-prettier and eslint-config-prettier?
This way you use plugin to run ... turn-off eslint rules that are unnecessary or might conflict with Prettier. ... Find the answer to your question by asking. Ask question ... See similar questions with these tags. ... New site design and philosophy for Stack Overflow: Starting February 24, 2026... I’m Jody, the Chief Product and Technology Officer at Stack Overflow. Let’s... ... 44 what is the difference between installing prettier as a NPM package and ... More on stackoverflow.com
🌐 stackoverflow.com
How do you guys add prettier to vite reactjs project with typescript? (eslint v9)
The docs are here: https://prettier.io/docs/en/install.html More on reddit.com
🌐 r/reactjs
8
4
October 15, 2024
Cannot for the life of me make a react project that uses eslint, but doesn't use prettier
Looks like you haven’t installed the prettier eslint module. To install: npm install --save-dev prettier-eslint Try then? Also. read the docs for disabling prettier-eslint module: https://github.com/prettier/prettier-eslint/blob/master/README.md#eslint-disable-line More on reddit.com
🌐 r/vscode
15
11
December 14, 2019
🌐
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
It runs several other npm scripts: "test:prettier" checks that Prettier has been run on all files. "test:eslint" makes sure that the files in test-lint/ pass ESLint when the exclusions from eslint-config-prettier are used.
Author   prettier
🌐
Stepsecurity
stepsecurity.io › blog › supply-chain-security-alert-eslint-config-prettier-package-shows-signs-of-compromise
Supply Chain Security Alert: eslint-config-prettier Package Shows Signs of Compromise - StepSecurity
July 18, 2025 - We are currently investigating ... This widely-used package, which helps developers maintain consistent code formatting by turning off ESLint rules that conflict with Prettier, appears to have had multiple ....
🌐
Prettier
prettier.io › docs › install
Install · Prettier
It turns off all ESLint rules that are unnecessary or might conflict with Prettier.
🌐
npm
npmjs.com › package › eslint-plugin-prettier-vue
eslint-plugin-prettier-vue - npm
August 25, 2023 - ESLint plugin for Prettier formatting, which is better for Vue SFC. Latest version: 5.0.0, last published: 2 years ago. Start using eslint-plugin-prettier-vue in your project by running `npm i eslint-plugin-prettier-vue`. There are 29 other ...
      » npm install eslint-plugin-prettier-vue
    
Published   Aug 25, 2023
Version   5.0.0
Author   meteorlxy
🌐
Medium
medium.com › @robinviktorsson › setting-up-eslint-and-prettier-for-a-typescript-project-aa2434417b8f
Setting Up ESLint and Prettier for a TypeScript Project | by Robin Viktorsson | Medium
March 10, 2025 - npm install --save-dev eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin prettier eslint-plugin-prettier eslint-config-prettier
Find elsewhere
🌐
Snyk
snyk.io › blog › maintainers-of-eslint-prettier-plugin-attacked-via-npm-supply-chain-malware
Maintainers of ESLint Prettier Plugin Attacked via npm Supply Chain Malware | Snyk
July 22, 2025 - The latter is exactly the route attackers went for with this recent attack and have fooled maintainers into going through an email flow that harvested their credentials to the npm registry. Now, attackers have gained those registry credentials and can, on-their-behalf, publish new versions of these packages. This is exactly the scenario that played out, with eslint-config-prettier as one reference package, found to have been published several infected versions with Windows-based malware. ... provided evidence in the ESLint Config Prettier plugin GitHub pag, demonstrating the email they received:
🌐
Reddit
reddit.com › r/webdev › malware published in eslint-config-prettier and other packages
r/webdev on Reddit: Malware published in eslint-config-prettier and other packages
July 21, 2025 -

From the tweet:

cc @geteslint @PrettierCode @PrettierESLint

Attention!!!

I was tricked by a phishing email and a new npm token was added and leaked then some popular packages I'm maintaining were released with malicious software, I've deleted the leaked token and marked all affected bad versions as deprecated and released new versions.

All affected packages and versions are:

  • eslint-config-prettier

    • 8.10.1

    • 9.1.1

    • 10.1.6

    • 10.1.7

  • eslint-plugin-prettier:

    • 4.2.2

    • 4.2.3

  • snyckit:

    • 0.11.9

  • @pkgr/core:

    • 0.2.8

  • napi-postinstall:

    • 0.3.1

–--

Reminder: if you are publishing npm packages, go to https://www.npmjs.com/settings/<YOUR_USERNAME>/tfa/list and change your 2FA method from Authenticator App to Security Key and create a passkey using biometrics. It would make it impossible to mistakenly enter the OTP into a fake scam site.

🌐
GitHub
github.com › prettier › eslint-plugin-prettier
GitHub - prettier/eslint-plugin-prettier: ESLint plugin for Prettier formatting · GitHub
npm install --save-dev eslint-plugin-prettier eslint-config-prettier npm install --save-dev --save-exact prettier
Author   prettier
🌐
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.
🌐
ESLint
eslint.org › docs › latest
Documentation - ESLint - Pluggable JavaScript Linter
Intended for people who wish to extend ESLint. Contains information about creating custom rules, configurations, plugins, and formatters.
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
Prettier - Code formatter - Visual Studio Marketplace
January 21, 2026 - Extension for Visual Studio Code - Code formatter using prettier
🌐
Prettier
prettier.io
Prettier · Opinionated Code Formatter · Prettier
More than 19.4k dependent packages on npmSee them all
🌐
ESLint
eslint.org
Find and fix problems in your JavaScript code - ESLint - Pluggable JavaScript Linter
ESLint is the #1 JavaScript linter by downloads on npm (over 99.5 million downloads / week) and is used at companies like Microsoft, Airbnb, Netflix, and Facebook.
Top answer
1 of 2
456

UPDATE 2023: ESLint is deprecating formatting rules and recommend you use a source code formatter instead.

tl;dr: Use eslint-config-prettier in eslint, and run prettier separately. You can ignore the rest.

From v8.53.0 onwards, you will see a deprecation warning if those formatting rules are enabled in your config. You should still use eslint-config-prettier to disable conflicting rules until the rules are removed in a new major release.

ESLint contains many rules and those that are formatting-related might conflict with Prettier, such as arrow-parens, space-before-function-paren, etc. Hence using them together will cause some issues. The following tools have been created to use ESLint and Prettier together.

prettier-eslint eslint-plugin-prettier eslint-config-prettier
What it is A JavaScript module exporting a single function. An ESLint plugin. An ESLint configuration.
What it does Runs the code (string) through prettier then eslint --fix. The output is also a string. Plugins usually contain implementations for additional rules that ESLint will check for. This plugin uses Prettier under the hood and will raise ESLint errors when your code differs from Prettier's expected output. This config turns off formatting-related rules that might conflict with Prettier, allowing you to use Prettier with other ESLint configs like eslint-config-airbnb.
How to use it Either calling the function in your code or via prettier-eslint-cli if you prefer the command line. Add it to your .eslintrc. Add it to your .eslintrc.
Is the final output Prettier compliant? Depends on your ESLint config Yes Yes
Do you need to run prettier command separately? No No Yes
Do you need to use anything else? No You may want to turn off conflicting rules using eslint-config-prettier. No

For more information, refer to the official Prettier docs.

It's the recommended practice to let Prettier handle formatting and ESLint for non-formatting issues, prettier-eslint is not in the same direction as that practice, hence prettier-eslint is not recommended anymore. You can use eslint-plugin-prettier and eslint-config-prettier together.

2 of 2
3
  • Use eslint-config-prettier to turn-off eslint rules that are unnecessary or might conflict with Prettier. See 1st line in readme: eslint-config-prettier.
  • Use eslint-plugin-prettier to run Prettier as an Eslint-rule. See 1st line in readme: eslint-plugin-prettier
  • Use both to take advantage of both tools. See recommended configuration: eslint-plugin-prettier. This way you use plugin to run Prettier as an Eslint-rule, and config to turn-off eslint rules that are unnecessary or might conflict with Prettier.
  • You can ignore prettier-eslint
🌐
LogRocket
blog.logrocket.com › home › using prettier and eslint for javascript formatting
Using Prettier and ESLint for JavaScript formatting - LogRocket Blog
October 22, 2024 - Now, you can run Prettier and ESLint together without any side effects. You can also run Prettier and ESLint one after another like on the command line by defining them as npm scripts.
🌐
Prettier
prettier.io › docs › options
Options · Prettier
In other words, don’t try to use printWidth as if it was ESLint’s max-len – they’re not the same.
🌐
Josh Finnie
joshfinnie.com › blog › adding-eslint-and-prettier-to-my-blog
Adding ESLint & Prettier to My Blog | www.joshfinnie.com
December 2, 2024 - 3.1. Install the Prettier plugin for ESLint and the Astro plugin for ESLint: npm install --save-dev eslint-plugin-prettier/recommended eslint-plugin-astro