Discover / Development

Prettier

by prettierJavaScript

Opinionated code formatter for many languages.

Repositorystable

Maturity: stable because 10y old, 3.9.6 released 13d ago. Derived from release and commit history, not a rating.

Stars
52k
Forks
4.9k
Downloads / mo
Last commit
2026-08-03
License
MIT
Open issues
1.4k

Market and trust evidence

Edition not yet matched

No exact skills.sh identity match is available for this repository. Repository adoption and freshness remain visible above; install momentum is not inferred.

Trust analysis is a screening signal, not a security warranty. Read the ranking and trust methodology.

In practice

Written by AI from this repository’s README · medium confidence

Teams arguing over formatting in code review and leaving nit picky comments on every pull request.

Use it when

Use it when you want one enforced style across JS, TS, CSS, HTML, GraphQL, Markdown or YAML, applied on save or in CI.

Not the right pick when

Not a linter; it will not find problematic code patterns, so it does not replace a static analysis tool.

Capabilities

  • reprints code with a consistent enforced style
  • wraps code according to maximum line length
  • runs in your editor on save
  • runs in a pre-commit hook
  • runs in CI environments to check formatting
  • covers JavaScript, TypeScript, CSS, HTML, GraphQL, Markdown and YAML

Cost: Free and open source

Install

Derived from the published package name in the repository, not from a model.

Video walkthroughs

Third-party YouTube uploads matched to this tool by title, channel and repository name on 2026-08-03. Not made, reviewed or endorsed by SkillPilot. View counts and publish months are as of the match date and the month is approximate. Nothing loads from YouTube until you press play.

What the repository ships

Has testsHas docsCI configured

Detected from the actual files in the repository root.

Latest release 3.9.6

Published 2026-07-21

What's Changed

  • Preserve quotes for methods named new (https://github.com/prettier/prettier/pull/19621 by @kovsu)
  • Support import defer in typescript parser (https://github.com/prettier/prettier/pull/19624, https://github.com/prettier/prettier/pull/19675 by @fisker)
  • Added a new official plugin @prettier/plugin-yuku 🚀 (https://github.com/prettier/prettier/pull/19628, https://github.com/prettier/prettier/pull/19629 by @fisker)

🔗 Changelog

Tags

README

Prettier Banner

<h2 align="center">Opinionated Code Formatter</h2>

<p align="center">

<em>

JavaScript

· TypeScript

· Flow

· JSX

· JSON

</em>

<br />

<em>

CSS

· SCSS

· Less

</em>

<br />

<em>

HTML

· Vue

· Angular

</em>

<br />

<em>

GraphQL

· Markdown

· YAML

</em>

<br />

<em>

<a href="https://prettier.io/docs/plugins">

Your favorite language?

</a>

</em>

</p>

<p align="center">

<a href="https://github.com/prettier/prettier/actions?query=branch%3Amain">

<img alt="CI Status" src="https://img.shields.io/github/check-runs/prettier/prettier/main?style=flat-square&label=CI"></a>

<a href="https://codecov.io/gh/prettier/prettier">

<img alt="Coverage Status" src="https://img.shields.io/codecov/c/github/prettier/prettier.svg?style=flat-square"></a>

<a href="https://x.com/acdlite/status/974390255393505280">

<img alt="Blazing Fast" src="https://img.shields.io/badge/speed-blazing%20%F0%9F%94%A5-brightgreen.svg?style=flat-square"></a>

<br/>

<a href="https://www.npmjs.com/package/prettier">

<img alt="npm version" src="https://img.shields.io/npm/v/prettier.svg?style=flat-square"></a>

<a href="https://www.npmjs.com/package/prettier">

<img alt="weekly downloads from npm" src="https://img.shields.io/npm/dw/prettier.svg?style=flat-square"></a>

<a href="https://github.com/prettier/prettier#badge">

<img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square"></a>

<a href="https://x.com/intent/follow?screen_name=PrettierCode">

<img alt="Follow Prettier on X" src="https://img.shields.io/badge/%40PrettierCode-9f9f9f?style=flat-square&logo=x&labelColor=555"></a>

</p>

Intro

Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.

Input

<!-- prettier-ignore -->


foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne());

Output


foo(
  reallyLongArg(),
  omgSoManyParameters(),
  IShouldRefactorThis(),
  isThereSeriouslyAnotherOne(),
);

Prettier can be run in your editor on-save, in a pre-commit hook, or in CI environments to ensure your codebase has a consistent style without devs ever having to post a nit-picky comment on a code review ever again!


Documentation

Install ·

Options ·

CLI ·

API

Playground


Badge

Show the world you're using _Prettier_ → code style: prettier


[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

Contributing

See CONTRIBUTING.md.

Related tools