From: Jérôme Benoit Date: Fri, 23 Aug 2024 19:00:50 +0000 (+0200) Subject: refactor: revert overzealous enums ordering X-Git-Tag: ocpp-server@v1.5.2~94 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=42f331849ea30557749162cc37b0c4658933cf93;p=e-mobility-charging-stations-simulator.git refactor: revert overzealous enums ordering Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index 2603de82..b7178ad4 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -51,11 +51,14 @@ import { UIServerFactory } from './ui-server/UIServerFactory.js' const moduleName = 'Bootstrap' enum exitCodes { - duplicateChargingStationTemplateUrls = 2, - gracefulShutdownError = 4, + succeeded = 0, + // eslint-disable-next-line perfectionist/sort-enums missingChargingStationsConfiguration = 1, + // eslint-disable-next-line perfectionist/sort-enums + duplicateChargingStationTemplateUrls = 2, noChargingStationTemplates = 3, - succeeded = 0 + // eslint-disable-next-line perfectionist/sort-enums + gracefulShutdownError = 4 } export class Bootstrap extends EventEmitter { diff --git a/src/types/WebSocket.ts b/src/types/WebSocket.ts index 753c2268..94b85c86 100644 --- a/src/types/WebSocket.ts +++ b/src/types/WebSocket.ts @@ -1,3 +1,4 @@ +/* eslint-disable perfectionist/sort-enums */ export const WebSocketCloseEventStatusString: Record = Object.freeze({ 1000: 'Normal Closure', @@ -19,22 +20,22 @@ export const WebSocketCloseEventStatusString: Record