From 7c4e08647883c74ee96bbbb91765b19da065ceda Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Wed, 15 Jul 2026 15:24:50 +0200 Subject: [PATCH] fix(iOS): fix Prettier lint failure in headers-xcframework test The Flow comment-type annotation on the uninitialized `let tmp` was reformatted by Prettier (moving the comment past the semicolon and detaching the annotation), which broke the lint job's format-check step. Giving `tmp` an initializer keeps the `/*: string */` annotation inline and satisfies Prettier. --- .../scripts/ios-prebuild/__tests__/headers-xcframework-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/scripts/ios-prebuild/__tests__/headers-xcframework-test.js b/packages/react-native/scripts/ios-prebuild/__tests__/headers-xcframework-test.js index 522675feaf2..6fc78150421 100644 --- a/packages/react-native/scripts/ios-prebuild/__tests__/headers-xcframework-test.js +++ b/packages/react-native/scripts/ios-prebuild/__tests__/headers-xcframework-test.js @@ -20,7 +20,7 @@ const os = require('os'); const path = require('path'); describe('buildDepsHeadersXcframework set-equality gate', () => { - let tmp /*: string */; + let tmp /*: string */ = ''; beforeEach(() => { tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'deps-headers-test-')); });