Rationale
This monorepo has a Prettier config that affects formatting of all files, including the official templates. However, because this config isn't included in the templates, running Prettier (as recommended in the docs) will change the formatting of the app, which can be confusing or inconvenient.
Changes
Modified the init script to copy the monorepo's Prettier config to package.json
(for any template). In the future we may want to make this extensible if third party templates need to set their own Prettier configs.
Testing
Created an example app with yarn create-react-app my-app
, confirming that the Prettier config was created in package.json and running Prettier does not reformat the files (as the formatting is already correct).