# eslint-plugin-prettier

> Run Prettier as an ESLint rule

Source: https://talira.ai/catalog/eslint-plugin-prettier-h1600fhg
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [developer tools / linting](https://talira.ai/categories/developer-tools/linting), [developer tools / formatting](https://talira.ai/categories/developer-tools/formatting)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Prettier](https://talira.ai/orgs/prettier-team.md)

eslint-plugin-prettier runs [Prettier](https://talira.ai/catalog/prettier-wqw3mymz.md) inside [ESLint](https://talira.ai/catalog/eslint-0nyjt04g.md) as a single rule, `prettier/prettier`, and reports each difference between your code and Prettier's output as an ESLint issue, so formatting shows up and is fixed with `eslint --fix` alongside lint errors. It works with both the flat `eslint.config.js` and the legacy `.eslintrc` configuration and supports Svelte. It's usually paired with [eslint-config-prettier](https://talira.ai/catalog/eslint-config-prettier-b63kdk9b.md), which turns off the ESLint rules that conflict with Prettier.

## Links

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

## Problems it solves

- see Prettier formatting problems as ESLint errors in my editor
- fix formatting and lint issues with one eslint --fix
- enforce Prettier formatting in CI through ESLint

## Features

- runs Prettier as the ESLint rule prettier/prettier
- reports formatting differences as ESLint issues, fixable with eslint --fix
- flat eslint.config.js and legacy .eslintrc configs
- Svelte support

## Trust

Overall: 0.48 out of 1.
Signals: maintenance 0.52, adoption 0.71, momentum 0.45, community 0.68, backing 0.30, extensibility 0.00.

- last commit 47 days ago
- 11 commits in the last 90 days
- latest release v5.5.7 47 days ago
- 3.7k GitHub stars
- 48 contributors
- accepts sponsorship (Github, Github, Github)
- backed by Prettier

## Related

- Works with [ESLint](https://talira.ai/catalog/eslint-0nyjt04g.md)
- Works with [Prettier](https://talira.ai/catalog/prettier-wqw3mymz.md)
- Works with [eslint-config-prettier](https://talira.ai/catalog/eslint-config-prettier-b63kdk9b.md)

## Alternatives

- [ESLint](https://talira.ai/catalog/eslint-0nyjt04g.md): Find and fix problems in your JavaScript code.
- [Biome](https://talira.ai/catalog/biome-0x0507a7.md): One fast toolchain that formats and lints JavaScript, TypeScript, JSON, CSS, HTML, GraphQL, YAML and Markdown.
- [XO](https://talira.ai/catalog/xo-52vbgqne.md): Zero-config JavaScript and TypeScript linter built on ESLint
- [ALE (Asynchronous Lint Engine)](https://talira.ai/catalog/ale-asynchronous-lint-engine-rgdh2f1a.md): Asynchronous linting, fixing and LSP support for Vim and Neovim
- [Stylelint](https://talira.ai/catalog/stylelint-3yp7yn7p.md): A CSS linter that catches errors and enforces conventions in your stylesheets
- [eslint-plugin-n](https://talira.ai/catalog/eslint-plugin-n-4eqryac9.md): Additional ESLint rules for Node.js

## Sources

[^1]: https://github.com/prettier/eslint-plugin-prettier/blob/main/LICENSE.md (checked 27 Nov 2026)
