Feature/switch typescript-eslint no-unused-expressions rule to error (#3872)

* Switch @typescript-eslint/no-unused-expressions to error (remove from eslint configuration)
This commit is contained in:
Thomas Kaul 2024-10-05 17:52:01 +02:00 committed by GitHub
parent e2ae43bf28
commit e715ce14e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View File

@ -107,7 +107,6 @@
"@typescript-eslint/no-unsafe-argument": "warn",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-unsafe-enum-comparison": "warn",
"@typescript-eslint/no-unused-expressions": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/no-unused-vars": "warn",

View File

@ -269,9 +269,13 @@ export class GfActivitiesTableComponent
}
public toggleAllRows() {
this.areAllRowsSelected()
? this.selectedRows.clear()
: this.dataSource.data.forEach((row) => this.selectedRows.select(row));
if (this.areAllRowsSelected()) {
this.selectedRows.clear();
} else {
this.dataSource.data.forEach((row) => {
this.selectedRows.select(row);
});
}
this.selectedActivities.emit(this.selectedRows.selected);
}