From 53c0a6ad88250306376134ef3021f3950ef16c6e Mon Sep 17 00:00:00 2001 From: JuanSaavedra Date: Wed, 21 Aug 2024 15:46:12 -0400 Subject: [PATCH] OV-3: * applying lint format --- .../user-sign-up.validation-schema.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/shared/src/bundles/users/validation-schemas/user-sign-up.validation-schema.ts b/shared/src/bundles/users/validation-schemas/user-sign-up.validation-schema.ts index d069e611f..423f288c7 100644 --- a/shared/src/bundles/users/validation-schemas/user-sign-up.validation-schema.ts +++ b/shared/src/bundles/users/validation-schemas/user-sign-up.validation-schema.ts @@ -11,11 +11,17 @@ type UserSignUpRequestValidationDto = { const userSignUp = z .object({ - fullName: z.string({ required_error: UserValidationMessage.FIELD_REQUIRE }) + fullName: z + .string({ required_error: UserValidationMessage.FIELD_REQUIRE }) .trim() - .refine((value) => value.split(/\s+/).length >= UserValidationRule.FULL_NAME_MINIMUM_WORD_LENGTH, { - message: UserValidationMessage.NAME_MIN_TWO_WORDS, - }), + .refine( + (value) => + value.split(/\s+/).length >= + UserValidationRule.FULL_NAME_MINIMUM_WORD_LENGTH, + { + message: UserValidationMessage.NAME_MIN_TWO_WORDS, + }, + ), email: z .string({ required_error: UserValidationMessage.FIELD_REQUIRE }) .trim()