sourcecred/flow-typed/npm
William Chargin c162813a5e
Fix Prettier deprecations and typings post upgrade (#1307)
Summary:
In #1194, we upgraded Prettier from 1.13.4 to 1.18.2, but this upgrades
past <https://github.com/prettier/prettier/pull/5647>, which was first
released in Prettier 1.16.0. This commit fixes the uses of deprecated
code introduced as a result. It also upgrades the type definitions to
match, via `flow-typed install prettier@1.18.2`.

Addresses part of #1308.

Test Plan:
Prior to this commit, running `yarn unit` would print

```
    console.warn node_modules/prettier/index.js:7934
      { parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }.
```

in two test cases; it no longer prints any such warnings. Furthermore,
running `git grep 'parser.*babylon'` no longer finds any matches.

wchargin-branch: prettier-deprecations
2019-08-22 09:00:25 -07:00
..
better-sqlite3_vx.x.x.js Update better-sqlite3 to v5 2019-07-04 20:31:32 +03:00
chalk_v2.x.x.js flow: add libdefs that have clean updates (#1311) 2019-08-22 08:49:40 -07:00
deep-freeze_v0.0.1.js flow: add libdefs for `deep-freeze` (#1310) 2019-08-22 08:57:16 -07:00
dotenv_v4.x.x.js Add all available flow-typed libdefs (#548) 2018-07-27 17:23:24 -07:00
enzyme_v3.x.x.js libdefs: update libdefs for `enzyme` (#1314) 2019-08-22 08:36:04 -07:00
express_v4.16.x.js flow: update libdefs for `express` (#1312) 2019-08-22 08:45:52 -07:00
flow-bin_v0.x.x.js flow: add libdefs that have clean updates (#1311) 2019-08-22 08:49:40 -07:00
isomorphic-fetch_v2.x.x.js flow: add libdefs that have clean updates (#1311) 2019-08-22 08:49:40 -07:00
jest_v24.x.x.js flow: add libdefs that have clean updates (#1311) 2019-08-22 08:49:40 -07:00
mkdirp_v0.5.x.js Add all available flow-typed libdefs (#548) 2018-07-27 17:23:24 -07:00
object-assign_v4.x.x.js flow: add libdefs that have clean updates (#1311) 2019-08-22 08:49:40 -07:00
prettier_v1.x.x.js Fix Prettier deprecations and typings post upgrade (#1307) 2019-08-22 09:00:25 -07:00
react-scripts_vx.x.x.js Move package json to root (#37) 2018-02-26 22:32:23 -08:00
rimraf_v2.x.x.js flow: add libdefs that have clean updates (#1311) 2019-08-22 08:49:40 -07:00