Prettier fixed for Allman brace style
 
 
 
 
 
 
Go to file
Lucas Duailibe 54b1f8562d
Introduce Release script (#4631)
2018-06-05 16:37:52 -03:00
.circleci Store artifacts in CircleCI (#4502) 2018-05-18 12:22:47 -03:00
.github docs(issue_template): bump version to 1.13.4 2018-06-01 20:07:17 +08:00
bin refactor(cli): separate files and make it pure as possible (#2730) 2017-09-03 19:21:06 +10:00
docs chore: fix 2 TODOs (#4591) 2018-05-29 22:05:25 +08:00
scripts Introduce Release script (#4631) 2018-06-05 16:37:52 -03:00
src Inline _ or $ in the root of a method chain (#4621) 2018-06-01 12:51:06 -03:00
tests fix(typescript): preserve decorator on interface (#4632) 2018-06-05 00:08:24 +08:00
tests_config Use destructuring for imports (#4554) 2018-05-27 21:36:12 +10:00
tests_integration fix(cli): no regression for --debug-check + --list-different (#4600) 2018-05-31 00:42:26 +08:00
website Redirect the broken 1.13 blog link to the correct one (#4570) 2018-05-28 07:24:09 -04:00
.appveyor.yml Get tests passing on Windows (#4579) 2018-05-28 21:46:55 +10:00
.codecov.yml Improve coverage and remove some dead code (#2504) 2017-07-17 23:31:42 +10:00
.eslintignore Introduce Release script (#4631) 2018-06-05 16:37:52 -03:00
.eslintrc.yml lint fixes 2018-04-17 18:09:36 -03:00
.flowconfig Build the dist/ with rollup (#1794) 2017-05-28 21:49:41 -07:00
.gitignore Introduce Release script (#4631) 2018-06-05 16:37:52 -03:00
.ignore Remove .npmignore and update .ignore (#2560) 2017-07-31 08:47:00 +10:00
.pre-commit-hooks.yaml Add support for markdown with pre-commit (#4021) 2018-02-21 12:10:25 -05:00
.prettierignore Implement getSupportInfo() and use it for inference (#3033) 2017-11-03 18:06:25 +11:00
.travis.yml Drop node 4 support for development (#4537) 2018-05-24 15:49:57 -03:00
.yarnrc Add .yarnrc to use exact versions (#2016) 2017-06-06 18:04:52 -07:00
CHANGELOG.md chore(release): 1.13.4 2018-06-01 19:59:12 +08:00
CONTRIBUTING.md Format docs with Prettier 1.13 2018-05-27 15:38:31 -03:00
LICENSE Happy new year 2018! (#3620) 2018-01-01 00:41:21 +01:00
README.md Add AppVeyor and Blazing to Badges (#4628) 2018-06-04 14:16:06 +10:00
commands.md Format docs with Prettier 1.13 2018-05-27 15:38:31 -03:00
index.js Don't default parser to babylon (#4528) 2018-05-23 16:55:06 -03:00
jest.config.js Use destructuring for imports (#4554) 2018-05-27 21:36:12 +10:00
package.json fix(typescript): preserve decorator on interface (#4632) 2018-06-05 00:08:24 +08:00
standalone.js Add formatWithCursor, check, doc, and util to the standalone build (#4556) 2018-05-26 17:25:36 -06:00
yarn.lock fix(typescript): preserve decorator on interface (#4632) 2018-06-05 00:08:24 +08:00

README.md

Prettier Banner

Opinionated Code Formatter

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

Travis CI Build Status CircleCI Build Status AppVeyor Build Status Codecov Coverage Status Blazing Fast
npm version monthly 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.