added format command and added trailing commas to reduce conflicts

This commit is contained in:
dswbx
2025-02-26 20:06:03 +01:00
parent 88b5359f1c
commit 7743f71a11
414 changed files with 3622 additions and 3610 deletions

View File

@@ -5,7 +5,7 @@ import { useForm } from "react-hook-form";
const schema = Type.Object({
example: Type.Optional(Type.String()),
exampleRequired: Type.String({ minLength: 2 })
exampleRequired: Type.String({ minLength: 2 }),
});
export default function ReactHookErrors() {
@@ -13,9 +13,9 @@ export default function ReactHookErrors() {
register,
handleSubmit,
watch,
formState: { errors }
formState: { errors },
} = useForm({
resolver: typeboxResolver(schema)
resolver: typeboxResolver(schema),
});
const onSubmit = (data) => console.log(data);