From 3b0fa8fcefb184158301a774fbdfa30521f0bc6e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 21 Jun 2024 11:43:00 +0200 Subject: [PATCH] build(deps-dev): bump eslint-plugin-sonarjs from 0.25.1 to 1.0.3 (#1060) * build(deps-dev): bump eslint-plugin-sonarjs from 0.25.1 to 1.0.3 Bumps [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs) from 0.25.1 to 1.0.3. - [Release notes](https://github.com/SonarSource/eslint-plugin-sonarjs/releases) - [Commits](https://github.com/SonarSource/eslint-plugin-sonarjs/compare/0.25.1...1.0.3) --- updated-dependencies: - dependency-name: eslint-plugin-sonarjs dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * fix: update for eslint-plugin-sonarjs 1.0.3 Signed-off-by: Jeff MAURY --------- Signed-off-by: dependabot[bot] Signed-off-by: Jeff MAURY Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jeff MAURY --- .eslintrc.json | 2 +- package.json | 2 +- packages/backend/src/registries/TaskRegistry.ts | 2 +- yarn.lock | 8 ++++---- 4 files changed, 7 insertions(+), 7 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/package.json b/package.json index b795a0b9a..26931de21 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "eslint-plugin-import": "^2.29.1", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-redundant-undefined": "^1.0.0", - "eslint-plugin-sonarjs": "^0.25.1", + "eslint-plugin-sonarjs": "^1.0.3", "prettier": "^3.3.2", "prettier-plugin-svelte": "^3.2.5", "svelte-check": "^3.8.1", 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(); } diff --git a/yarn.lock b/yarn.lock index 9ccccf87f..3b49d6594 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2015,10 +2015,10 @@ eslint-plugin-redundant-undefined@^1.0.0: dependencies: "@typescript-eslint/utils" "^6.2.1" -eslint-plugin-sonarjs@^0.25.1: - version "0.25.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.25.1.tgz#0619798dbc27b04fd0a8e6d0fb6adf7fa2cb5041" - integrity sha512-5IOKvj/GMBNqjxBdItfotfRHo7w48496GOu1hxdeXuD0mB1JBlDCViiLHETDTfA8pDAVSBimBEQoetRXYceQEw== +eslint-plugin-sonarjs@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-1.0.3.tgz#423de6f9244c886633ff36183c6fbc9fb1ed867d" + integrity sha512-6s41HLPYPyDrp+5+7Db5yFYbod6h9pC7yx+xfcNwHRcLe1EZwbbQT/tdOAkR7ekVUkNGEvN3GmYakIoQUX7dEg== eslint-scope@^5.1.1: version "5.1.1"