Enable the @typescript-eslint/no-unsafe-member-access eslint rule (#1833)

## Description:

Enable the `@typescript-eslint/no-unsafe-member-access` eslint rule.

Fixes #1783

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
This commit is contained in:
Scott Anderson
2025-08-15 22:11:09 -04:00
committed by GitHub
parent 2dfd39f316
commit 5aacf5b5be
11 changed files with 23 additions and 8 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ export class GameServer {
);
});
client.ws.on("error", (error: Error) => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
if ((error as any).code === "WS_ERR_UNEXPECTED_RSV_1") {
client.ws.close(1002, "WS_ERR_UNEXPECTED_RSV_1");
}