diff --git a/eslint.config.mjs b/eslint.config.mjs index efeb73e..b6ba310 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,17 +1,17 @@ -import globals from "globals"; -import pluginJs from "@eslint/js"; -import tseslint from "typescript-eslint"; +import pluginJs from '@eslint/js'; +import globals from 'globals'; +import tseslint from 'typescript-eslint'; /** @type {import('eslint').Linter.Config[]} */ export default [ - { files: ["**/*.{js,mjs,cjs,ts}"] }, + { files: ['**/*.{js,mjs,cjs,ts}'] }, { languageOptions: { globals: globals.browser } }, pluginJs.configs.recommended, ...tseslint.configs.recommended, { rules: { - "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/no-require-imports": "off", - }, - }, + '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-require-imports': 'off' + } + } ]; diff --git a/functions/src/emails/template/step-partnership-generated.ts b/functions/src/emails/template/step-partnership-generated.ts index 0f0679b..4747f4c 100644 --- a/functions/src/emails/template/step-partnership-generated.ts +++ b/functions/src/emails/template/step-partnership-generated.ts @@ -11,7 +11,7 @@ export default ({ sponsoring, creationDate }: Company, id: string, configuration day: 'numeric' }; const date = addDays((creationDate as Timestamp).toDate(), 15); - const dateTimeFormat = new Intl.DateTimeFormat('fr-FR', options as any); + const dateTimeFormat = new Intl.DateTimeFormat('fr-FR', options as Intl.DateTimeFormatOptions); const sponsor_reservation_end_date = dateTimeFormat.format(date); diff --git a/functions/src/utils/mail.ts b/functions/src/utils/mail.ts index 65c3384..a278e89 100644 --- a/functions/src/utils/mail.ts +++ b/functions/src/utils/mail.ts @@ -11,7 +11,7 @@ export function getFrom(mail: Email): { }; } -export function sendEmailToAllContacts(company: Company, emailFactory: any, configuration: Configuration) { +export function sendEmailToAllContacts(company: Company, emailFactory: { subject: string; body: string }, configuration: Configuration) { let emails = [configuration.mail.cc]; if (configuration.mail.enabled === 'true') { emails = [...emails, ...company.email];