From: Jérôme Benoit Date: Sun, 16 Jul 2023 14:09:51 +0000 (+0200) Subject: build(ci): fix linting X-Git-Tag: v1.2.18~27 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3c8798b163014a2f28c3e559bf1685bdc61fd3e0;p=e-mobility-charging-stations-simulator.git build(ci): fix linting Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ui-server/ui-services/AbstractUIService.ts b/src/charging-station/ui-server/ui-services/AbstractUIService.ts index fce93c8a..0caf003e 100644 --- a/src/charging-station/ui-server/ui-services/AbstractUIService.ts +++ b/src/charging-station/ui-server/ui-services/AbstractUIService.ts @@ -112,10 +112,10 @@ export abstract class AbstractUIService { // public sendRequest( // messageId: string, // procedureName: ProcedureName, - // requestPayload: RequestPayload + // requestPayload: RequestPayload, // ): void { // this.uiServer.sendRequest( - // this.uiServer.buildProtocolRequest(messageId, procedureName, requestPayload) + // this.uiServer.buildProtocolRequest(messageId, procedureName, requestPayload), // ); // } diff --git a/ui/web/src/composables/UIClient.ts b/ui/web/src/composables/UIClient.ts index c2f1b0c2..3e7856e4 100644 --- a/ui/web/src/composables/UIClient.ts +++ b/ui/web/src/composables/UIClient.ts @@ -128,7 +128,7 @@ export default class UIClient { id: string, procedureName: ProcedureName, resolve: (value: ResponsePayload | PromiseLike) => void, - reject: (reason?: any) => void + reject: (reason?: unknown) => void ): void { this.responseHandlers.set(id, { procedureName, resolve, reject }); } diff --git a/ui/web/src/composables/Utils.ts b/ui/web/src/composables/Utils.ts index 8cb957ab..ac217a70 100644 --- a/ui/web/src/composables/Utils.ts +++ b/ui/web/src/composables/Utils.ts @@ -15,7 +15,7 @@ export default class Utils { if (obj === null || obj === undefined) { return false; } - return typeof (obj as any)[Symbol.iterator] === 'function'; + return typeof (obj as unknown as Iterable)[Symbol.iterator] === 'function'; } // public static ifNotIterableDo(obj: T, cb: () => void): void { diff --git a/ui/web/src/shims-vue.d.ts b/ui/web/src/shims-vue.d.ts index 3b0c636b..9875d777 100644 --- a/ui/web/src/shims-vue.d.ts +++ b/ui/web/src/shims-vue.d.ts @@ -1,6 +1,6 @@ declare module '*.vue' { import type { DefineComponent } from 'vue'; // eslint-disable-next-line @typescript-eslint/ban-types - const component: DefineComponent<{}, {}, any>; + const component: DefineComponent<{}, {}, unknown>; export default component; }