Skip to content

Commit d662ea6

Browse files
committed
fix: lint
1 parent 63c2273 commit d662ea6

File tree

8 files changed

+95
-88
lines changed

8 files changed

+95
-88
lines changed

packages/isaac-typescript-definitions-repentogon/src/types/classes/Game.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ declare global {
1414
* Returns whether achievements cannot be unlocked in this run.
1515
*
1616
* Achievements can be blocked for a variety of reasons, such as:
17-
* - The player playing on a challenge.
18-
* - The player is doing a victory lap.
19-
* - The player is playing on a seeded run.
17+
*
18+
* - The player playing on a challenge.
19+
* - The player is doing a victory lap.
20+
* - The player is playing on a seeded run.
2021
*/
2122
AchievementUnlocksDisallowed: () => boolean;
2223

packages/isaac-typescript-definitions-repentogon/src/types/classes/Isaac.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,9 @@ declare global {
492492
* pressed.
493493
*
494494
* It's a good idea to not heavily rely on this function as:
495-
* - Players using a gamepad are unable to navigate the popup. They will have to use a mouse,
496-
* keyboard, or touchscreen.
495+
*
496+
* - Players using a gamepad are unable to navigate the popup. They will have to use a mouse,
497+
* keyboard, or touchscreen.
497498
* - The window title will not show up in some environments such as the Steam Deck.
498499
*
499500
* @param title

packages/isaac-typescript-definitions-repentogon/src/types/classes/entity/EntityPlayer.d.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ declare global {
115115
* instance, every single active item grants a collectible effect on use and are often tied to
116116
* its effect. Therefore, collectible effects can be seen as more tied to an item's state, such
117117
* as:
118-
* - The Holy Mantle tracking how many shield charges the player has.
119-
* - How most familiars are granted to the player.
120-
* - Activating the effects of Whore of Babylon and Crown of Light.
118+
*
119+
* - The Holy Mantle tracking how many shield charges the player has.
120+
* - How most familiars are granted to the player.
121+
* - Activating the effects of Whore of Babylon and Crown of Light.
121122
*
122123
* This method is a shortcut to `TemporaryEffects.AddCollectibleEffect` with extra cooldown
123124
* arguments.
@@ -189,9 +190,10 @@ declare global {
189190
* instance, every single active item grants a collectible effect on use and are often tied to
190191
* its effect. Therefore, collectible effects can be seen as more tied to an item's state, such
191192
* as:
192-
* - The Holy Mantle tracking how many shield charges the player has.
193-
* - How most familiars are granted to the player.
194-
* - Activating the effects of Whore of Babylon and Crown of Light.
193+
*
194+
* - The Holy Mantle tracking how many shield charges the player has.
195+
* - How most familiars are granted to the player.
196+
* - Activating the effects of Whore of Babylon and Crown of Light.
195197
*
196198
* This method is a shortcut to `TemporaryEffects.AddNullEffect` with extra cooldown arguments.
197199
*
@@ -286,9 +288,10 @@ declare global {
286288
* Returns whether the player can crush rocks and similar grid entities on contact.
287289
*
288290
* This method only returns true if:
289-
* - The player has Leo or Thunder Thighs in their inventory.
290-
* - The effects from The Nail or Mega Mush is active.
291-
* - The player has the Stompy transformation.
291+
*
292+
* - The player has Leo or Thunder Thighs in their inventory.
293+
* - The effects from The Nail or Mega Mush is active.
294+
* - The player has the Stompy transformation.
292295
*/
293296
CanCrushRocks: () => boolean;
294297

packages/isaacscript-common/src/enums/ModCallbackCustom.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,11 @@ export enum ModCallbackCustom {
591591
*
592592
* `POST_GAME_STARTED_REORDERED` --> `POST_NEW_LEVEL_REORDERED` --> `POST_NEW_ROOM_REORDERED`
593593
*
594-
* - You must provide a third argument:
595-
* - Pass true if you want the callback to only fire if the run is continued.
596-
* - Pass false if you want the callback to only fire when the run is not continued.
597-
* - Pass undefined if you want the callback to fire in both situations.
594+
* You must provide a third argument:
595+
*
596+
* - Pass true if you want the callback to only fire if the run is continued.
597+
* - Pass false if you want the callback to only fire when the run is not continued.
598+
* - Pass undefined if you want the callback to fire in both situations.
598599
*
599600
* (The third argument for this callback is mandatory in order to prevent users from shooting
600601
* themselves in the foot with respect to logic unexpectedly being executed on continued runs.)
@@ -611,10 +612,11 @@ export enum ModCallbackCustom {
611612
* new run has started (or continued), but you can be sure that all new-run-related initialization
612613
* has been completed.
613614
*
614-
* - You must provide a third argument:
615-
* - Pass true if you want the callback to only fire if the run is continued.
616-
* - Pass false if you want the callback to only fire when the run is not continued.
617-
* - Pass undefined if you want the callback to fire in both situations.
615+
* You must provide a third argument:
616+
*
617+
* - Pass true if you want the callback to only fire if the run is continued.
618+
* - Pass false if you want the callback to only fire when the run is not continued.
619+
* - Pass undefined if you want the callback to fire in both situations.
618620
*
619621
* (The third argument for this callback is mandatory in order to prevent users from shooting
620622
* themselves in the foot with respect to logic unexpectedly being executed on continued runs.)

packages/isaacscript-common/src/functions/bosses.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ export function spawnBoss(
272272
subType: int,
273273
positionOrGridIndex: Vector | int,
274274
velocity: Vector = VectorZero,
275-
spawner: Entity | undefined = undefined,
276-
seedOrRNG: Seed | RNG | undefined = undefined,
275+
spawner?: Entity,
276+
seedOrRNG?: Seed | RNG,
277277
numSegments?: int,
278278
): EntityNPC {
279279
const seed = isRNG(seedOrRNG) ? seedOrRNG.Next() : seedOrRNG;
@@ -322,7 +322,7 @@ export function spawnBossWithSeed(
322322
positionOrGridIndex: Vector | int,
323323
seedOrRNG: Seed | RNG,
324324
velocity: Vector = VectorZero,
325-
spawner: Entity | undefined = undefined,
325+
spawner?: Entity,
326326
numSegments?: int,
327327
): EntityNPC {
328328
const seed = isRNG(seedOrRNG) ? seedOrRNG.Next() : seedOrRNG;

packages/isaacscript-common/src/functions/entities.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ export function removeAllMatchingEntities(
547547
entityType: EntityType,
548548
entityVariant = -1,
549549
entitySubType = -1,
550-
cap: int | undefined = undefined,
550+
cap?: int,
551551
): readonly Entity[] {
552552
const entities = getEntities(entityType, entityVariant, entitySubType);
553553
return removeEntities(entities, cap);
@@ -662,8 +662,8 @@ export function spawn(
662662
subType: int,
663663
positionOrGridIndex: Vector | int,
664664
velocity: Vector = VectorZero,
665-
spawner: Entity | undefined = undefined,
666-
seedOrRNG: Seed | RNG | undefined = undefined,
665+
spawner?: Entity,
666+
seedOrRNG?: Seed | RNG,
667667
): Entity {
668668
const room = game.GetRoom();
669669

@@ -709,8 +709,8 @@ export function spawnEntityID(
709709
entityID: EntityID,
710710
positionOrGridIndex: Vector | int,
711711
velocity: Vector = VectorZero,
712-
spawner: Entity | undefined = undefined,
713-
seedOrRNG: Seed | RNG | undefined = undefined,
712+
spawner?: Entity,
713+
seedOrRNG?: Seed | RNG,
714714
): Entity {
715715
const [entityType, variant, subType] = getConstituentsFromEntityID(entityID);
716716
return spawn(
@@ -735,7 +735,7 @@ export function spawnWithSeed(
735735
positionOrGridIndex: Vector | int,
736736
seedOrRNG: Seed | RNG,
737737
velocity: Vector = VectorZero,
738-
spawner: Entity | undefined = undefined,
738+
spawner?: Entity,
739739
): Entity {
740740
return spawn(
741741
entityType,

packages/isaacscript-common/src/functions/entitiesSpecific.ts

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,8 @@ export function spawnBomb(
549549
subType: int,
550550
positionOrGridIndex: Vector | int,
551551
velocity: Vector = VectorZero,
552-
spawner: Entity | undefined = undefined,
553-
seedOrRNG: Seed | RNG | undefined = undefined,
552+
spawner?: Entity,
553+
seedOrRNG?: Seed | RNG,
554554
): EntityBomb {
555555
const entity = spawn(
556556
EntityType.BOMB,
@@ -575,7 +575,7 @@ export function spawnBombWithSeed(
575575
positionOrGridIndex: Vector | int,
576576
seedOrRNG: Seed | RNG,
577577
velocity: Vector = VectorZero,
578-
spawner: Entity | undefined = undefined,
578+
spawner?: Entity,
579579
): EntityBomb {
580580
return spawnBomb(
581581
bombVariant,
@@ -593,8 +593,8 @@ export function spawnEffect(
593593
subType: int,
594594
positionOrGridIndex: Vector | int,
595595
velocity: Vector = VectorZero,
596-
spawner: Entity | undefined = undefined,
597-
seedOrRNG: Seed | RNG | undefined = undefined,
596+
spawner?: Entity,
597+
seedOrRNG?: Seed | RNG,
598598
): EntityEffect {
599599
const entity = spawn(
600600
EntityType.EFFECT,
@@ -619,7 +619,7 @@ export function spawnEffectWithSeed(
619619
positionOrGridIndex: Vector | int,
620620
seedOrRNG: Seed | RNG,
621621
velocity: Vector = VectorZero,
622-
spawner: Entity | undefined = undefined,
622+
spawner?: Entity,
623623
): EntityEffect {
624624
return spawnEffect(
625625
effectVariant,
@@ -642,8 +642,8 @@ export function spawnFamiliar(
642642
subType: int,
643643
positionOrGridIndex: Vector | int,
644644
velocity: Vector = VectorZero,
645-
spawner: Entity | undefined = undefined,
646-
seedOrRNG: Seed | RNG | undefined = undefined,
645+
spawner?: Entity,
646+
seedOrRNG?: Seed | RNG,
647647
): EntityFamiliar {
648648
const entity = spawn(
649649
EntityType.FAMILIAR,
@@ -668,7 +668,7 @@ export function spawnFamiliarWithSeed(
668668
positionOrGridIndex: Vector | int,
669669
seedOrRNG: Seed | RNG,
670670
velocity: Vector = VectorZero,
671-
spawner: Entity | undefined = undefined,
671+
spawner?: Entity,
672672
): EntityFamiliar {
673673
return spawnFamiliar(
674674
familiarVariant,
@@ -686,8 +686,8 @@ export function spawnKnife(
686686
subType: int,
687687
positionOrGridIndex: Vector | int,
688688
velocity: Vector = VectorZero,
689-
spawner: Entity | undefined = undefined,
690-
seedOrRNG: Seed | RNG | undefined = undefined,
689+
spawner?: Entity,
690+
seedOrRNG?: Seed | RNG,
691691
): EntityKnife {
692692
const entity = spawn(
693693
EntityType.KNIFE,
@@ -712,7 +712,7 @@ export function spawnKnifeWithSeed(
712712
positionOrGridIndex: Vector | int,
713713
seedOrRNG: Seed | RNG,
714714
velocity: Vector = VectorZero,
715-
spawner: Entity | undefined = undefined,
715+
spawner?: Entity,
716716
): EntityKnife {
717717
return spawnKnife(
718718
knifeVariant,
@@ -730,8 +730,8 @@ export function spawnLaser(
730730
subType: int,
731731
positionOrGridIndex: Vector | int,
732732
velocity: Vector = VectorZero,
733-
spawner: Entity | undefined = undefined,
734-
seedOrRNG: Seed | RNG | undefined = undefined,
733+
spawner?: Entity,
734+
seedOrRNG?: Seed | RNG,
735735
): EntityLaser {
736736
const entity = spawn(
737737
EntityType.LASER,
@@ -756,7 +756,7 @@ export function spawnLaserWithSeed(
756756
positionOrGridIndex: Vector | int,
757757
seedOrRNG: Seed | RNG,
758758
velocity: Vector = VectorZero,
759-
spawner: Entity | undefined = undefined,
759+
spawner?: Entity,
760760
): EntityLaser {
761761
return spawnLaser(
762762
laserVariant,
@@ -780,8 +780,8 @@ export function spawnNPC(
780780
subType: int,
781781
positionOrGridIndex: Vector | int,
782782
velocity: Vector = VectorZero,
783-
spawner: Entity | undefined = undefined,
784-
seedOrRNG: Seed | RNG | undefined = undefined,
783+
spawner?: Entity,
784+
seedOrRNG?: Seed | RNG,
785785
): EntityNPC {
786786
const entity = spawn(
787787
entityType,
@@ -812,7 +812,7 @@ export function spawnNPCWithSeed(
812812
positionOrGridIndex: Vector | int,
813813
seedOrRNG: Seed | RNG,
814814
velocity: Vector = VectorZero,
815-
spawner: Entity | undefined = undefined,
815+
spawner?: Entity,
816816
): EntityNPC {
817817
return spawnNPC(
818818
entityType,
@@ -831,8 +831,8 @@ export function spawnPickup(
831831
subType: int,
832832
positionOrGridIndex: Vector | int,
833833
velocity: Vector = VectorZero,
834-
spawner: Entity | undefined = undefined,
835-
seedOrRNG: Seed | RNG | undefined = undefined,
834+
spawner?: Entity,
835+
seedOrRNG?: Seed | RNG,
836836
): EntityPickup {
837837
const entity = spawn(
838838
EntityType.PICKUP,
@@ -857,7 +857,7 @@ export function spawnPickupWithSeed(
857857
positionOrGridIndex: Vector | int,
858858
seedOrRNG: Seed | RNG,
859859
velocity: Vector = VectorZero,
860-
spawner: Entity | undefined = undefined,
860+
spawner?: Entity,
861861
): EntityPickup {
862862
return spawnPickup(
863863
pickupVariant,
@@ -875,8 +875,8 @@ export function spawnProjectile(
875875
subType: int,
876876
positionOrGridIndex: Vector | int,
877877
velocity: Vector = VectorZero,
878-
spawner: Entity | undefined = undefined,
879-
seedOrRNG: Seed | RNG | undefined = undefined,
878+
spawner?: Entity,
879+
seedOrRNG?: Seed | RNG,
880880
): EntityProjectile {
881881
const entity = spawn(
882882
EntityType.PROJECTILE,
@@ -901,7 +901,7 @@ export function spawnProjectileWithSeed(
901901
positionOrGridIndex: Vector | int,
902902
seedOrRNG: Seed | RNG,
903903
velocity: Vector = VectorZero,
904-
spawner: Entity | undefined = undefined,
904+
spawner?: Entity,
905905
): EntityProjectile {
906906
return spawnProjectile(
907907
projectileVariant,
@@ -919,8 +919,8 @@ export function spawnSlot(
919919
subType: int,
920920
positionOrGridIndex: Vector | int,
921921
velocity: Vector = VectorZero,
922-
spawner: Entity | undefined = undefined,
923-
seedOrRNG: Seed | RNG | undefined = undefined,
922+
spawner?: Entity,
923+
seedOrRNG?: Seed | RNG,
924924
): EntitySlot {
925925
return spawn(
926926
EntityType.SLOT,
@@ -940,7 +940,7 @@ export function spawnSlotWithSeed(
940940
positionOrGridIndex: Vector | int,
941941
seedOrRNG: Seed | RNG,
942942
velocity: Vector = VectorZero,
943-
spawner: Entity | undefined = undefined,
943+
spawner?: Entity,
944944
): EntitySlot {
945945
return spawnSlot(
946946
slotVariant,
@@ -958,8 +958,8 @@ export function spawnTear(
958958
subType: int,
959959
positionOrGridIndex: Vector | int,
960960
velocity: Vector = VectorZero,
961-
spawner: Entity | undefined = undefined,
962-
seedOrRNG: Seed | RNG | undefined = undefined,
961+
spawner?: Entity,
962+
seedOrRNG?: Seed | RNG,
963963
): EntityTear {
964964
const entity = spawn(
965965
EntityType.TEAR,
@@ -984,7 +984,7 @@ export function spawnTearWithSeed(
984984
positionOrGridIndex: Vector | int,
985985
seedOrRNG: Seed | RNG,
986986
velocity: Vector = VectorZero,
987-
spawner: Entity | undefined = undefined,
987+
spawner?: Entity,
988988
): EntityTear {
989989
return spawnTear(
990990
tearVariant,

0 commit comments

Comments
 (0)