From 5987681e5c1c56ff79dc3ed622a0a6f10ca5e0bf Mon Sep 17 00:00:00 2001 From: Zamiell <5511220+Zamiell@users.noreply.github.com> Date: Thu, 17 Oct 2024 08:24:07 -0400 Subject: [PATCH] fix: lint --- cspell.config.jsonc | 1 - packages/isaacscript-cli/src/customStage.ts | 2 +- .../src/classes/features/callbackLogic/CustomGridEntities.ts | 2 +- .../src/classes/features/other/EdenStartingStatsHealth.ts | 4 +++- .../src/classes/features/other/ModdedElementSets.ts | 4 ++-- .../src/classes/features/other/PickupIndexCreation.ts | 1 + 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/cspell.config.jsonc b/cspell.config.jsonc index 233bf6c41..7b63fed71 100644 --- a/cspell.config.jsonc +++ b/cspell.config.jsonc @@ -37,7 +37,6 @@ // @template-customization-end ], "words": [ - "APPDATA", "celsiusnarhwal", "docsearch", "klaw", diff --git a/packages/isaacscript-cli/src/customStage.ts b/packages/isaacscript-cli/src/customStage.ts index 0595e88e6..f7f788301 100644 --- a/packages/isaacscript-cli/src/customStage.ts +++ b/packages/isaacscript-cli/src/customStage.ts @@ -253,7 +253,7 @@ function validateMetadataLuaFileExists(packageManager: PackageManager) { */ async function getCustomStagesWithMetadata( customStagesTSConfig: readonly CustomStageTSConfig[], -): Promise { +): Promise { if (!isFile(METADATA_LUA_PATH)) { fatalError( `${chalk.red( diff --git a/packages/isaacscript-common/src/classes/features/callbackLogic/CustomGridEntities.ts b/packages/isaacscript-common/src/classes/features/callbackLogic/CustomGridEntities.ts index 93d9395d7..6b2fb9648 100644 --- a/packages/isaacscript-common/src/classes/features/callbackLogic/CustomGridEntities.ts +++ b/packages/isaacscript-common/src/classes/features/callbackLogic/CustomGridEntities.ts @@ -348,7 +348,7 @@ export class CustomGridEntities extends Feature { * @public */ @Exported - public getCustomGridEntities(): Array<{ + public getCustomGridEntities(): ReadonlyArray<{ gridEntity: GridEntity; data: GridEntityCustomData; }> { diff --git a/packages/isaacscript-common/src/classes/features/other/EdenStartingStatsHealth.ts b/packages/isaacscript-common/src/classes/features/other/EdenStartingStatsHealth.ts index d7b9be823..34aaabb47 100644 --- a/packages/isaacscript-common/src/classes/features/other/EdenStartingStatsHealth.ts +++ b/packages/isaacscript-common/src/classes/features/other/EdenStartingStatsHealth.ts @@ -130,7 +130,9 @@ export class EdenStartingStatsHealth extends Feature { * @public */ @Exported - public getEdenStartingCollectibles(player: EntityPlayer): CollectibleType[] { + public getEdenStartingCollectibles( + player: EntityPlayer, + ): readonly CollectibleType[] { const collectibleTypes: CollectibleType[] = []; const activeCollectibleType = mapGetPlayer( diff --git a/packages/isaacscript-common/src/classes/features/other/ModdedElementSets.ts b/packages/isaacscript-common/src/classes/features/other/ModdedElementSets.ts index 4a49639df..f3cbc1a8f 100644 --- a/packages/isaacscript-common/src/classes/features/other/ModdedElementSets.ts +++ b/packages/isaacscript-common/src/classes/features/other/ModdedElementSets.ts @@ -574,7 +574,7 @@ export class ModdedElementSets extends Feature { @Exported public getPlayerCollectibleMap( player: EntityPlayer, - ): Map { + ): ReadonlyMap { const collectibleArray = this.getCollectibleTypes(); const collectibleMap = new Map(); @@ -976,7 +976,7 @@ export class ModdedElementSets extends Feature { public getPlayerTrinketsWithCacheFlag( player: EntityPlayer, cacheFlag: CacheFlag, - ): Map { + ): ReadonlyMap { const trinketTypesWithCacheFlag = this.getTrinketsTypesWithCacheFlag(cacheFlag); diff --git a/packages/isaacscript-common/src/classes/features/other/PickupIndexCreation.ts b/packages/isaacscript-common/src/classes/features/other/PickupIndexCreation.ts index aa4a57dd9..7cd931508 100644 --- a/packages/isaacscript-common/src/classes/features/other/PickupIndexCreation.ts +++ b/packages/isaacscript-common/src/classes/features/other/PickupIndexCreation.ts @@ -186,6 +186,7 @@ export class PickupIndexCreation extends Feature { * pickup could re-appear during The Ascent. If this is the case, we store the metadata on a * separate map to reference later. */ + // eslint-disable-next-line complete/no-mutable-return private getPickupDataMapForCurrentRoom(): | Map | undefined {