Skip to content

Commit 2016e7d

Browse files
committed
bump typescript-eslint
1 parent f22df29 commit 2016e7d

40 files changed

Lines changed: 176 additions & 173 deletions

File tree

packages/@office-iss/react-native-win32-tester/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
},
1313
"dependencies": {
1414
"@react-native/tester": "0.84.0-nightly-20260107-58bc6c3e3",
15-
"@typescript-eslint/eslint-plugin": "^7.1.1",
16-
"@typescript-eslint/parser": "^7.1.1",
15+
"@typescript-eslint/eslint-plugin": "^8.36.0",
16+
"@typescript-eslint/parser": "^8.36.0",
1717
"flow-enums-runtime": "^0.0.6"
1818
},
1919
"peerDependencies": {

packages/@office-iss/react-native-win32-tester/src/js/components/ViewWin32Test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ function FocusMoverTestComponent() {
6363
}
6464

6565
interface IKeyboardableComponentState {
66-
lastKeyDown: string;
67-
lastKeyUp: string;
66+
lastKeyDown: string | null;
67+
lastKeyUp: string | null;
6868
}
6969

7070
const handledNativeKeyboardEvents: IHandledKeyboardEvent[] = [

packages/@office-iss/react-native-win32-tester/src/js/examples-win32/Accessibility/AccessibilityExampleWin32.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,11 @@ const SelectionItemComponent: React.FunctionComponent<ISelectionItemComponentPro
265265
}
266266

267267
function addToSelection() {
268-
props.addHandler(props.value);
268+
props.addHandler?.(props.value);
269269
}
270270

271271
function removeFromSelection() {
272-
props.removeHandler(props.value);
272+
props.removeHandler?.(props.value);
273273
}
274274
};
275275

@@ -324,14 +324,14 @@ const renderItem = (item: ListRenderItemInfo<IListProps>) => (
324324
<ListItem label={item.item.label} level={item.item.level} setSize={item.item.setSize} positionInSet={item.item.positionInSet} />
325325
);
326326

327-
const getItemLayout = (data: ArrayLike<IListProps>, index: number) => ({ length: 30, offset: 30 * index, index });
327+
const getItemLayout = (data: ArrayLike<IListProps> | null | undefined, index: number) => ({ length: 30, offset: 30 * index, index });
328328

329329
const keyExtractor = (item: IListProps) => item.label.toString();
330330

331331
interface IFlatListProps {
332332
renderItem: (item: ListRenderItemInfo<IListProps>) => React.JSX.Element;
333333
getItemLayout?: (
334-
data: ArrayLike<IListProps>,
334+
data: ArrayLike<IListProps> | null | undefined,
335335
index: number
336336
) => {
337337
length: number;

packages/@office-iss/react-native-win32-tester/tsconfig.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44
"rootDir": "src",
55
"outDir": ".",
66
"paths": {
7-
"react-native": ["../react-native-win32"] // this mapping is relative to "baseUrl"
7+
"react-native": [
8+
"../react-native-win32"
9+
] // this mapping is relative to "baseUrl"
810
},
911
// Some code copied from react-native-win32 is not strict clean
1012
"noImplicitAny": false,
11-
"strictNullChecks": false,
1213
},
13-
"include": ["src"],
14-
"exclude": ["node_modules"],
15-
}
14+
"include": [
15+
"src"
16+
],
17+
"exclude": [
18+
"node_modules"
19+
],
20+
}

packages/@react-native-windows/automation-channel/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
},
1818
"main": "lib-commonjs/automationChannel.js",
1919
"dependencies": {
20-
"@typescript-eslint/eslint-plugin": "^7.1.1",
21-
"@typescript-eslint/parser": "^7.1.1",
20+
"@typescript-eslint/eslint-plugin": "^8.36.0",
21+
"@typescript-eslint/parser": "^8.36.0",
2222
"jsonrpc-lite": "^2.2.0",
2323
"minimatch": "^10.0.3"
2424
},

packages/@react-native-windows/automation-commands/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
},
1919
"dependencies": {
2020
"@react-native-windows/automation-channel": "0.0.0-canary.1046",
21-
"@typescript-eslint/eslint-plugin": "^7.1.1",
22-
"@typescript-eslint/parser": "^7.1.1"
21+
"@typescript-eslint/eslint-plugin": "^8.36.0",
22+
"@typescript-eslint/parser": "^8.36.0"
2323
},
2424
"devDependencies": {
2525
"@jest/types": "^29.2.1",

packages/@react-native-windows/automation/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"dependencies": {
2020
"@react-native-windows/automation-channel": "0.0.0-canary.1046",
2121
"@react-native-windows/fs": "^0.0.0-canary.71",
22-
"@typescript-eslint/eslint-plugin": "^7.1.1",
23-
"@typescript-eslint/parser": "^7.1.1",
22+
"@typescript-eslint/eslint-plugin": "^8.36.0",
23+
"@typescript-eslint/parser": "^8.36.0",
2424
"chalk": "^4.1.2",
2525
"readline-sync": "1.4.10",
2626
"webdriverio": "^6.9.0"

packages/@react-native-windows/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
"@types/shelljs": "^0.8.8",
5858
"@types/xml-parser": "^1.2.29",
5959
"@types/xmldom": "^0.1.30",
60-
"@typescript-eslint/eslint-plugin": "^7.1.1",
61-
"@typescript-eslint/parser": "^7.1.1",
60+
"@typescript-eslint/eslint-plugin": "^8.36.0",
61+
"@typescript-eslint/parser": "^8.36.0",
6262
"babel-jest": "^29.6.3",
6363
"eslint": "^8.19.0",
6464
"jest": "^29.7.0",

packages/@react-native-windows/codegen/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"@types/jest": "^29.2.2",
3939
"@types/node": "^22.14.0",
4040
"@types/yargs": "16.0.0",
41-
"@typescript-eslint/eslint-plugin": "^7.1.1",
42-
"@typescript-eslint/parser": "^7.1.1",
41+
"@typescript-eslint/eslint-plugin": "^8.36.0",
42+
"@typescript-eslint/parser": "^8.36.0",
4343
"babel-jest": "^29.6.3",
4444
"eslint": "^8.19.0",
4545
"jest": "^29.7.0",

packages/@react-native-windows/find-repo-root/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"@rnw-scripts/ts-config": "2.0.6",
2727
"@types/find-up": "^4.0.0",
2828
"@types/node": "^22.14.0",
29-
"@typescript-eslint/eslint-plugin": "^7.1.1",
30-
"@typescript-eslint/parser": "^7.1.1",
29+
"@typescript-eslint/eslint-plugin": "^8.36.0",
30+
"@typescript-eslint/parser": "^8.36.0",
3131
"eslint": "^8.19.0",
3232
"prettier": "^3.6.2",
3333
"typescript": "5.0.4"

0 commit comments

Comments
 (0)