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

* Switch @typescript-eslint/no-unused-expressions to error (remove from eslint configuration)
pull/3879/head
Thomas Kaul 2 months ago committed by GitHub
parent e2ae43bf28
commit e715ce14e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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",

@ -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);
}

Loading…
Cancel
Save