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
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
enzyme_v3.x.x.js
express_v4.16.x.js
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
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
rimraf_v2.x.x.js flow: add libdefs that have clean updates (#1311) 2019-08-22 08:49:40 -07:00