From daee51d1ed2cdb7897fe60e226d7c5ebecb1072a Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Sun, 15 Oct 2017 10:42:53 -0700 Subject: [PATCH] Change indentation of package.json including Jest to 2 spaces Summary: Thanks for submitting a PR! Please read these instructions carefully: - [x] Explain the **motivation** for making this change. - [x] Provide a **test plan** demonstrating that the code is solid. - [x] Match the **code formatting** of the rest of the codebase. - [x] Target the `master` branch, NOT a "stable" branch. Indentation of package.json including Jest is a hard tab. Since package.json generated by npm has two spaces, I want to make it the same. ![package.json diff](https://cloud.githubusercontent.com/assets/12539/24228268/80421416-0fb6-11e7-9af3-d034c1756379.png) Sign the [CLA][2], if you haven't already. Small pull requests are much easier to review and more likely to get merged. Make sure the PR does only one thing, otherwise please split it. Make sure all **tests pass** on both [Travis][3] and [Circle CI][4]. PRs that break tests are unlikely to be merged. For more info, see the ["Pull Requests"][5] section of our "Contributing" guidelines. [1]: https://medium.com/martinkonicek/what-is-a-test-plan-8bfc840ec171#.y9lcuqqi9 [2]: https://code.facebook.com/cla [3]: https://travis-ci.org/facebook/react-native [4]: http://circleci.com/gh/facebook/react-native [5]: https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md#pull-requests Closes https://github.com/facebook/react-native/pull/13099 Differential Revision: D4770208 Pulled By: ericnakagawa fbshipit-source-id: 13f91068e40610473cd7b65e182a0fdc59af03ba --- init/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/init.js b/init/init.js index 3537a97ba..7ea2f3632 100644 --- a/init/init.js +++ b/init/init.js @@ -113,7 +113,7 @@ function addJestToPackageJson(destinationRoot) { packageJSON.jest = { preset: 'react-native' }; - fs.writeFileSync(packageJSONPath, JSON.stringify(packageJSON, null, '\t')); + fs.writeFileSync(packageJSONPath, JSON.stringify(packageJSON, null, 2)); } module.exports = init;