From 897681d14c583a9f1dda3858a96e3153e07c3cc1 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Tue, 22 Jul 2025 18:45:08 +0200 Subject: [PATCH] Disable no-explicit-any warning --- .eslintrc | 2 +- src/controllers/api/crewShipFusionController.ts | 1 - src/controllers/dynamic/getProfileViewingDataController.ts | 2 +- src/services/configService.ts | 2 +- src/types/inventoryTypes/inventoryTypes.ts | 1 - 5 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.eslintrc b/.eslintrc index 00926e21..aa166037 100644 --- a/.eslintrc +++ b/.eslintrc @@ -21,7 +21,7 @@ "@typescript-eslint/no-unsafe-argument": "error", "@typescript-eslint/no-unsafe-call": "error", "@typescript-eslint/no-unsafe-assignment": "error", - "@typescript-eslint/no-explicit-any": "error", + "@typescript-eslint/no-explicit-any": "off", "no-loss-of-precision": "error", "@typescript-eslint/no-unnecessary-condition": "error", "@typescript-eslint/no-base-to-string": "off", diff --git a/src/controllers/api/crewShipFusionController.ts b/src/controllers/api/crewShipFusionController.ts index 87cfd2ce..160c19b7 100644 --- a/src/controllers/api/crewShipFusionController.ts +++ b/src/controllers/api/crewShipFusionController.ts @@ -88,7 +88,6 @@ export const crewShipFusionController: RequestHandler = async (req, res) => { } } superiorItem.UpgradeFingerprint = JSON.stringify(fingerprint); - // eslint-disable-next-line @typescript-eslint/no-explicit-any inventoryChanges[category] = [superiorItem.toJSON() as any]; await inventory.save(); diff --git a/src/controllers/dynamic/getProfileViewingDataController.ts b/src/controllers/dynamic/getProfileViewingDataController.ts index 221eaebb..b89ab917 100644 --- a/src/controllers/dynamic/getProfileViewingDataController.ts +++ b/src/controllers/dynamic/getProfileViewingDataController.ts @@ -141,7 +141,7 @@ export const getProfileViewingDataGetController: RequestHandler = async (req, re } } } else { - // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-explicit-any + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument combinedStats[arrayName].push(entry as any); } } diff --git a/src/services/configService.ts b/src/services/configService.ts index 95a2bd4e..3fd0483e 100644 --- a/src/services/configService.ts +++ b/src/services/configService.ts @@ -114,7 +114,7 @@ export const loadConfig = (): void => { // Set all values to undefined now so if the new config.json omits some fields that were previously present, it's correct in-memory. for (const key of Object.keys(config)) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access (config as any)[key] = undefined; } diff --git a/src/types/inventoryTypes/inventoryTypes.ts b/src/types/inventoryTypes/inventoryTypes.ts index 4fa39f93..9df4e4ba 100644 --- a/src/types/inventoryTypes/inventoryTypes.ts +++ b/src/types/inventoryTypes/inventoryTypes.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ import { Types } from "mongoose"; import { IOid, IMongoDate, IOidWithLegacySupport, ITypeCount } from "@/src/types/commonTypes"; import {