From 3768703e5093bb73de4447378b442ba0a49138ff Mon Sep 17 00:00:00 2001 From: mattiscauwel Date: Tue, 21 May 2024 07:02:58 +0200 Subject: [PATCH] format linter --- .../createSubjectView/header/CreateSubjectHeaderCard.vue | 3 ++- .../createSubjectView/header/CreateSubjectHeaderContainer.vue | 1 - frontend/src/i18n/locales/en.ts | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/subject/createSubjectView/header/CreateSubjectHeaderCard.vue b/frontend/src/components/subject/createSubjectView/header/CreateSubjectHeaderCard.vue index 9ca54c42..0e7a2676 100644 --- a/frontend/src/components/subject/createSubjectView/header/CreateSubjectHeaderCard.vue +++ b/frontend/src/components/subject/createSubjectView/header/CreateSubjectHeaderCard.vue @@ -89,7 +89,8 @@ const academicYearItems = [activeAcademicYear.value, activeAcademicYear.value + const rules = { required: (value: string) => !!value || t("create_subject.field_required"), length: (value: string) => value.length > 2 || t("create_subject.field_length"), - email: (value: string) => !value || /.+@.+\..+/.test(value) || t("create_subject.email_invalid"), + email: (value: string) => + !value || /.+@.+\..+/.test(value) || t("create_subject.email_invalid"), }; const emit = defineEmits<{ diff --git a/frontend/src/components/subject/createSubjectView/header/CreateSubjectHeaderContainer.vue b/frontend/src/components/subject/createSubjectView/header/CreateSubjectHeaderContainer.vue index f82878d1..d149c68b 100644 --- a/frontend/src/components/subject/createSubjectView/header/CreateSubjectHeaderContainer.vue +++ b/frontend/src/components/subject/createSubjectView/header/CreateSubjectHeaderContainer.vue @@ -36,7 +36,6 @@ defineEmits<{ (e: "update:subject-name", value: string): void; (e: "update:subject-mail", value: string): void; (e: "update:active-academic-year", value: number): void; - }>(); diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index bd41289d..51a64844 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -153,7 +153,6 @@ export default { enter_email: "Enter email", email_hint: "Field is optional", email_invalid: "Provided email is invalid", - }, group: {