mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-04 21:47:08 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user