Skip to content

Commit

Permalink
Add exception to unsafe declaration
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rbruggem committed Sep 12, 2024
1 parent b9fca47 commit 23a6539
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/templates/luneClient.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}}
Expand Down

0 comments on commit 23a6539

Please sign in to comment.