Skip to content
forked from prettier/prettier

Prettier is an opinionated code formatter.

License

Notifications You must be signed in to change notification settings

UnlyEd/prettier

This branch is 5677 commits behind prettier/prettier:main.

Folders and files

NameName
Last commit message
Last commit date
May 29, 2020
Sep 3, 2017
May 31, 2020
May 25, 2020
May 26, 2020
May 31, 2020
May 31, 2020
May 28, 2020
May 26, 2020
May 28, 2020
Apr 3, 2020
Apr 10, 2020
Apr 23, 2020
May 14, 2020
May 29, 2017
Dec 8, 2018
May 7, 2020
Jul 29, 2019
Nov 7, 2018
Apr 5, 2020
May 15, 2019
Oct 27, 2018
Apr 21, 2020
Feb 22, 2019
May 7, 2020
Jan 3, 2019
Mar 24, 2020
Mar 21, 2020
May 8, 2020
Sep 6, 2018
May 11, 2020
Jan 9, 2020
May 28, 2020
Sep 6, 2018
May 6, 2020
May 28, 2020

Repository files navigation

Prettier Banner

Opinionated Code Formatter

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

Github Actions Build Status Github Actions Build Status Github Actions 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.

About

Prettier is an opinionated code formatter.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 83.2%
  • CSS 7.2%
  • TypeScript 4.8%
  • HTML 4.2%
  • Vue 0.6%