Skip to content

Commit

Permalink
fix: update for eslint-plugin-sonarjs 1.0.3
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff MAURY <[email protected]>
  • Loading branch information
jeffmaury committed May 22, 2024
1 parent 8f2abf6 commit bcd4110
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/registries/TaskRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit bcd4110

Please sign in to comment.