From 23a6539ea5faf3e0052bf64a4a927325d30f81de Mon Sep 17 00:00:00 2001 From: Roberto Bruggemann Date: Thu, 12 Sep 2024 11:15:16 +0100 Subject: [PATCH] Add exception to unsafe declaration This fixes the following error: https://github.com/lune-climate/lune-ts/actions/runs/10828711568/job/30044690977?pr=670 Adding an exception because, as the comment states, mixins interfaces require the same name as the class. --- src/templates/luneClient.hbs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/templates/luneClient.hbs b/src/templates/luneClient.hbs index 5e96b3174..0a3f4fb58 100644 --- a/src/templates/luneClient.hbs +++ b/src/templates/luneClient.hbs @@ -32,6 +32,7 @@ function applyMixins(derivedCtor: any, constructors: any[]) { }) } +// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging export class LuneClient { protected client: AxiosInstance protected config: ClientConfig @@ -95,7 +96,7 @@ applyMixins(LuneClient, [ {{/if}} ]) -// eslint-disable-next-line no-redeclare -- mixins require same name +// eslint-disable-next-line no-redeclare, @typescript-eslint/no-unsafe-declaration-merging -- mixins require same name export interface LuneClient extends {{#each services}} {{{name}}}Service{{#unless @last}},{{/unless}}