Skip to content

Commit

Permalink
disable linting for one line
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasHermansen-Computas committed Sep 18, 2024
1 parent a431a06 commit e38ca23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/game/services/web-socket.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export class WebSocketService {
this.handleConnectionError();
});

// Disable any type check for only this one because the spread parameter will take parameters of different types
// eslint-disable-next-line @typescript-eslint/no-explicit-any
this.socket.on('disconnect', (reason: any) => {
console.warn('disconnected', reason);
this.isConnected = false;
Expand Down

0 comments on commit e38ca23

Please sign in to comment.