9a1b57587d3fc220bd142eea7e4fd8a54bca13fc
* Add 1.10 blog post Copied from releases page * Change a few things * Add overview of changes * Lint docs * Scaffold out release notes * Add prettier-ignores * docs: add missing references * docs: fix heading level * docs: fix example * Document plugin API * Use shellsession * docs: fix example * docs: fix links * Fix heading level * change: ts upgrade -> numeric separator support Instead of mentioning we updated the typescript version, we should emphasize on what value we added to users * Fix repeated phrase * add comment type annotation explanation * Add note on no more wrapping () JSX elements * Grammar * Add more release notes * Fill out remaining release notes * Fix lint * Add verb * Fix heading level * Update 2018-01-10-1.10.0.md * Update 2018-01-10-1.10.0.md * Add twitter buttons * docs: add note for #3694 * Fix cake
Opinionated Code Formatter
JavaScript · Flow · TypeScript · CSS · SCSS · Less · JSX · Vue · GraphQL · JSON · Markdown
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%
