Skip to content

Commit

Permalink
chore: remove eslint comments
Browse files Browse the repository at this point in the history
  • Loading branch information
amje committed Dec 25, 2023
1 parent f7146dd commit 1989091
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/hooks/useActionHandlers/useActionHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react';

import {KeyCode} from '../../constants';

// eslint-disable-next-line @typescript-eslint/no-explicit-any
type AnyFunction = (...args: any[]) => any;

export type UseActionHandlersProps = AnyFunction;
Expand All @@ -17,7 +16,6 @@ export function createOnKeyDownHandler<T>(callback?: AnyFunction) {
callback &&
[KeyCode.ENTER, KeyCode.SPACEBAR, KeyCode.SPACEBAR_OLD].includes(event.key)
) {
// eslint-disable-next-line callback-return
callback(event);
}
};
Expand Down

0 comments on commit 1989091

Please sign in to comment.