18b4cabc0cee1f04754e05373c074f8b4cdab720
* Add draft for 2.1 blog post * Update cspell.json * Update website/blog/2020-08-04-2.1.0.md Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com> * Update website/blog/2020-08-04-2.1.0.md Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com> * Update website/blog/2020-08-04-2.1.0.md Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com> * Update website/blog/2020-08-04-2.1.0.md Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com> * Update website/blog/2020-08-04-2.1.0.md Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com> * Update changelogs * Add author to cspell ignore patterns * Update cspell.json * Fix original changelog * Run draft script * Update * Fix TypeScript on Highlights * Fix heading * Fix author * Fix changelog for 8410 * Fix syntax highlight * Move changelog for 7844 to /scss * Update website/blog/2020-08-21-2.1.0.md Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> * Remove changelog_unreleased * Update filename * Replace to actual version manually Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com> Co-authored-by: fisker Cheung <lionkay@gmail.com> Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
Opinionated Code Formatter
JavaScript
· TypeScript
· Flow
· JSX
· JSON
CSS
· SCSS
· Less
HTML
· Vue
· Angular
GraphQL
· Markdown
· YAML
Your favorite language?
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!
Badge
Show the world you're using Prettier →
[](https://github.com/prettier/prettier)
Contributing
See CONTRIBUTING.md.
Languages
JavaScript
98.6%
CSS
0.9%
Vue
0.2%
HTML
0.2%
MDX
0.1%
