1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 17:26:37 -04:00

bump deps and fix lint

This commit is contained in:
2024-09-11 17:26:42 -04:00
parent 0dbb32a267
commit 89cd6780f9
4 changed files with 542 additions and 441 deletions

View File

@ -34,7 +34,9 @@ const useLocalStorage = <T = string>(
window.localStorage.setItem(key, serializer(initialValue));
return initialValue;
}
} catch (error) {
} catch (
error // eslint-disable-line @typescript-eslint/no-unused-vars
) {
return initialValue;
}
});
@ -63,7 +65,7 @@ const useLocalStorage = <T = string>(
try {
window.localStorage.removeItem(key);
setState(undefined);
} catch (error) {} // eslint-disable-line no-empty
} catch (error) {} // eslint-disable-line no-empty, @typescript-eslint/no-unused-vars
}, [key]);
return [state, set, remove];