From 280e4ce4feee007a3902012eaa22e220f51da936 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Tue, 9 Nov 2021 00:31:38 -0800 Subject: [PATCH] RN: Change `@{ => no}format` in React Files Summary: Instead of using `.prettierrc` to ignore the files sync'd from React, replace `format` with `noformat`. This is necessary because currently, the version of Prettier used in React Native (v2.4.1) differs from the version used in React (v1.19.1). We can revert this when React is upgraded. Changelog: [Internal] Reviewed By: ShikaSD Differential Revision: D32129937 fbshipit-source-id: ca3b379edd732670a9a0b1b20b3f31bdad4b74aa --- .prettierignore | 1 - Libraries/Renderer/shims/ReactFabric.js | 4 ++-- Libraries/Renderer/shims/ReactFeatureFlags.js | 4 ++-- Libraries/Renderer/shims/ReactNative.js | 4 ++-- Libraries/Renderer/shims/ReactNativeTypes.js | 4 ++-- Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js | 4 ++-- Libraries/Renderer/shims/createReactNativeComponentClass.js | 4 ++-- 7 files changed, 12 insertions(+), 13 deletions(-) delete mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index 21ceb82db58..00000000000 --- a/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -Libraries/Renderer/ diff --git a/Libraries/Renderer/shims/ReactFabric.js b/Libraries/Renderer/shims/ReactFabric.js index 3af15551245..e9897f032c3 100644 --- a/Libraries/Renderer/shims/ReactFabric.js +++ b/Libraries/Renderer/shims/ReactFabric.js @@ -4,9 +4,9 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @format + * @noformat * @flow - * @generated SignedSource<<40f01afd3b6d95a617ac8e48748a2a76>> + * @generated SignedSource<> * * This file was sync'd from the facebook/react repository. */ diff --git a/Libraries/Renderer/shims/ReactFeatureFlags.js b/Libraries/Renderer/shims/ReactFeatureFlags.js index 45ce2c7a94d..d7101030a3e 100644 --- a/Libraries/Renderer/shims/ReactFeatureFlags.js +++ b/Libraries/Renderer/shims/ReactFeatureFlags.js @@ -4,9 +4,9 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @format + * @noformat * @flow strict-local - * @generated SignedSource<> + * @generated SignedSource<> * * This file was sync'd from the facebook/react repository. */ diff --git a/Libraries/Renderer/shims/ReactNative.js b/Libraries/Renderer/shims/ReactNative.js index f0c54b8d13b..eb3322c0cff 100644 --- a/Libraries/Renderer/shims/ReactNative.js +++ b/Libraries/Renderer/shims/ReactNative.js @@ -4,9 +4,9 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @format + * @noformat * @flow - * @generated SignedSource<> + * @generated SignedSource<<45ec3626ad048b08dac9b031b02bc0a8>> * * This file was sync'd from the facebook/react repository. */ diff --git a/Libraries/Renderer/shims/ReactNativeTypes.js b/Libraries/Renderer/shims/ReactNativeTypes.js index d0dcd60815f..9c089dcc0e9 100644 --- a/Libraries/Renderer/shims/ReactNativeTypes.js +++ b/Libraries/Renderer/shims/ReactNativeTypes.js @@ -4,9 +4,9 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @format + * @noformat * @flow strict - * @generated SignedSource<<67969011689de134487d7110b6519058>> + * @generated SignedSource<> * * This file was sync'd from the facebook/react repository. */ diff --git a/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js b/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js index b8e08eec174..123f5eae042 100644 --- a/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +++ b/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js @@ -4,9 +4,9 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @format + * @noformat * @flow strict-local - * @generated SignedSource<<5b2da3e92f44ee2684113b45af052f5d>> + * @generated SignedSource<> * * This file was sync'd from the facebook/react repository. */ diff --git a/Libraries/Renderer/shims/createReactNativeComponentClass.js b/Libraries/Renderer/shims/createReactNativeComponentClass.js index b4711953fe0..51bf22b7965 100644 --- a/Libraries/Renderer/shims/createReactNativeComponentClass.js +++ b/Libraries/Renderer/shims/createReactNativeComponentClass.js @@ -4,9 +4,9 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @format + * @noformat * @flow strict-local - * @generated SignedSource<<435ec24b3531c66986fe5d529795713b>> + * @generated SignedSource<<4f1549884fbe8fc2aea495692e3f665d>> * * This file was sync'd from the facebook/react repository. */