PROVIDER Β· The opinionated code formatter

Prettier

Prettier is the opinionated formatter applying built-in rules across a dozen languages, whose format-on-save with the eslint-config-prettier split keeps reviews focused on logic.

Developer Tools International 2026.11.15
Developer Tools International The opinionated code formatter
4.6pts

Pros

4 items
Opinionated design needs almost no configuration, ending style arguments
A dozen languages and formats covered by one frontend tool
Format on save keeps editor and CI output identical
Clean split with ESLint plus eslint-config-prettier removing conflicts

Cons

4 items
Style is not deeply customisable, so some habits must adapt
Occasional disputes over very long strings, template syntax, and comment layout
Full reformatting creates huge diffs that obscure history
Formatting only, leaving quality checks to ESLint

Product Information

prettier
Category Developer Tools
Company Prettier
Service Region International
Official Website https://prettier.io/
Recommendation Score 4.6 pts
Published 2026-11-15

Detailed Notes

Overview

Prettier was released in 2017 as an opinionated code formatter that barely exposes style options and reprints code by built-in rules, covering JavaScript, TypeScript, CSS, HTML, JSON, Markdown, YAML, and more.

For Developer Tools work the value is ending formatting debates, since reviews focus on logic rather than indentation and line breaks, format on save keeps output identical across the team, and the split with ESLint is clean where Prettier formats and ESLint checks quality with eslint-config-prettier removing conflicts.

Note the trade-offs, because fixed opinions such as semicolons and quotes must be accepted though a few switches exist, long strings and unusual syntax occasionally format poorly, and full-repository reformatting creates huge diffs best committed separately and excluded through .git-blame-ignore-revs.

Core Strengths

  • Opinionated design needs almost no configuration, ending style arguments
  • A dozen languages and formats covered by one frontend tool
  • Format on save keeps editor and CI output identical
  • Clean split with ESLint plus eslint-config-prettier removing conflicts

Product Ecosystem

Formatting engine

Reprints code from the AST preserving logic while adjusting layout for snippets or whole directories.

Integration

Editor plugins on save, Git hooks before commit, and --check validation in CI.

Ignores and exceptions

.prettierignore excludes generated files while a few options such as printWidth and singleQuote follow team preference.

Drawbacks

  • Style is not deeply customisable, so some habits must adapt
  • Occasional disputes over very long strings, template syntax, and comment layout
  • Full reformatting creates huge diffs that obscure history
  • Formatting only, leaving quality checks to ESLint

Use Cases

  • Frontend and Node projects (β˜…β˜…β˜…β˜…β˜…) - An ecosystem fixture
  • Unified style across multi-language repos (β˜…β˜…β˜…β˜…β˜…) - One tool covers all
  • Reducing review noise in teams (β˜…β˜…β˜…β˜…β˜…) - Logic over indentation
  • Teams needing heavy style customisation (β˜…β˜…) - Use another formatter

Pricing

Plan Price Scope
Prettier $0 MIT licensed, entirely free
Editor plugins $0 Official and community plugins free
CI validation Runner resources Negligible overhead

Entirely free with negligible overhead, so the only planning is the review and blame cost of a one-off full reformat, best committed separately and excluded through a blame ignore list.

FAQ

  • Is Prettier or ESLint essential? Prettier for formatting consistency and ESLint for quality checks, with modern frontend projects usually needing both.

  • How is Git history protected from reformatting? Commit the full reformat separately, add it to .git-blame-ignore-revs, and blame skips it automatically.

  • Can only changed files be formatted? Yes with lint-staged and husky formatting staged files before commit to avoid whole-repo churn.

Visit Prettier Website β†’ https://prettier.io/
Visit Website β†—