Skip to content

Commit 16fa3d5

Browse files
SamChou19815facebook-github-bot
authored andcommitted
Update prettier-plugin-hermes-parser in fbsource to 0.31.1 (#52996)
Summary: Pull Request resolved: #52996 Bump prettier-plugin-hermes-parser to 0.31.1. Changelog: [internal] Reviewed By: pieterv Differential Revision: D79481936 fbshipit-source-id: 4decd5c92722f935a6a03b6d2205bc31b864fb5d
1 parent 4c7d7a9 commit 16fa3d5

26 files changed

Lines changed: 113 additions & 109 deletions

.github/workflow-scripts/__tests__/publishTemplate-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ describe('#verifyPublishedTemplate', () => {
117117
it('will timeout if npm does not update package version after a set number of retries', async () => {
118118
const RETRIES = 2;
119119

120-
await verifyPublishedTemplate('0.77.0', true, RETRIES),
120+
(await verifyPublishedTemplate('0.77.0', true, RETRIES),
121121
expect(mockVerifyPublishedPackage).toHaveBeenCalledWith(
122122
'@react-native-community/template',
123123
'0.77.0',
124124
'latest',
125125
2,
126-
);
126+
));
127127
});
128128
});
129129
});

.github/workflow-scripts/__tests__/verifyReleaseOnNpm-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ describe('#verifyReleaseOnNPM', () => {
8383
it('will timeout if npm does not update package version after a set number of retries', async () => {
8484
const RETRIES = 2;
8585

86-
await verifyReleaseOnNpm('0.77.0', true, RETRIES),
86+
(await verifyReleaseOnNpm('0.77.0', true, RETRIES),
8787
expect(mockVerifyPublishedPackage).toHaveBeenCalledWith(
8888
'react-native',
8989
'0.77.0',
9090
'latest',
9191
2,
92-
);
92+
));
9393
});
9494

9595
it('will timeout if npm does not update latest tag after a set number of retries', async () => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"node-fetch": "^2.2.0",
103103
"nullthrows": "^1.1.1",
104104
"prettier": "3.6.2",
105-
"prettier-plugin-hermes-parser": "0.30.0",
105+
"prettier-plugin-hermes-parser": "0.31.1",
106106
"react": "19.1.1",
107107
"react-test-renderer": "19.1.1",
108108
"rimraf": "^3.0.2",

packages/dev-middleware/src/__tests__/ServerUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ export function withServerForEachTest(options: CreateServerOptions): $ReadOnly<{
6262
({server, app} = await createServer(options));
6363
const serverBaseUrl = baseUrlForServer(
6464
server,
65-
options.secure ?? false ? 'https' : 'http',
65+
(options.secure ?? false) ? 'https' : 'http',
6666
);
6767
const serverBaseWsUrl = baseUrlForServer(
6868
server,
69-
options.secure ?? false ? 'wss' : 'ws',
69+
(options.secure ?? false) ? 'wss' : 'ws',
7070
);
7171
Object.defineProperty(ref, 'serverBaseUrl', {value: serverBaseUrl});
7272
Object.defineProperty(ref, 'serverBaseWsUrl', {value: serverBaseWsUrl});

packages/react-native/Libraries/Components/Pressable/Pressable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ function Pressable({
243243
};
244244

245245
const accessibilityLiveRegion =
246-
ariaLive === 'off' ? 'none' : ariaLive ?? props.accessibilityLiveRegion;
246+
ariaLive === 'off' ? 'none' : (ariaLive ?? props.accessibilityLiveRegion);
247247

248248
const accessibilityLabel = ariaLabel ?? props.accessibilityLabel;
249249
const restPropsWithDefaults: React.ElementConfig<typeof View> = {

packages/react-native/Libraries/Components/StatusBar/StatusBar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ class StatusBar extends React.Component<StatusBarProps> {
235235
static _defaultProps: any = createStackEntry({
236236
backgroundColor:
237237
Platform.OS === 'android'
238-
? NativeStatusBarManagerAndroid.getConstants()
239-
.DEFAULT_BACKGROUND_COLOR ?? 'black'
238+
? (NativeStatusBarManagerAndroid.getConstants()
239+
.DEFAULT_BACKGROUND_COLOR ?? 'black')
240240
: 'black',
241241
barStyle: 'default',
242242
translucent: false,

packages/react-native/Libraries/Components/TextInput/TextInput.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,8 +915,8 @@ const TextInput: component(
915915
Platform.OS === 'android'
916916
? // $FlowFixMe[invalid-computed-prop]
917917
// $FlowFixMe[prop-missing]
918-
autoCompleteWebToAutoCompleteAndroidMap[autoComplete] ??
919-
autoComplete
918+
(autoCompleteWebToAutoCompleteAndroidMap[autoComplete] ??
919+
autoComplete)
920920
: undefined
921921
}
922922
textContentType={

packages/react-native/Libraries/Components/Touchable/TouchableBounce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class TouchableBounce extends React.Component<
138138
const accessibilityLiveRegion =
139139
this.props['aria-live'] === 'off'
140140
? 'none'
141-
: this.props['aria-live'] ?? this.props.accessibilityLiveRegion;
141+
: (this.props['aria-live'] ?? this.props.accessibilityLiveRegion);
142142
const _accessibilityState = {
143143
busy: this.props['aria-busy'] ?? this.props.accessibilityState?.busy,
144144
checked:

packages/react-native/Libraries/Components/Touchable/TouchableHighlight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ class TouchableHighlightImpl extends React.Component<
328328
const accessibilityLiveRegion =
329329
this.props['aria-live'] === 'off'
330330
? 'none'
331-
: this.props['aria-live'] ?? this.props.accessibilityLiveRegion;
331+
: (this.props['aria-live'] ?? this.props.accessibilityLiveRegion);
332332

333333
const accessibilityLabel =
334334
this.props['aria-label'] ?? this.props.accessibilityLabel;

packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ class TouchableNativeFeedback extends React.Component<
332332
const accessibilityLiveRegion =
333333
this.props['aria-live'] === 'off'
334334
? 'none'
335-
: this.props['aria-live'] ?? this.props.accessibilityLiveRegion;
335+
: (this.props['aria-live'] ?? this.props.accessibilityLiveRegion);
336336

337337
const accessibilityLabel =
338338
this.props['aria-label'] ?? this.props.accessibilityLabel;

0 commit comments

Comments
 (0)