Skip to content

Commit 7c4e086

Browse files
committed
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.
1 parent 00efc0a commit 7c4e086

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native/scripts/ios-prebuild/__tests__/headers-xcframework-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const os = require('os');
2020
const path = require('path');
2121

2222
describe('buildDepsHeadersXcframework set-equality gate', () => {
23-
let tmp /*: string */;
23+
let tmp /*: string */ = '';
2424
beforeEach(() => {
2525
tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'deps-headers-test-'));
2626
});

0 commit comments

Comments
 (0)