ESLint: Fix more warnings and errors.
This commit is contained in:
parent
66fb4e5004
commit
bfd6ca1d26
9 changed files with 84 additions and 56 deletions
server/services
|
@ -21,6 +21,7 @@ const templateFunctions: {
|
|||
| ((unix: number) => string);
|
||||
} = {};
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
function renderSnippet(this: any, name: string, data: MailData): string {
|
||||
const snippetFile = snippetsBasePath + "/" + name + ".html";
|
||||
|
||||
|
@ -34,7 +35,9 @@ function renderSnippet(this: any, name: string, data: MailData): string {
|
|||
);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
function snippet(name: string): (this: any, data: MailData) => string {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
return function (this: any, data: MailData): string {
|
||||
return renderSnippet.bind(this)(name, data);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue