From bcd41108e687696971b8d2b9a25c5630b07e8c53 Mon Sep 17 00:00:00 2001 From: Jeff MAURY Date: Wed, 22 May 2024 16:46:25 +0200 Subject: [PATCH] fix: update for eslint-plugin-sonarjs 1.0.3 Signed-off-by: Jeff MAURY --- .eslintrc.json | 2 +- packages/backend/src/registries/TaskRegistry.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index f24ee2bae..54b74f339 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -12,7 +12,7 @@ "plugin:import/recommended", "plugin:import/typescript", "plugin:etc/recommended", - "plugin:sonarjs/recommended" + "plugin:sonarjs/recommended-legacy" ], "parser": "@typescript-eslint/parser", "parserOptions": { diff --git a/packages/backend/src/registries/TaskRegistry.ts b/packages/backend/src/registries/TaskRegistry.ts index 3c9566989..227bd1c0f 100644 --- a/packages/backend/src/registries/TaskRegistry.ts +++ b/packages/backend/src/registries/TaskRegistry.ts @@ -89,7 +89,7 @@ export class TaskRegistry { * @param taskIds The IDs of the tasks to delete. */ deleteAll(taskIds: string[]) { - taskIds.map(taskId => this.tasks.delete(taskId)); + taskIds.forEach(taskId => this.tasks.delete(taskId)); this.notify(); }