fix(lint): resolve remaining ESLint errors (unused vars, any types, react-refresh)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jason Staack
2026-03-14 22:50:50 -05:00
parent 8cf5f12ffe
commit fb3669f9ac
54 changed files with 144 additions and 155 deletions

View File

@@ -6,7 +6,9 @@ import { useEffect, useRef } from 'react'
*/
export function useShortcut(key: string, callback: () => void, enabled = true) {
const callbackRef = useRef(callback)
callbackRef.current = callback
useEffect(() => {
callbackRef.current = callback
})
useEffect(() => {
if (!enabled) return
@@ -43,7 +45,9 @@ export function useSequenceShortcut(
enabled = true,
) {
const callbackRef = useRef(callback)
callbackRef.current = callback
useEffect(() => {
callbackRef.current = callback
})
const pendingRef = useRef<string | null>(null)
const timeoutRef = useRef<number | null>(null)