peach a19a732be8 commit message | il y a 2 ans | |
---|---|---|
.. | ||
esm | il y a 2 ans | |
LICENSE | il y a 2 ans | |
README.md | il y a 2 ans | |
bin-prettier.js | il y a 2 ans | |
cli.js | il y a 2 ans | |
doc.js | il y a 2 ans | |
index.js | il y a 2 ans | |
package.json | il y a 2 ans | |
parser-angular.js | il y a 2 ans | |
parser-babel.js | il y a 2 ans | |
parser-espree.js | il y a 2 ans | |
parser-flow.js | il y a 2 ans | |
parser-glimmer.js | il y a 2 ans | |
parser-graphql.js | il y a 2 ans | |
parser-html.js | il y a 2 ans | |
parser-markdown.js | il y a 2 ans | |
parser-meriyah.js | il y a 2 ans | |
parser-postcss.js | il y a 2 ans | |
parser-typescript.js | il y a 2 ans | |
parser-yaml.js | il y a 2 ans | |
standalone.js | il y a 2 ans | |
third-party.js | il y a 2 ans |
JavaScript
· TypeScript
· Flow
· JSX
· JSON
CSS
· SCSS
· Less
HTML
· Vue
· Angular
GraphQL
· Markdown
· YAML
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.