From ff8741033874d69599a5265c3deaf23d6a433002 Mon Sep 17 00:00:00 2001 From: Guido Modarelli Date: Fri, 6 Dec 2024 15:47:58 -0300 Subject: [PATCH] fix(lint): remove unnecessary eslint-disable comment in configuration-store and add downlevelIteration option in tsconfig for improved standards --- plugins/wazuh-core/public/utils/configuration-store.ts | 1 - tsconfig.json | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/wazuh-core/public/utils/configuration-store.ts b/plugins/wazuh-core/public/utils/configuration-store.ts index 51ba05f557..993ed745d1 100644 --- a/plugins/wazuh-core/public/utils/configuration-store.ts +++ b/plugins/wazuh-core/public/utils/configuration-store.ts @@ -90,7 +90,6 @@ export class ConfigurationStore implements IConfigurationStore { }; for (const setting of settings) { - // eslint-disable-next-line @typescript-eslint/no-dynamic-delete delete updatedSettings[setting]; } diff --git a/tsconfig.json b/tsconfig.json index 9b8bad09c2..e584359561 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,7 +14,8 @@ "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - "jsx": "react-jsx" + "jsx": "react-jsx", + "downlevelIteration": true }, "include": ["plugins/**/public", "plugins/**/server", "plugins/**/common"] }