Prettier fixed for Allman brace style
 
 
 
 
 
 
Go to file
Lipis 2310c4070f
feat: Add support for no-response-bot (#3873)
good luck
2018-02-05 22:33:20 +01:00
.github feat: Add support for no-response-bot (#3873) 2018-02-05 22:33:20 +01:00
bin refactor(cli): separate files and make it pure as possible (#2730) 2017-09-03 19:21:06 +10:00
docs Add option philosophy to docs (#3855) 2018-02-02 08:07:58 +01:00
scripts Run production tests on npm package (#3730) 2018-01-13 03:19:20 +11:00
src refactor(printer-postcss): use `node` name and implement helper functions (#3893) 2018-02-05 16:42:32 +03:00
tests tests(css): custom media (#3879) 2018-02-03 18:04:59 +03:00
tests_config Run production tests on npm package (#3730) 2018-01-13 03:19:20 +11:00
tests_integration feat: support external options (#3775) 2018-01-28 00:24:25 +08:00
website Add 3YOURMIND to users.yml (#3881) 2018-02-03 09:35:14 -05:00
.codecov.yml Improve coverage and remove some dead code (#2504) 2017-07-17 23:31:42 +10:00
.eslintignore chore(eslint): ignore `/tests_integration/cli/` 2017-09-03 21:50:19 +08:00
.eslintrc.yml Add `root: true` to .eslintrc.yml (#3519) 2017-12-18 23:46:28 +11:00
.flowconfig Build the dist/ with rollup (#1794) 2017-05-28 21:49:41 -07:00
.gitignore Ignore package-lock.json (#3840) 2018-01-31 19:51:03 +11:00
.ignore Remove .npmignore and update .ignore (#2560) 2017-07-31 08:47:00 +10:00
.pre-commit-hooks.yaml Use `files:` over `types:` in pre-commit configuration (#2759) 2017-09-05 12:17:02 -07:00
.prettierignore Implement getSupportInfo() and use it for inference (#3033) 2017-11-03 18:06:25 +11:00
.travis.yml Run production tests on npm package (#3730) 2018-01-13 03:19:20 +11:00
.yarnrc Add .yarnrc to use exact versions (#2016) 2017-06-06 18:04:52 -07:00
CHANGELOG.md 1.10.2 2018-01-10 23:55:34 -02:00
CONTRIBUTING.md Prettify style in playground and code block languages (#3419) 2017-12-05 19:48:11 -07:00
LICENSE Happy new year 2018! (#3620) 2018-01-01 00:41:21 +01:00
README.md Link to the plugin docs in the README (#3762) 2018-01-18 08:54:36 +11:00
commands.md fix(javascript): ternary with `--use-tabs` (#3745) 2018-01-26 10:02:42 +08:00
index.js fix: Proper case for Prettier, JavaScript, TypeScript, GitHub, Less (#3848) 2018-01-31 11:56:05 +01:00
jest.config.js Automatically load plugins from package.json (#3624) 2018-01-05 21:09:51 +11:00
package.json fix(css): at rules improve formatting and tests (#3828) 2018-02-02 18:06:47 +03:00
yarn.lock fix(css): at rules improve formatting and tests (#3828) 2018-02-02 18:06:47 +03:00

README.md

Prettier Banner

Opinionated Code Formatter

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

Gitter Travis Codecov npm version monthly downloads code style: prettier 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.