mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-22 09:56:55 +00:00
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:
@@ -1,4 +1,3 @@
|
||||
import { NukeExecution } from "../../../src/core/execution/NukeExecution";
|
||||
import {
|
||||
Game,
|
||||
Player,
|
||||
@@ -6,9 +5,10 @@ import {
|
||||
PlayerType,
|
||||
UnitType,
|
||||
} from "../../../src/core/game/Game";
|
||||
import { setup } from "../../util/Setup";
|
||||
import { NukeExecution } from "../../../src/core/execution/NukeExecution";
|
||||
import { TestConfig } from "../../util/TestConfig";
|
||||
import { executeTicks } from "../../util/utils";
|
||||
import { setup } from "../../util/Setup";
|
||||
|
||||
let game: Game;
|
||||
let player: Player;
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import { NukeExecution } from "../../../src/core/execution/NukeExecution";
|
||||
import { SAMLauncherExecution } from "../../../src/core/execution/SAMLauncherExecution";
|
||||
import { SpawnExecution } from "../../../src/core/execution/SpawnExecution";
|
||||
import { UpgradeStructureExecution } from "../../../src/core/execution/UpgradeStructureExecution";
|
||||
import {
|
||||
Game,
|
||||
Player,
|
||||
@@ -9,8 +5,12 @@ import {
|
||||
PlayerType,
|
||||
UnitType,
|
||||
} from "../../../src/core/game/Game";
|
||||
import { setup } from "../../util/Setup";
|
||||
import { constructionExecution, executeTicks } from "../../util/utils";
|
||||
import { NukeExecution } from "../../../src/core/execution/NukeExecution";
|
||||
import { SAMLauncherExecution } from "../../../src/core/execution/SAMLauncherExecution";
|
||||
import { SpawnExecution } from "../../../src/core/execution/SpawnExecution";
|
||||
import { UpgradeStructureExecution } from "../../../src/core/execution/UpgradeStructureExecution";
|
||||
import { setup } from "../../util/Setup";
|
||||
|
||||
let game: Game;
|
||||
let attacker: Player;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { TradeShipExecution } from "../../../src/core/execution/TradeShipExecution";
|
||||
import { Game, Player, Unit } from "../../../src/core/game/Game";
|
||||
import { TradeShipExecution } from "../../../src/core/execution/TradeShipExecution";
|
||||
import { setup } from "../../util/Setup";
|
||||
|
||||
describe("TradeShipExecution", () => {
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
import { AttackExecution } from "../../../src/core/execution/AttackExecution";
|
||||
import { SpawnExecution } from "../../../src/core/execution/SpawnExecution";
|
||||
//import { TransportShipExecution } from "../../../src/core/execution/TransportShipExecution";
|
||||
import { AllianceRequestExecution } from "../../../src/core/execution/alliance/AllianceRequestExecution";
|
||||
import { AllianceRequestReplyExecution } from "../../../src/core/execution/alliance/AllianceRequestReplyExecution";
|
||||
import {
|
||||
Game,
|
||||
Player,
|
||||
PlayerInfo,
|
||||
PlayerType,
|
||||
} from "../../../src/core/game/Game";
|
||||
import { AllianceRequestExecution } from "../../../src/core/execution/alliance/AllianceRequestExecution";
|
||||
import { AllianceRequestReplyExecution } from "../../../src/core/execution/alliance/AllianceRequestReplyExecution";
|
||||
import { AttackExecution } from "../../../src/core/execution/AttackExecution";
|
||||
import { SpawnExecution } from "../../../src/core/execution/SpawnExecution";
|
||||
import { TileRef } from "../../../src/core/game/GameMap";
|
||||
import { setup } from "../../util/Setup";
|
||||
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
import { Unit } from "../../../src/core/game/Game";
|
||||
import {
|
||||
RailNetworkImpl,
|
||||
StationManagerImpl,
|
||||
} from "../../../src/core/game/RailNetworkImpl";
|
||||
import { Railroad } from "../../../src/core/game/Railroad";
|
||||
import { RailNetworkImpl, StationManagerImpl } from "../../../src/core/game/RailNetworkImpl";
|
||||
import { Cluster } from "../../../src/core/game/TrainStation";
|
||||
import { Railroad } from "../../../src/core/game/Railroad";
|
||||
import { Unit } from "../../../src/core/game/Game";
|
||||
|
||||
// Mock types
|
||||
const createMockStation = (unitId: number): any => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { TrainExecution } from "../../../src/core/execution/TrainExecution";
|
||||
import { Game, Player, Unit, UnitType } from "../../../src/core/game/Game";
|
||||
import { Cluster, TrainStation } from "../../../src/core/game/TrainStation";
|
||||
import { Game, Player, Unit, UnitType } from "../../../src/core/game/Game";
|
||||
import { TrainExecution } from "../../../src/core/execution/TrainExecution";
|
||||
|
||||
jest.mock("../../../src/core/game/Game");
|
||||
jest.mock("../../../src/core/execution/TrainExecution");
|
||||
|
||||
Reference in New Issue
Block a user