From b7fbc619ac37cea439f50cdaee0992b42fe44ea6 Mon Sep 17 00:00:00 2001 From: karannakra Date: Sat, 20 May 2023 02:54:51 +0530 Subject: [PATCH] ignore some eslint rules --- src/components/app/Settings.tsx | 1 + src/components/survey/Survey.tsx | 1 + src/components/trpc.tsx | 1 + src/t3-env.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/src/components/app/Settings.tsx b/src/components/app/Settings.tsx index 1586905d..b24c506e 100644 --- a/src/components/app/Settings.tsx +++ b/src/components/app/Settings.tsx @@ -95,6 +95,7 @@ function Interal() { e.preventDefault(); const form = e.currentTarget; const formData = new FormData(form); + //eslint-disable-next-line @typescript-eslint/no-explicit-any , @typescript-eslint/no-unsafe-argument addKeyMutation.mutate(Object.fromEntries(formData.entries()) as any, { onSuccess: () => { form.reset(); diff --git a/src/components/survey/Survey.tsx b/src/components/survey/Survey.tsx index 96f7c4ae..a67f404d 100644 --- a/src/components/survey/Survey.tsx +++ b/src/components/survey/Survey.tsx @@ -151,6 +151,7 @@ function OptionalComments() { e.preventDefault(); const form = e.currentTarget; const formData = Object.fromEntries(new FormData(form)); + //eslint-disable-next-line @typescript-eslint/no-explicit-any , @typescript-eslint/no-unsafe-argument postSurveyMutation.mutate(formData as any); }} className="w-full px-8 sm:w-96" diff --git a/src/components/trpc.tsx b/src/components/trpc.tsx index a955fb72..5c2ca7ec 100644 --- a/src/components/trpc.tsx +++ b/src/components/trpc.tsx @@ -34,6 +34,7 @@ export function TRPCProvider({ }) ); // TODO: we should be passing dehydratedState to trpcClient not queryClient + //eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-explicit-any const state = dehydratedState ? superjson.deserialize(dehydratedState as any) : undefined; return ( diff --git a/src/t3-env.ts b/src/t3-env.ts index c6164bcf..af5239c5 100644 --- a/src/t3-env.ts +++ b/src/t3-env.ts @@ -43,6 +43,7 @@ const x = validateEnv({ // this function would be dead code eliminated const client = () => { // add check that values are strings + //eslint-disable-next-line @typescript-eslint/no-unused-vars const v = (_: (ZodString | ZodOptional)[]) => {}; // this line will error if the client env is not a string