Skip to content

Commit

Permalink
ignore some eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
karannakra committed May 19, 2023
1 parent 42dc9df commit b7e08e1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/app/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions src/components/survey/Survey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions src/components/trpc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<trpc.Provider client={trpcClient} queryClient={queryClient}>
Expand Down
1 change: 1 addition & 0 deletions src/t3-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ZodString>)[]) => {};

// this line will error if the client env is not a string
Expand Down

0 comments on commit b7e08e1

Please sign in to comment.