chore: Apply linting rules and add git hok (#611)

Co-authored-by: Fredrik Burmester <fredrik.burmester@gmail.com>
This commit is contained in:
lostb1t
2025-03-16 18:01:12 +01:00
committed by GitHub
parent 2688e1b981
commit 92513e234f
268 changed files with 9197 additions and 8394 deletions

View File

@@ -1,7 +1,8 @@
import { atomWithStorage, createJSONStorage } from "jotai/utils";
import { storage } from "./mmkv";
import { useQuery } from "@tanstack/react-query";
import React, { createContext, useContext } from "react";
import { atomWithStorage, createJSONStorage } from "jotai/utils";
import type React from "react";
import { createContext, useContext } from "react";
import { storage } from "./mmkv";
type LogLevel = "INFO" | "WARN" | "ERROR";
@@ -20,10 +21,10 @@ const mmkvStorage = createJSONStorage(() => ({
const logsAtom = atomWithStorage("logs", [], mmkvStorage);
const LogContext = createContext<ReturnType<typeof useLogProvider> | null>(
null
null,
);
const DownloadContext = createContext<ReturnType<typeof useLogProvider> | null>(
null
null,
);
function useLogProvider() {