mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-28 17:17:58 +00:00
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:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user