From ae21d6038686c867e95b336460f5ca2ecb25c278 Mon Sep 17 00:00:00 2001 From: Lucas Azzola Date: Thu, 28 Sep 2017 14:34:32 +1000 Subject: [PATCH] Recommend pinning prettier version (#2920) * Recommend pinning prettier version * Change from -E to --exact/--save-exact --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f6e31165a..6e8860474 100644 --- a/README.md +++ b/README.md @@ -203,7 +203,7 @@ Prettier does nothing to help with those kind of rules. They are also the most i Install: ``` -yarn add prettier --dev +yarn add prettier --dev --exact ``` You can install it globally if you like: @@ -215,9 +215,14 @@ yarn global add prettier *We're using `yarn` but you can use `npm` if you like:* ``` -npm install [--save-dev|--global] prettier +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. + ### CLI Run Prettier through the CLI with this script. Run it without any