Enable various eslint rules (#1773)

## Description:

Enable various eslint rules.

## 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-11 22:14:00 -04:00
committed by GitHub
parent 8a41919ed7
commit ce49599229
109 changed files with 471 additions and 460 deletions
+7 -7
View File
@@ -115,17 +115,17 @@ export class AutoUpgradeEvent implements GameEvent {
}
export class InputHandler {
private lastPointerX: number = 0;
private lastPointerY: number = 0;
private lastPointerX = 0;
private lastPointerY = 0;
private lastPointerDownX: number = 0;
private lastPointerDownY: number = 0;
private lastPointerDownX = 0;
private lastPointerDownY = 0;
private pointers: Map<number, PointerEvent> = new Map();
private lastPinchDistance: number = 0;
private lastPinchDistance = 0;
private pointerDown: boolean = false;
private pointerDown = false;
private alternateView = false;
@@ -163,7 +163,7 @@ export class InputHandler {
};
// Mac users might have different keybinds
const isMac = /Mac/.test(navigator.userAgent);
const isMac = navigator.userAgent.includes("Mac");
if (isMac) {
this.keybinds.modifierKey = "MetaLeft"; // Use Command key on Mac
}