Skip to content

Commit

Permalink
chore: allow unusedLocals in standard-schema example (#1068)
Browse files Browse the repository at this point in the history
there were a bunch ts-ignores, which looks bad on an example

Co-authored-by: Misha Kaletsky <[email protected]>
  • Loading branch information
mmkal and mmkal authored Dec 14, 2024
1 parent a94d97f commit 91eb9ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions examples/react/standard-schema/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ function FieldInfo({ field }: { field: FieldApi<any, any, any, any> }) {
)
}

// @ts-ignore - Might be unused for demo purposes
const ZodSchema = z.object({
firstName: z
.string()
Expand All @@ -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(),
Expand All @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion examples/react/standard-schema/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedLocals": false,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
Expand Down

0 comments on commit 91eb9ab

Please sign in to comment.