Prettier fixed for Allman brace style
 
 
 
 
 
 
Go to file
Jed Fox a687b9383b
Add a label that exempts issues from auto-locking (#4987)
* Add a label that exempts issues from auto-locking

* Exempt the “awaiting response” label so people can always reply and have their issue reopened
2018-08-19 07:33:20 -04:00
.circleci Report test summaries to CircleCI (#4704) 2018-07-07 12:11:04 -04:00
.github Add a label that exempts issues from auto-locking (#4987) 2018-08-19 07:33:20 -04:00
bin refactor(cli): separate files and make it pure as possible (#2730) 2017-09-03 19:21:06 +10:00
docs fix: update flow support info (#4943) 2018-08-08 23:47:49 +08:00
scripts chore: improve release scripts (#4933) 2018-08-08 23:49:22 +08:00
src Fix ternary format in function call (#4368) 2018-08-15 13:29:04 -04:00
tests Fix ternary format in function call (#4368) 2018-08-15 13:29:04 -04:00
tests_config fix(typescript): use the first error when both failed (#4947) 2018-08-09 10:21:00 +08:00
tests_integration feat: support MDX (#4975) 2018-08-13 22:23:09 +08:00
website feat: support MDX (#4975) 2018-08-13 22:23:09 +08: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 Report test summaries to CircleCI (#4704) 2018-07-07 12:11:04 -04: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 Travis - Allow failures in Node 6 (#4690) 2018-06-14 09:55:31 -03:00
.yarnrc Add .yarnrc to use exact versions (#2016) 2017-06-06 18:04:52 -07:00
CHANGELOG.md Release 1.14.2 2018-08-09 11:04:36 +08:00
CONTRIBUTING.md docs(perf): add performance section to CONTRIBUTING.md (#4846) 2018-07-23 06:20:28 -04:00
LICENSE Happy new year 2018! (#3620) 2018-01-01 00:41:21 +01:00
README.md Update AppVeyor badge to organization (#4828) 2018-07-11 01:12:27 +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 fix(typescript): use the first error when both failed (#4947) 2018-08-09 10:21:00 +08:00
package.json fix(config): better error message for unsupported extension (#4969) 2018-08-11 16:35:18 +08:00
standalone.js chore: enable glimmer parser on preview playground (#4915) 2018-08-01 15:44:37 +08:00
yarn.lock fix(config): better error message for unsupported extension (#4969) 2018-08-11 16:35:18 +08:00

README.md

Prettier Banner

Opinionated Code Formatter

JavaScript · Flow · TypeScript · CSS · SCSS · Less · JSX · Vue · GraphQL · JSON · Markdown · YAML · 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.