Enable the sort-imports eslint rule (#1849)

## Description:

Enable the `sort-imports` eslint rule.

Fixes #1784

## 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-17 20:53:44 -04:00
committed by GitHub
parent 62c08e25c2
commit 0a40bcebf0
180 changed files with 792 additions and 813 deletions
+6 -6
View File
@@ -1,6 +1,3 @@
import fs from "fs";
import path from "path";
import { z } from "zod";
import {
Difficulty,
Game,
@@ -10,15 +7,18 @@ import {
PlayerInfo,
PlayerType,
} from "../../src/core/game/Game";
import { createGame } from "../../src/core/game/GameImpl";
import {
genTerrainFromBin,
MapManifestSchema,
genTerrainFromBin,
} from "../../src/core/game/TerrainMapLoader";
import { UserSettings } from "../../src/core/game/UserSettings";
import { GameConfig } from "../../src/core/Schemas";
import { TestConfig } from "./TestConfig";
import { TestServerConfig } from "./TestServerConfig";
import { UserSettings } from "../../src/core/game/UserSettings";
import { createGame } from "../../src/core/game/GameImpl";
import fs from "fs";
import path from "path";
import { z } from "zod";
export async function setup(
mapName: string,
+2 -2
View File
@@ -1,5 +1,3 @@
import { NukeMagnitude } from "../../src/core/configuration/Config";
import { DefaultConfig } from "../../src/core/configuration/DefaultConfig";
import {
Game,
Player,
@@ -7,6 +5,8 @@ import {
Tick,
UnitType,
} from "../../src/core/game/Game";
import { DefaultConfig } from "../../src/core/configuration/DefaultConfig";
import { NukeMagnitude } from "../../src/core/configuration/Config";
import { TileRef } from "../../src/core/game/GameMap";
export class TestConfig extends DefaultConfig {
+2 -2
View File
@@ -1,7 +1,7 @@
import { JWK } from "jose";
import { GameEnv, ServerConfig } from "../../src/core/configuration/Config";
import { GameMapType } from "../../src/core/game/Game";
import { GameID } from "../../src/core/Schemas";
import { GameMapType } from "../../src/core/game/Game";
import { JWK } from "jose";
export class TestServerConfig implements ServerConfig {
allowedFlares(): string[] | undefined {
+1 -1
View File
@@ -3,8 +3,8 @@
// However buildUnit do not create executions (e.g.: WarshipExecution)
// If you also need execution use function below. Does not work with things not
import { ConstructionExecution } from "../../src/core/execution/ConstructionExecution";
import { Game, Player, UnitType } from "../../src/core/game/Game";
import { ConstructionExecution } from "../../src/core/execution/ConstructionExecution";
// built via UI (e.g.: trade ships)
export function constructionExecution(