Prettier fixed for Allman brace style
 
 
 
 
 
 
Go to file
vrde 81a72cc2d6 Add more information on how to configure ALE (#5454)
Docs on how to configure Prettier with ALE didn't work out of the box for me, since multiple linters with conflicting configurations were run. This PR invite users to explicitly disable default linters.

Fix #5447 

- [x] I’ve read the [contributing guidelines](https://github.com/prettier/prettier/blob/master/CONTRIBUTING.md).
2018-11-12 22:01:30 +02:00
.circleci Report test summaries to CircleCI (#4704) 2018-07-07 12:11:04 -04:00
.github Release 1.15.2 2018-11-11 01:08:51 +08:00
bin refactor(cli): separate files and make it pure as possible (#2730) 2017-09-03 19:21:06 +10:00
docs Add more information on how to configure ALE (#5454) 2018-11-12 22:01:30 +02:00
scripts feat: support HTML/Vue/Angular (#5259) 2018-11-04 23:03:07 +08:00
src fix(javascript): fix locEnd for VariableDeclaration caused by --no-semi (#5434) 2018-11-11 00:26:11 +08:00
tests fix(javascript): fix locEnd for VariableDeclaration caused by --no-semi (#5434) 2018-11-11 00:26:11 +08:00
tests_config Add option to enforce certain line endings (#5327) 2018-11-06 22:47:13 +08:00
tests_integration fix(markdown): handle CRLF correctly (#5414) 2018-11-11 00:24:37 +08:00
website Bump Prettier dependency to 1.15.0 2018-11-07 09:12:25 +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 docs(blog): 1.15 release (#5296) 2018-11-07 09:09:04 +08: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 chore(yarn): disable integrity migration 2018-10-27 21:01:26 +08:00
CHANGELOG.md Release 1.15.2 2018-11-11 01:08:51 +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 docs(blog): 1.15 release (#5296) 2018-11-07 09:09:04 +08:00
commands.md Add a new `trim` command to trim whitespaces in the current line (#4772) 2018-10-06 20:18:52 +08:00
index.js refactor: move index.js and standalone.js to src (#5054) 2018-09-06 13:51:18 +08:00
jest.config.js chore: extract jest snapshot serializers (#5034) 2018-09-01 12:11:19 +08:00
package.json Bump Prettier dependency to 1.15.2 2018-11-11 01:10:29 +08:00
standalone.js refactor: move index.js and standalone.js to src (#5054) 2018-09-06 13:51:18 +08:00
yarn.lock Bump Prettier dependency to 1.15.2 2018-11-11 01:10:29 +08:00

README.md

Prettier Banner

Opinionated Code Formatter

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

Travis CI Build Status CircleCI Build Status AppVeyor 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.