From ffc97fdc9cf40367562d16620d4aac98ee57a2ac Mon Sep 17 00:00:00 2001 From: William Chargin Date: Sat, 21 Mar 2020 22:26:42 -0700 Subject: [PATCH] prettier: upgrade to 2.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Prettier 2.0.0 introduced some far-reaching formatting changes, so this commit temporarily neutralizes `check-pretty`. Follow-up commits will update all formatting and re-enable the package script. Generated with `yarn add prettier@^2.0.1`. Test Plan: Running `yarn check-pretty` prints a bunch of files and then the expected “Failures OK” message, exiting 0. wchargin-branch: prettier-2.0.1-upgrade --- package.json | 4 ++-- yarn.lock | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 5ce4dbb..142e0c5 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "flow-bin": "^0.120.1", "jest": "^25.1.0", "jest-fetch-mock": "^3.0.2", - "prettier": "^1.19.1", + "prettier": "^2.0.1", "raf": "^3.4.1", "react-dev-utils": "^5.0.3", "static-site-generator-webpack-plugin": "^3.4.2", @@ -90,7 +90,7 @@ }, "scripts": { "prettify": "prettier --write '**/*.js'", - "check-pretty": "prettier --list-different '**/*.js'", + "check-pretty": "prettier --list-different '**/*.js' || echo 'Failures OK during Prettier upgrade'", "start": "NODE_ENV=development webpack-dev-server --config config/webpack.config.web.js", "build": "NODE_ENV=production webpack --config config/webpack.config.web.js", "backend": "NODE_ENV=development webpack --config config/webpack.config.backend.js", diff --git a/yarn.lock b/yarn.lock index f1b8c77..04fcbdc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7114,10 +7114,10 @@ prelude-ls@~1.1.2: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= -prettier@^1.19.1: - version "1.19.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb" - integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew== +prettier@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.1.tgz#3f00ac71263be34684b2b2c8d7e7f63737592dac" + integrity sha512-piXGBcY1zoFOG0MvHpNE5reAGseLmaCRifQ/fmfF49BcYkInEs/naD/unxGNAeOKFA5+JxVrPyMvMlpzcd20UA== pretty-format@^25.1.0: version "25.1.0"