Skip to content

Commit abf59fc

Browse files
renovate[bot]renovate-botTomchambo-e
authored
fix(deps): update typescript-eslint monorepo to v5.16.0 (#683)
* fix(deps): update typescript-eslint monorepo to v5.16.0 * fix: lint error * fix: ignore error instead of swallowing Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Tom <[email protected]> Co-authored-by: Emmanuel Chambon <[email protected]>
1 parent cce51c7 commit abf59fc

File tree

3 files changed

+44
-43
lines changed

3 files changed

+44
-43
lines changed

packages/eslint-config-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
},
1818
"license": "MIT",
1919
"dependencies": {
20-
"@typescript-eslint/eslint-plugin": "5.12.1",
21-
"@typescript-eslint/parser": "5.12.1",
20+
"@typescript-eslint/eslint-plugin": "5.16.0",
21+
"@typescript-eslint/parser": "5.16.0",
2222
"eslint-config-airbnb": "19.0.4",
2323
"eslint-config-airbnb-typescript": "16.2.0",
2424
"eslint-config-prettier": "8.5.0",

packages/use-dataloader/src/useDataLoader.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const useDataLoader = <T>(
8282
}
8383
}, [onSuccess, onError, onErrorProvider, method, request])
8484

85-
const cancelMethodRef = useRef<(() => void) | undefined>(request?.cancel)
85+
const cancelMethodRef = useRef<(() => Promise<void>) | undefined>(request?.cancel)
8686

8787
const isLoading = useMemo(
8888
() =>
@@ -141,6 +141,7 @@ const useDataLoader = <T>(
141141
return () => {
142142
isMountedRef.current = false
143143
if (isFetchingRef.current && cancelMethodRef.current) {
144+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
144145
cancelMethodRef.current()
145146
}
146147
unsubscribeRequestRef.current?.()

pnpm-lock.yaml

Lines changed: 40 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)