Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamiell committed Oct 17, 2024
1 parent 2d1ddd9 commit 5987681
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion cspell.config.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
// @template-customization-end
],
"words": [
"APPDATA",
"celsiusnarhwal",
"docsearch",
"klaw",
Expand Down
2 changes: 1 addition & 1 deletion packages/isaacscript-cli/src/customStage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function validateMetadataLuaFileExists(packageManager: PackageManager) {
*/
async function getCustomStagesWithMetadata(
customStagesTSConfig: readonly CustomStageTSConfig[],
): Promise<CustomStageLua[]> {
): Promise<readonly CustomStageLua[]> {
if (!isFile(METADATA_LUA_PATH)) {
fatalError(
`${chalk.red(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export class CustomGridEntities extends Feature {
* @public
*/
@Exported
public getCustomGridEntities(): Array<{
public getCustomGridEntities(): ReadonlyArray<{
gridEntity: GridEntity;
data: GridEntityCustomData;
}> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ export class ModdedElementSets extends Feature {
@Exported
public getPlayerCollectibleMap(
player: EntityPlayer,
): Map<CollectibleType, int> {
): ReadonlyMap<CollectibleType, int> {
const collectibleArray = this.getCollectibleTypes();

const collectibleMap = new Map<CollectibleType, int>();
Expand Down Expand Up @@ -976,7 +976,7 @@ export class ModdedElementSets extends Feature {
public getPlayerTrinketsWithCacheFlag(
player: EntityPlayer,
cacheFlag: CacheFlag,
): Map<TrinketType, int> {
): ReadonlyMap<TrinketType, int> {
const trinketTypesWithCacheFlag =
this.getTrinketsTypesWithCacheFlag(cacheFlag);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<PickupIndex, PickupDescription>
| undefined {
Expand Down

0 comments on commit 5987681

Please sign in to comment.