From fba1ae1643ba068fef3572438b969951df06e41f Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Tue, 2 Nov 2021 23:08:14 -0700 Subject: [PATCH] RN: Temporarily Disable Prettier for Some Files Summary: We are in the middle of a Prettier upgrade and some of the files which disagree between Prettier v1.x and v2.x are now being flagged by `eslint-plugin-prettier` as lint errors. The correct fix here is probably to update `eslint-config-prettier` and `eslint-plugin-prettier`, but I am landing this first to unbreak CI. Reviewed By: mendoncakeegan Differential Revision: D32129458 fbshipit-source-id: a5206a5ef58f1d7614f9459c99b9e39109be6de9 --- Libraries/BatchedBridge/MessageQueue.js | 2 +- .../Components/ProgressBarAndroid/ProgressBarAndroid.android.js | 2 +- Libraries/Utilities/ReactNativeTestTools.js | 2 +- packages/polyfills/Object.es8.js | 2 +- packages/polyfills/console.js | 2 +- .../src/generators/modules/GenerateModuleJavaSpec.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Libraries/BatchedBridge/MessageQueue.js b/Libraries/BatchedBridge/MessageQueue.js index c01bbb14749..e3871bddf27 100644 --- a/Libraries/BatchedBridge/MessageQueue.js +++ b/Libraries/BatchedBridge/MessageQueue.js @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. * * @flow strict - * @format + * @noformat */ 'use strict'; diff --git a/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js b/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js index 51803f1df2e..ec3f3c9cd58 100644 --- a/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +++ b/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. * * @flow strict-local - * @format + * @noformat */ const React = require('react'); diff --git a/Libraries/Utilities/ReactNativeTestTools.js b/Libraries/Utilities/ReactNativeTestTools.js index 7396220b561..8c8f6b70ffc 100644 --- a/Libraries/Utilities/ReactNativeTestTools.js +++ b/Libraries/Utilities/ReactNativeTestTools.js @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. * * @flow - * @format + * @noformat */ /* eslint-env jest */ diff --git a/packages/polyfills/Object.es8.js b/packages/polyfills/Object.es8.js index 19ff4bb7d14..20e2d3d03d8 100644 --- a/packages/polyfills/Object.es8.js +++ b/packages/polyfills/Object.es8.js @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @format + * @noformat * @polyfill * @nolint */ diff --git a/packages/polyfills/console.js b/packages/polyfills/console.js index f82fb4d05bc..fee5ddb392d 100644 --- a/packages/polyfills/console.js +++ b/packages/polyfills/console.js @@ -6,7 +6,7 @@ * * @polyfill * @nolint - * @format + * @noformat */ /* eslint-disable no-shadow, eqeqeq, curly, no-unused-vars, no-void, no-control-regex */ diff --git a/packages/react-native-codegen/src/generators/modules/GenerateModuleJavaSpec.js b/packages/react-native-codegen/src/generators/modules/GenerateModuleJavaSpec.js index e5d5ecb141b..3c1cdeb89cd 100644 --- a/packages/react-native-codegen/src/generators/modules/GenerateModuleJavaSpec.js +++ b/packages/react-native-codegen/src/generators/modules/GenerateModuleJavaSpec.js @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. * * @flow strict - * @format + * @noformat */ 'use strict';