From 3c8798b163014a2f28c3e559bf1685bdc61fd3e0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 16 Jul 2023 16:09:51 +0200 Subject: [PATCH] build(ci): fix linting MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .../ui-server/ui-services/AbstractUIService.ts | 4 ++-- ui/web/src/composables/UIClient.ts | 2 +- ui/web/src/composables/Utils.ts | 2 +- ui/web/src/shims-vue.d.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) 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; } -- 2.34.1