Skip to content

Commit 370eda3

Browse files
committed
claude fixes lint (review)
1 parent 3f65678 commit 370eda3

File tree

33 files changed

+82
-89
lines changed

33 files changed

+82
-89
lines changed

packages/nx-release-version/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// @ts-check
22

3+
// @noflow
34
const {REPO_ROOT} = require('../../scripts/consts');
4-
const {default: JsVersionActions, afterAllProjectsVersioned: baseAfterAllProjectsVersioned} = require('@nx/js/src/release/version-actions');
5+
const {afterAllProjectsVersioned: baseAfterAllProjectsVersioned, default: JsVersionActions} = require('@nx/js/src/release/version-actions');
56
const fs = require('node:fs');
67
const path = require('node:path');
78

packages/react-native-macos-init/bin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env node
2+
// @noflow
23

34
/**
45
* Copyright (c) Microsoft Corporation.

packages/react-native-macos-init/just-task.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* @ts-check
77
*/
88

9+
// @noflow
910
const {eslintTask, series, task, taskPresets} = require('just-scripts');
1011

1112
taskPresets.lib();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313
import type {TextStyleProp, ViewStyleProp} from '../StyleSheet/StyleSheet';
1414
import type {
15-
GestureResponderEvent,
1615
BlurEvent,
1716
FocusEvent,
17+
GestureResponderEvent,
1818
} from '../Types/CoreEventTypes'; // [macOS]
1919
import type {
2020
AccessibilityActionEvent,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
import type {ViewStyleProp} from '../../StyleSheet/StyleSheet';
1212
import type {
1313
BlurEvent,
14+
DragEvent,
1415
// [macOS
1516
FocusEvent,
16-
DragEvent,
17+
GestureResponderEvent,
1718
HandledKeyEvent,
1819
KeyEvent,
19-
GestureResponderEvent,
2020
LayoutChangeEvent,
2121
MouseEvent,
2222
// macOS]

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,10 @@ class ScrollView extends React.Component<ScrollViewProps, ScrollViewState> {
10061006
},
10071007
animated?: boolean, // deprecated, put this inside the rect argument instead
10081008
) => {
1009-
invariant(Platform.OS === 'ios' || Platform.OS === 'macos', 'zoomToRect is not implemented'); // [macOS]
1009+
invariant(
1010+
Platform.OS === 'ios' || Platform.OS === 'macos',
1011+
'zoomToRect is not implemented',
1012+
); // [macOS]
10101013
if ('animated' in rect) {
10111014
this._animated = rect.animated;
10121015
delete rect.animated;

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010

1111
import type {HostInstance} from '../../../src/private/types/HostInstance';
1212
import type {
13-
DataTransfer, // [macOS]
13+
// [macOS]
1414
BlurEvent,
15+
DataTransfer,
1516
FocusEvent,
1617
GestureResponderEvent,
17-
HandledKeyEvent, // [macOS]
18-
KeyEvent, // [macOS]
18+
HandledKeyEvent,
19+
// [macOS]
20+
KeyEvent,
21+
// [macOS]
1922
NativeSyntheticEvent,
2023
ScrollEvent,
2124
} from '../../Types/CoreEventTypes';

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
import type {HostInstance} from '../../../src/private/types/HostInstance';
1212
import type {____TextStyle_Internal as TextStyleInternal} from '../../StyleSheet/StyleSheetTypes';
1313
import type {
14-
DataTransfer, // [macOS]
14+
// [macOS]
1515
BlurEvent,
1616
FocusEvent,
1717
GestureResponderEvent,
18-
KeyEvent, // [macOS]
19-
HandledKeyEvent, // [macOS]
20-
NativeSyntheticEvent,
18+
HandledKeyEvent,
19+
KeyEvent,
2120
ScrollEvent,
21+
// macOS]
2222
} from '../../Types/CoreEventTypes';
2323
import type {
2424
AutoCapitalize,
@@ -44,9 +44,7 @@ import type {
4444
TextInputContentSizeChangeEvent,
4545
TextInputEditingEvent,
4646
TextInputEndEditingEvent,
47-
SettingChangeEvent, // [macOS]
48-
PasteEvent, // [macOS]
49-
SubmitKeyEvent, // [macOS]
47+
// [macOS]
5048
TextInputEvent,
5149
TextInputFocusEvent,
5250
TextInputInstance,

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ import type {AccessibilityActionEvent} from '../../Components/View/ViewAccessibi
1212
import type {EdgeInsetsOrSizeProp} from '../../StyleSheet/EdgeInsetsPropType';
1313
import type {
1414
BlurEvent,
15+
// [macOS]
16+
DragEvent,
1517
FocusEvent,
16-
MouseEvent, // [macOS]
17-
DragEvent, // [macOS]
18+
// [macOS]
1819
GestureResponderEvent,
1920
LayoutChangeEvent,
21+
MouseEvent,
2022
} from '../../Types/CoreEventTypes';
2123
// [macOS
2224
import type {DraggedTypesType} from '../View/DraggedType'; // [macOS]

packages/react-native/Libraries/Components/View/DraggedType.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export type DraggedType = 'fileUrl' | 'image' | 'string';
1616

1717
export type DraggedTypesType = DraggedType | $ReadOnlyArray<DraggedType>;
1818

19-
module.exports = {
20-
DraggedTypes: ['fileUrl', 'image', 'string'],
21-
};
19+
export const DraggedTypes: $ReadOnlyArray<DraggedType> = [
20+
'fileUrl',
21+
'image',
22+
'string',
23+
];

0 commit comments

Comments
 (0)