From 91eb9ab0b01218cedaf3fad13075f7349dd49e58 Mon Sep 17 00:00:00 2001 From: Misha Kaletsky <15040698+mmkal@users.noreply.github.com> Date: Sat, 14 Dec 2024 11:06:44 -0500 Subject: [PATCH] chore: allow unusedLocals in standard-schema example (#1068) there were a bunch ts-ignores, which looks bad on an example Co-authored-by: Misha Kaletsky --- examples/react/standard-schema/src/index.tsx | 3 --- examples/react/standard-schema/tsconfig.json | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/react/standard-schema/src/index.tsx b/examples/react/standard-schema/src/index.tsx index a9595cdc9..6e463526f 100644 --- a/examples/react/standard-schema/src/index.tsx +++ b/examples/react/standard-schema/src/index.tsx @@ -17,7 +17,6 @@ function FieldInfo({ field }: { field: FieldApi }) { ) } -// @ts-ignore - Might be unused for demo purposes const ZodSchema = z.object({ firstName: z .string() @@ -26,7 +25,6 @@ const ZodSchema = z.object({ lastName: z.string().min(3, '[Zod] You must have a length of at least 3'), }) -// @ts-ignore - Might be unused for demo purposes const ValibotSchema = v.object({ firstName: v.pipe( v.string(), @@ -39,7 +37,6 @@ const ValibotSchema = v.object({ ), }) -// @ts-ignore - Might be unused for demo purposes const ArkTypeSchema = type({ firstName: 'string >= 3', lastName: 'string >= 3', diff --git a/examples/react/standard-schema/tsconfig.json b/examples/react/standard-schema/tsconfig.json index 22b43163b..f8f7ffb72 100644 --- a/examples/react/standard-schema/tsconfig.json +++ b/examples/react/standard-schema/tsconfig.json @@ -15,7 +15,7 @@ /* Linting */ "strict": true, - "noUnusedLocals": true, + "noUnusedLocals": false, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true },