* Sync README -> docs/options.md * Sync README -> docs/*.md * Misc fixups * Remove markdown-toc * Remove insert-pragma from ToC * Never again! * Move all docs to ./docs * Remove yarn toc * Fix inter-doc links * Fix links in footer * Clean up README.md * Add basic description to README.md * Use flat badges * Move editor guides to website * Improve prettier-ignore docs * Fixup bad find/replace * Add JSON to README * Fix custom parser API link * Fixup GitHub centering, add downloads badge * Add 1.8 docs * docs(website): mention markdown on homepage (#1) * Add intro * Add watching-files.md * Fix markdown syntax highlighting * Switch back to .md links
28 lines
460 B
Markdown
28 lines
460 B
Markdown
---
|
|
id: install
|
|
title: Install
|
|
---
|
|
|
|
Install with `yarn`:
|
|
|
|
```
|
|
yarn add prettier --dev --exact
|
|
```
|
|
|
|
You can install it globally if you like:
|
|
|
|
```
|
|
yarn global add prettier
|
|
```
|
|
|
|
*We're using `yarn` but you can use `npm` if you like:*
|
|
|
|
```
|
|
npm install --save-dev --save-exact prettier
|
|
# or globally
|
|
npm install --global prettier
|
|
```
|
|
|
|
> We recommend pinning an exact version of prettier in your `package.json`
|
|
> as we introduce stylistic changes in patch releases.
|