prettier/prettier


Prettier is an opinionated code formatter.

https://prettier.io

License: MIT

Language: JavaScript

Keywords: angular, ast, css, flow, formatter, graphql, html, javascript, json, jsx, less, markdown, prettier, printer, scss, typescript, vue, yaml


Prettier Banner

Opinionated Code Formatter

JavaScript · TypeScript · Flow · JSX · JSON
CSS · SCSS · Less
HTML · Vue · Angular
GraphQL · Markdown · YAML
Your favorite language?

Azure Pipelines Build Status Codecov Coverage Status Blazing Fast
npm version weekly downloads from npm code style: prettier Chat on Gitter Follow Prettier on Twitter

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

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 Prettiercode 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.

Project Statistics

Sourcerank 26
Repository Size 28 MB
Stars 32,271
Forks 1,776
Watchers 394
Open issues 647
Dependencies 2,570
Contributors 413
Tags 92
Created
Last updated
Last pushed

Top Contributors See all

Christopher Chedeau Ika Lucas Duailibe Lucas Azzola James Long Simon Lydell Evilebot Tnawi Joseph Frazier Brian Ng Lipis Jed Fox Lily Scott Davy Duperron Danny Martini Alex Rattray James Henry Karl O'Keeffe Kevin Gibbons Simen Bekkhus Mitermayer Reis

Packages Referencing this Repo

@btmills/prettier
Prettier is an opinionated code formatter
Latest release 1.15.2 - Updated - 32.3K stars
prettier
Prettier is an opinionated code formatter
Latest release 1.17.1 - Updated - 32.3K stars
prettier-reflow
Prettier is an opinionated code formatter
Latest release 1.18.2 - Updated - 32.3K stars
prettier-ts
Prettier is an opinionated code formatter
Latest release 1.17.1 - Updated - 32.3K stars
prettier-cli
WIP - Command line interface for Prettier
Latest release 0.1.0 - Published - 32.3K stars
chronstruct-prettier
Prettier fork for Chronstruct
Latest release 1.10.2 - Published - 32.3K stars
@oigroup/prettier-babylon
Prettier is an opinionated JavaScript formatter. Prettier-babylon is prettier with just Babylon a...
Latest release 1.4.5 - Updated - 32.3K stars
prettier-js
Minor mode to format JS code on file save
Latest release 1.18.2 - Published - 32.3K stars
prettier
Prettier is an opinionated code formatter.
Latest release 1.18.2 - Published - 32.3K stars
lapanoid-prettier
Prettier is an opinionated JavaScript formatter
Latest release 0.14.1 - Published - 32.3K stars
@banyaner/prettier-custom
Prettier is an opinionated code formatter
Latest release 1.18.0 - Published - 32.3K stars
@changjinglu/prettier
Prettier is an opinionated code formatter
Latest release 1.16.0-dev - Published - 32.3K stars
five9-prettier
Prettier is an opinionated code formatter
Latest release 1.20.0-dev - Updated - 32.3K stars
@yuhr/prettier
Prettier is an opinionated code formatter
Latest release 1.16.0-dev - Published - 32.3K stars
prettierr
Prettier is an opinionated code formatter
Latest release 1.15.2-dev - Updated - 32.3K stars
@citycide/prettier-babylon
Prettier is an opinionated JavaScript formatter. Prettier-babylon is prettier with just Babylon a...
Latest release 1.4.7 - Updated - 32.3K stars
org.webjars.npm:prettier
WebJar for prettier
Latest release 1.13.5 - Updated - 32.3K stars

Recent Tags See all

1.18.2 June 07, 2019
remove June 07, 2019
1.18.1 June 07, 2019
1.18.0 June 06, 2019
1.17.1 May 13, 2019
1.17.0 April 12, 2019
1.17.0 April 12, 2019
1.16.4 February 03, 2019
1.16.3 January 31, 2019
1.16.2 January 30, 2019
1.16.1 January 22, 2019
1.16.0 January 20, 2019
1.16.0 January 20, 2019
1.15.3 November 30, 2018
1.15.2 November 10, 2018

Interesting Forks See all

arijs/prettier-miscellaneous
Prettier is an opinionated JavaScript formatter.
JavaScript - MIT - Last pushed - 79 stars - 14 forks
cbforks/prettierx-0.4.x
less opinionated code formatter fork of prettier
This repository is no longer maintained - Last pushed
Developerayo/prettier
Prettier is an opinionated code formatter.
JavaScript - MIT - Updated - 4 stars
enhancv/prettier
Prettier is an opinionated code formatter.
JavaScript - MIT - Last pushed - 2 stars
Automattic/calypso-prettier
Prettier is an opinionated JavaScript formatter.
JavaScript - MIT - Last pushed - 2 stars

Something wrong with this page? Make a suggestion

Last synced: 2019-05-01 23:03:47 UTC

Login to resync this repository