Hacker ApprovedDepartments

Prettier

Ranked 4 of 7 code formatters by recommenders

Widely used formatter giving consistent, deterministic style automatically across projects. Critics find it slow, rigid, and hard to configure; some prefer Oxfmt.

Widely used formatter giving consistent, deterministic style automatically across projects. Critics find it slow, rigid, and hard to configure; some prefer Oxfmt.

26 people gave an opinion

recommend it
16
criticize it
10
approval share
62%
Each figure is one person. RecommendsCriticizes

Recommended in 8 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: not recommended
  4. February 2026: recommended
  5. March 2026: not recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: not recommended
  11. September 2026: not recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it doesn’t carry the badge

  • 16 people recommend itNeeds 10 or more, met.
  • 1.6 recommenders for every criticNeeds 2 to 1 or better, not met.
  • Recommended in 8 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Standard, deterministic formatting rules

    “Formatting should be handled by deterministic tools with formally specified rules like prettier.”

    Comment from 7 May 2026 in “Appearing Productive in the Workplace”

    “defer to a standard formatting tool such as prettier”

    Comment from 7 Jun 2026 in “Stop Using Conventional Commits”

    “It's easily fixed with a formatter like prettier”

    Comment from 20 Oct 2026 in “SlopCodeBench 10/2026 – Opus 5.5, Astra wins overall, xhigh considered harmful”
  • Used as a quality gate

    “The ESLint, Prettier, strict TS, Knip (dead code detection), and Vitest configs act as quality gates.”

    Comment from 17 Feb 2026 in “Show HN: I built a tool to un-dumb Claude Code's CLI output (Local Log Viewer)”

    “Occasionally I use prettier to remove indentation - the LLM makes a lot less edit errors that way.”

    Comment from 9 Apr 2026 in “Reallocating $100/Month Claude Code Spend to Zed and OpenRouter”

What people warn about

Each mark is one comment

  • Hard to configure or extend

    “Stuff like Prettier is purposely unconfigurable and leads to the unreadability of JS code across the ecosystem.”

    Comment from 31 Dec 2025 in “Five Years of Tinygrad”

    “Prettier's plugin API is one of the worst APIs I've ever worked with.”

    Comment from 2 Jul 2026 in “Vite+ Beta”

    “you need to load a different set of prettier rules”

    Comment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

Other code formatters people recommend

The four most recommended other code formatters, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Prettier compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
gofmt26584%10—Approved
Black18675%6—Approved
FracturedJson18290%2——
PrettierThis page161062%8——
Oxfmt14961%6——
See all 7 code formatters, ranked

What people said

25 of the 28 comments that mention it, newest first. Each links to the original comment.

“eslint/prettier with oxlint/oxfmt”

CriticizesComment from 26 Oct 2026 in “Ask HN: How fast is your CI these days?”

“It's easily fixed with a formatter like prettier”

RecommendsComment from 20 Oct 2026 in “SlopCodeBench 10/2026 – Opus 5.5, Astra wins overall, xhigh considered harmful”

“it's tiring that it's yet another dependency to remember to add and configure in a new node project”

MixedComment from 6 Oct 2026 in “Friendship ended with Deno, now Node is my best friend”

“the OCD-afflicted prettier”

CriticizesComment from 6 Oct 2026 in “Friendship ended with Deno, now Node is my best friend”

“Oxfmt instead of prettier.”

MixedComment from 6 Oct 2026 in “Friendship ended with Deno, now Node is my best friend”

“you need to load a different set of prettier rules”

CriticizesComment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

“prettier -> oxfmt (but in rust, and fast)”

MixedComment from 2 Jul 2026 in “Vite+ Beta”

“I find 90% of the times the code is actually uglier when using it.”

CriticizesComment from 2 Jul 2026 in “Vite+ Beta”

“Prettier's plugin API is one of the worst APIs I've ever worked with.”

CriticizesComment from 2 Jul 2026 in “Vite+ Beta”

“native replacements for eslint and prettier”

MixedComment from 2 Jul 2026 in “Vite+ Beta”

“defer to a standard formatting tool such as prettier”

RecommendsComment from 7 Jun 2026 in “Stop Using Conventional Commits”

“the time to process a codebase went from like way over a minute with the old tools”

CriticizesComment from 20 May 2026 in “Node.js 26.0.0 (Now with Temporal)”

“Formatting should be handled by deterministic tools with formally specified rules like prettier.”

RecommendsComment from 7 May 2026 in “Appearing Productive in the Workplace”

“Occasionally I use prettier to remove indentation - the LLM makes a lot less edit errors that way.”

RecommendsComment from 9 Apr 2026 in “Reallocating $100/Month Claude Code Spend to Zed and OpenRouter”

“running ESLint and Prettier on your project and having a full build and formatting iteration take like 2 minutes”

CriticizesComment from 28 Mar 2026 in “Make macOS consistently bad (unironically)”

“you would have to drag me kicking and screaming back to ESLint and Prettier”

CriticizesComment from 21 Mar 2026 in “404 Deno CEO not found”

“I feel the same way about tools like ESLint and Prettier”

CriticizesComment from 13 Mar 2026 in “Vite 8.0 Is Out”

“I've never been bothered by the performance of standard tooling”

RecommendsComment from 18 Feb 2026 in “Fastest Front End Tooling for Humans and AI”

“The ESLint, Prettier, strict TS, Knip (dead code detection), and Vitest configs act as quality gates.”

RecommendsComment from 17 Feb 2026 in “Show HN: I built a tool to un-dumb Claude Code's CLI output (Local Log Viewer)”

“Throw away Prettier’s Markdown formatting, by the way, it’s terrible”

CriticizesComment from 10 Jan 2026 in “How Markdown Took over the World”

“Stuff like Prettier is purposely unconfigurable and leads to the unreadability of JS code across the ecosystem.”

CriticizesComment from 31 Dec 2025 in “Five Years of Tinygrad”

“I was trying to tell someone to use prettier, the specific program”

RecommendsComment from 14 Dec 2025 in “Programmers and software developers lost the plot on naming their tools”

“in my experience it's much better than the alternative”

RecommendsComment from 13 Dec 2025 in “I tried Gleam for Advent of Code”

“but it does fix unquoted keys, floats, trailing comma, and single”

MixedComment from 2 Nov 2025 in “Show HN: Duper – The Format That's Super”

“Prettier always rewrites the entire file from scratch with the parsed AST”

CriticizesComment from 2 Nov 2025 on Hacker News

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.