mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-30 08:02:12 +00:00
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:
@@ -131,7 +131,7 @@ export class RadialMenu implements Layer {
|
||||
this.hideRadialMenu();
|
||||
this.eventBus.emit(new CloseRadialMenuEvent());
|
||||
})
|
||||
.on("contextmenu", (e) => {
|
||||
.on("contextmenu", (e: Event) => {
|
||||
e.preventDefault();
|
||||
this.hideRadialMenu();
|
||||
this.eventBus.emit(new CloseRadialMenuEvent());
|
||||
@@ -178,7 +178,7 @@ export class RadialMenu implements Layer {
|
||||
.attr("r", this.config.centerButtonSize)
|
||||
.attr("fill", "transparent")
|
||||
.style("cursor", "pointer")
|
||||
.on("click", (event) => {
|
||||
.on("click", (event: Event) => {
|
||||
event.stopPropagation();
|
||||
this.handleCenterButtonClick();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user