Skip to content

Commit

Permalink
RN: Change @{ => no}format in React Files
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yungsters authored and facebook-github-bot committed Nov 9, 2021
1 parent 32f36fe commit 280e4ce
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 13 deletions.
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

4 changes: 2 additions & 2 deletions Libraries/Renderer/shims/ReactFabric.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<<ca65d187831e77f0f589dfd9fa8775bc>>
*
* This file was sync'd from the facebook/react repository.
*/
Expand Down
4 changes: 2 additions & 2 deletions Libraries/Renderer/shims/ReactFeatureFlags.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<<bed66083565ac46f6de032dd8f2d6814>>
* @generated SignedSource<<b17df4f82c9d4fe20645f360eadf82bc>>
*
* This file was sync'd from the facebook/react repository.
*/
Expand Down
4 changes: 2 additions & 2 deletions Libraries/Renderer/shims/ReactNative.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<<fd14f2375864691ea971c77ac6088e4b>>
* @generated SignedSource<<45ec3626ad048b08dac9b031b02bc0a8>>
*
* This file was sync'd from the facebook/react repository.
*/
Expand Down
4 changes: 2 additions & 2 deletions Libraries/Renderer/shims/ReactNativeTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<<ec11b46a06877b4f7f3f0b6c1f5d46c3>>
*
* This file was sync'd from the facebook/react repository.
*/
Expand Down
4 changes: 2 additions & 2 deletions Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<<cfc4aafaa6b6af5b0a69d4463b8d214d>>
*
* This file was sync'd from the facebook/react repository.
*/
Expand Down
4 changes: 2 additions & 2 deletions Libraries/Renderer/shims/createReactNativeComponentClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 280e4ce

Please sign in to comment.