build: temporary silence linter errors
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 28 Dec 2023 13:55:26 +0000 (14:55 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 28 Dec 2023 13:55:26 +0000 (14:55 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/SharedLRUCache.ts
src/charging-station/ocpp/OCPPIncomingRequestService.ts
src/charging-station/ocpp/OCPPRequestService.ts
src/charging-station/ocpp/OCPPResponseService.ts
src/utils/AsyncLock.ts
ui/web/pnpm-lock.yaml

index a06c8452d2283c560afb819f2fd276aff6e676d8..b2dacec8fe989776bfc850d7e80bc43858a37432 100644 (file)
@@ -1,4 +1,4 @@
-import LRUCache from 'mnemonist/lru-map-with-delete.js';
+import { LRUMapWithDelete as LRUCache } from 'mnemonist';
 
 import { Bootstrap } from './Bootstrap.js';
 import type { ChargingStationConfiguration, ChargingStationTemplate } from '../types/index.js';
index 06a80e3ae7b966019ab879370005448d26a293f7..9666f3d750b108b42ee132366e8f0bc336bab6c1 100644 (file)
@@ -25,6 +25,7 @@ export abstract class OCPPIncomingRequestService {
 
   protected constructor(version: OCPPVersion) {
     this.version = version;
+    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
     this.ajv = new Ajv({
       keywords: ['javaType'],
       multipleOfPrecision: 2,
@@ -117,6 +118,7 @@ export abstract class OCPPIncomingRequestService {
     schema: JSONSchemaType<T>,
   ) {
     if (this.jsonValidateFunctions.has(commandName) === false) {
+      // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
       this.jsonValidateFunctions.set(commandName, this.ajv.compile<T>(schema).bind(this));
     }
     return this.jsonValidateFunctions.get(commandName)!;
index aeb09c332b7629acd8340fb874fd8d90348ecef4..c772fec1e09f80ac3f32acbc2412c80bf96c1055 100644 (file)
@@ -49,6 +49,7 @@ export abstract class OCPPRequestService {
 
   protected constructor(version: OCPPVersion, ocppResponseService: OCPPResponseService) {
     this.version = version;
+    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
     this.ajv = new Ajv({
       keywords: ['javaType'],
       multipleOfPrecision: 2,
@@ -233,6 +234,7 @@ export abstract class OCPPRequestService {
     if (this.jsonValidateFunctions.has(commandName) === false) {
       this.jsonValidateFunctions.set(
         commandName,
+        // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
         this.ajv.compile<T>(this.jsonSchemas.get(commandName)!).bind(this),
       );
     }
@@ -287,8 +289,11 @@ export abstract class OCPPRequestService {
     ) {
       this.ocppResponseService.jsonIncomingRequestResponseValidateFunctions.set(
         commandName,
+        // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-call
         this.ajv
+          // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
           .compile<T>(this.ocppResponseService.jsonIncomingRequestResponseSchemas.get(commandName)!)
+          // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
           .bind(this),
       );
     }
index 9fcfd6effc4247f07c298be36371bbf732ac3592..e386e432a88ac334f7434ec6ea33f64c6a28c011 100644 (file)
@@ -33,6 +33,7 @@ export abstract class OCPPResponseService {
 
   protected constructor(version: OCPPVersion) {
     this.version = version;
+    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
     this.ajv = new Ajv({
       keywords: ['javaType'],
       multipleOfPrecision: 2,
@@ -101,6 +102,7 @@ export abstract class OCPPResponseService {
     schema: JSONSchemaType<T>,
   ) {
     if (this.jsonRequestValidateFunctions.has(commandName) === false) {
+      // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
       this.jsonRequestValidateFunctions.set(commandName, this.ajv.compile<T>(schema).bind(this));
     }
     return this.jsonRequestValidateFunctions.get(commandName)!;
index ec14a193c0af7649b493657d6b0170ddf359c1e7..3f89759d33b6a191c1c2ee8d9384ba452de20b43 100644 (file)
@@ -1,6 +1,6 @@
 // Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved.
 
-import Queue from 'mnemonist/queue.js';
+import { Queue } from 'mnemonist';
 
 import { Constants } from './Constants.js';
 
index f0ac18e99aebfa2b2790c46d57fb72200e84b250..227c01bee3fd1691cdcda896dbd46d11fea71f5f 100644 (file)
@@ -1467,7 +1467,7 @@ packages:
     engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
     hasBin: true
     dependencies:
-      caniuse-lite: 1.0.30001571
+      caniuse-lite: 1.0.30001572
       electron-to-chromium: 1.4.616
       node-releases: 2.0.14
       update-browserslist-db: 1.0.13(browserslist@4.22.2)
@@ -1496,8 +1496,8 @@ packages:
     engines: {node: '>=10'}
     dev: true
 
-  /caniuse-lite@1.0.30001571:
-    resolution: {integrity: sha512-tYq/6MoXhdezDLFZuCO/TKboTzuQ/xR5cFdgXPfDtM7/kchBO3b4VWghE/OAi/DV7tTdhmLjZiZBZi1fA/GheQ==}
+  /caniuse-lite@1.0.30001572:
+    resolution: {integrity: sha512-1Pbh5FLmn5y4+QhNyJE9j3/7dK44dGB83/ZMjv/qJk86TvDbjk0LosiZo0i0WB0Vx607qMX9jYrn1VLHCkN4rw==}
     dev: true
 
   /chai@4.3.10: