Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Jun 6, 2024
1 parent 128e45b commit bb8bbf7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function App() {
if (searchValue) search.mutate(searchValue);
else if (account.address) search.mutate(account.address);
else search.mutate("");
}, [searchValue, account.address]);
}, [searchValue, search.mutate, account.address]);

return (
<div className="App">
Expand Down Expand Up @@ -97,10 +97,10 @@ function App() {
</Card>
)}

{singleDeed && (
{singleDeed && reference.name && (
<DeedComponent
id={singleDeed.id}
name={reference.name!}
name={reference.name}
owner={singleDeed.deedOwner}
value={singleDeed.value}
isExact
Expand Down
3 changes: 2 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
window.global ||= window;

import { Buffer } from "buffer";
import { Buffer } from "node:buffer";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import React from "react";
import ReactDOM from "react-dom/client";
Expand All @@ -17,6 +17,7 @@ globalThis.Buffer = Buffer;

const queryClient = new QueryClient();

// biome-ignore lint/style/noNonNullAssertion: never null
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<WagmiProvider config={config}>
Expand Down
9 changes: 4 additions & 5 deletions src/query/useDebouncedCallback.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { type DependencyList, useCallback, useRef } from "react";

export default function useDebouncedCallback<T extends (...args: any[]) => ReturnType<T>>(
func: T,
wait?: number,
deps: DependencyList = [],
): T {
export default function useDebouncedCallback<
// biome-ignore lint/suspicious/noExplicitAny: intentional
T extends (...args: any[]) => ReturnType<T>,
>(func: T, wait?: number, deps: DependencyList = []): T {
const timerId = useRef<ReturnType<typeof setTimeout>>();

return useCallback(
Expand Down
3 changes: 1 addition & 2 deletions src/query/useSimpleSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ export const useSimpleSearch = (options: Options = {}) => {
return () => {
queryClient.removeQueries({ queryKey: ["simpleSearch"], exact: false });
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
}, [queryClient]);

const { mutate, isPending, ...rest } = useMutation({
mutationFn: async (query: string) => {
Expand Down

0 comments on commit bb8bbf7

Please sign in to comment.