Enable the object-shorthand eslint rule (#1857)

## Description:

Enable the `object-shorthand` eslint rule.

## 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-18 19:51:55 -04:00
committed by GitHub
parent 6d0ae88e8c
commit ed090b88b5
21 changed files with 46 additions and 45 deletions
+3 -3
View File
@@ -165,7 +165,7 @@ export class PlayerImpl implements Player {
retreating: a.retreating(),
} satisfies AttackUpdate;
}),
outgoingAllianceRequests: outgoingAllianceRequests,
outgoingAllianceRequests,
alliances: this.alliances().map(
(a) =>
({
@@ -706,7 +706,7 @@ export class PlayerImpl implements Player {
this.embargoes.set(other.id(), {
createdAt: this.mg.ticks(),
isTemporary: isTemporary,
isTemporary,
target: other,
});
}
@@ -887,7 +887,7 @@ export class PlayerImpl implements Player {
canBuild: this.mg.inSpawnPhase()
? false
: this.canBuild(u, tile, validTiles),
canUpgrade: canUpgrade,
canUpgrade,
cost: this.mg.config().unitInfo(u).cost(this),
type: u,
} as BuildableUnit;