From f94ee6b0928d78231dfa91a56c072deaddf574ec Mon Sep 17 00:00:00 2001 From: Felix Mosheev <9304194+felixmosh@users.noreply.github.com> Date: Mon, 26 Apr 2021 18:18:08 +0300 Subject: [PATCH] fix: lints warnings --- src/routes/errorHandler.ts | 1 + src/ui/hooks/useInterval.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/errorHandler.ts b/src/routes/errorHandler.ts index 5adab566..ad36c9d8 100644 --- a/src/routes/errorHandler.ts +++ b/src/routes/errorHandler.ts @@ -4,6 +4,7 @@ export function errorHandler( err: Error, _req: Request, res: Response, + // eslint-disable-next-line _next: any, // important argument, don't remove ): void { res.status(500).send({ diff --git a/src/ui/hooks/useInterval.ts b/src/ui/hooks/useInterval.ts index 3b241a29..619a07ae 100644 --- a/src/ui/hooks/useInterval.ts +++ b/src/ui/hooks/useInterval.ts @@ -4,7 +4,7 @@ export function useInterval( callback: () => void, delay: number | null, deps: any[] = [], -) { +): void { const savedCallback = useRef(callback) // Remember the latest callback if it changes.