Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: allow unusedLocals in standard-schema example #1068

Merged
merged 1 commit into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading