Skip to content

Commit

Permalink
feat: remove eslint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey committed Nov 27, 2024
1 parent 625bc75 commit f70179b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -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'
}
}
];
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion functions/src/utils/mail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit f70179b

Please sign in to comment.