mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-16 16:04:11 +00:00
Enable the prefer-destructuring eslint rule (#1858)
## Description: Enable the `prefer-destructuring` 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:
@@ -532,7 +532,7 @@ export class StructureIconsLayer implements Layer {
|
||||
const screenPos = this.transformHandler.worldToScreenCoordinates(worldPos);
|
||||
|
||||
const { type, stage } = options;
|
||||
const scale = this.transformHandler.scale;
|
||||
const { scale } = this.transformHandler;
|
||||
const spritesEnabled = this.game
|
||||
.config()
|
||||
.userSettings()
|
||||
@@ -612,7 +612,7 @@ export class StructureIconsLayer implements Layer {
|
||||
const screenPos = this.transformHandler.worldToScreenCoordinates(worldPos);
|
||||
screenPos.x = Math.round(screenPos.x);
|
||||
|
||||
const scale = this.transformHandler.scale;
|
||||
const { scale } = this.transformHandler;
|
||||
screenPos.y = Math.round(
|
||||
scale >= ZOOM_THRESHOLD &&
|
||||
this.game.config().userSettings()?.structureSprites()
|
||||
|
||||
Reference in New Issue
Block a user