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
+8 -8
View File
@@ -26,7 +26,7 @@ export enum GameEnv {
Prod,
}
export interface ServerConfig {
export type ServerConfig = {
turnIntervalMs(): number;
gameCreationRate(): number;
lobbyMaxPlayers(
@@ -62,14 +62,14 @@ export interface ServerConfig {
cloudflareCredsPath(): string;
stripePublishableKey(): string;
allowedFlares(): string[] | undefined;
}
};
export interface NukeMagnitude {
export type NukeMagnitude = {
inner: number;
outer: number;
}
};
export interface Config {
export type Config = {
samHittingChance(): number;
samWarheadHittingChance(): number;
spawnImmunityDuration(): Tick;
@@ -170,9 +170,9 @@ export interface Config {
structureMinDist(): number;
isReplay(): boolean;
allianceExtensionPromptOffset(): number;
}
};
export interface Theme {
export type Theme = {
teamColor(team: Team): Colord;
territoryColor(playerInfo: PlayerView): Colord;
specialBuildingColor(playerInfo: PlayerView): Colord;
@@ -190,4 +190,4 @@ export interface Theme {
allyColor(): Colord;
enemyColor(): Colord;
spawnHighlightColor(): Colord;
}
};