From 65771975328c61b396896fa101ed3d233e6cf957 Mon Sep 17 00:00:00 2001 From: LucasZF Date: Tue, 13 Jun 2023 02:26:59 +0900 Subject: [PATCH] fix(lint): Ignore implicit any in utils\normalize.ts (#3109) --- src/js/utils/normalize.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/utils/normalize.ts b/src/js/utils/normalize.ts index de190d4661..fb3245f99e 100644 --- a/src/js/utils/normalize.ts +++ b/src/js/utils/normalize.ts @@ -5,6 +5,7 @@ const KEY = 'value'; /** * Converts any input into a valid record with string keys. */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any export function convertToNormalizedObject(data: unknown): Record { const normalized: unknown = normalize(data); if (normalized === null || typeof normalized !== 'object') { @@ -12,6 +13,7 @@ export function convertToNormalizedObject(data: unknown): Record { [KEY]: normalized, }; } else { + // eslint-disable-next-line @typescript-eslint/no-explicit-any return normalized as Record; } }