An opinionated code formatter (evacuated from NSA/Microsoft Github)
Lucas Azzola abef84684d Add AppVeyor and Blazing to Badges (#4628) | 6 years ago | |
---|---|---|
.circleci | 6 years ago | |
.github | 6 years ago | |
bin | 7 years ago | |
docs | 6 years ago | |
scripts | 6 years ago | |
src | 6 years ago | |
tests | 6 years ago | |
tests_config | 6 years ago | |
tests_integration | 6 years ago | |
website | 6 years ago | |
.appveyor.yml | 6 years ago | |
.codecov.yml | 7 years ago | |
.eslintignore | 6 years ago | |
.eslintrc.yml | 6 years ago | |
.flowconfig | 7 years ago | |
.gitignore | 6 years ago | |
.ignore | 7 years ago | |
.pre-commit-hooks.yaml | 6 years ago | |
.prettierignore | 7 years ago | |
.travis.yml | 6 years ago | |
.yarnrc | 7 years ago | |
CHANGELOG.md | 6 years ago | |
CONTRIBUTING.md | 6 years ago | |
LICENSE | 6 years ago | |
README.md | 6 years ago | |
commands.md | 6 years ago | |
index.js | 6 years ago | |
jest.config.js | 6 years ago | |
package.json | 6 years ago | |
standalone.js | 6 years ago | |
yarn.lock | 6 years ago |
JavaScript · Flow · TypeScript · CSS · SCSS · Less · JSX · Vue · GraphQL · JSON · Markdown · Your favorite language?
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.
foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne());
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!
Show the world you're using Prettier →
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
See CONTRIBUTING.md.