Skip to content

Commit 45dccdb

Browse files
committed
chore: update prettier formatting
1 parent 3772a03 commit 45dccdb

File tree

103 files changed

+544
-534
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+544
-534
lines changed

packages/docs/docs/main/gotchas.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ validateCustomEnum("CollectibleTypeCustom", CollectibleTypeCustom);
174174

175175
// Elsewhere in the code:
176176
if (
177-
player.HasCollectible(CollectibleTypeCustom.MY_CUSTOM_ITEM) &&
178-
player.HasCollectible(CollectibleType.EPIC_FETUS)
177+
player.HasCollectible(CollectibleTypeCustom.MY_CUSTOM_ITEM)
178+
&& player.HasCollectible(CollectibleType.EPIC_FETUS)
179179
) {
180180
// Handle the specific synergy with My Custom Item + Epic Fetus.
181181
}

packages/docs/scripts/fixIsaacScriptCommon.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -533,9 +533,9 @@ function getMarkdownFileNames(directoryPath: string): readonly string[] {
533533
function getNumDirectoriesAwayFromRoot(filePath: string, num = 0): number {
534534
const directoryPath = path.dirname(filePath);
535535
if (
536-
directoryPath === "." ||
537-
directoryPath === "/" ||
538-
directoryPath.endsWith(PACKAGE_NAME)
536+
directoryPath === "."
537+
|| directoryPath === "/"
538+
|| directoryPath.endsWith(PACKAGE_NAME)
539539
) {
540540
return num;
541541
}

packages/docs/static/js/hotkey.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ function isSearchBarFocused() {
3737
document.querySelectorAll(".DocSearch-Input"),
3838
);
3939
return (
40-
document.activeElement !== null &&
41-
searchInputElements.includes(document.activeElement)
40+
document.activeElement !== null
41+
&& searchInputElements.includes(document.activeElement)
4242
);
4343
}
4444

packages/eslint-plugin-isaacscript/scripts/generateReadme.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ function getRuleTableRow(ruleEntry: [string, RuleDefinition]) {
7373
const isRecommended = isRecommendedRule(rule) ? EMOJI_RECOMMENDED : "";
7474
const isFixable = rule.meta.fixable === undefined ? "" : EMOJI_FIXABLE;
7575
const requiresTypeInformation =
76-
"requiresTypeChecking" in rule.meta.docs &&
77-
rule.meta.docs.requiresTypeChecking === true
76+
"requiresTypeChecking" in rule.meta.docs
77+
&& rule.meta.docs.requiresTypeChecking === true
7878
? EMOJI_REQUIRES_TYPE_INFORMATION
7979
: "";
8080

packages/eslint-plugin-isaacscript/src/rules/enum-member-number-separation.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ export const enumMemberNumberSeparation = createRule({
4646
const lastCharacter = name[i - 1];
4747
const nextCharacter = name[i + 1];
4848
if (
49-
(lastCharacter !== undefined &&
50-
!isNumber(lastCharacter) &&
51-
lastCharacter !== "_") ||
52-
(nextCharacter !== undefined &&
53-
!isNumber(nextCharacter) &&
54-
nextCharacter !== "_")
49+
(lastCharacter !== undefined
50+
&& !isNumber(lastCharacter)
51+
&& lastCharacter !== "_")
52+
|| (nextCharacter !== undefined
53+
&& !isNumber(nextCharacter)
54+
&& nextCharacter !== "_")
5555
) {
5656
context.report({
5757
loc: node.loc,

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ declare global {
5252
* Returns the grid index from the specified row and column. Returns -1 if no grid index exists
5353
* at that point.
5454
*/
55-
GetGridIndexByTile: ((row: int, column: int) => int) &
56-
((tile: [int, int]) => int);
55+
GetGridIndexByTile: ((row: int, column: int) => int)
56+
& ((tile: [int, int]) => int);
5757

5858
/**
5959
* Returns the room's current item pool.
@@ -225,8 +225,8 @@ declare global {
225225
variant?: int,
226226
seed?: Seed,
227227
varData?: int,
228-
) => void) &
229-
((gridIndex: int, descriptor: GridEntityDesc) => void);
228+
) => void)
229+
& ((gridIndex: int, descriptor: GridEntityDesc) => void);
230230

231231
/** Returns a discounted price of a shop item. */
232232
TryGetShopDiscount: (shopItem: int, price: int) => int;

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ declare interface RenderBeam extends IsaacAPIClass {
3636
* @param spritesheetCoordinate
3737
* @param width Optional. Default is 1.
3838
*/
39-
Add: ((point: Point) => void) &
40-
((position: Vector, spritesheetCoordinate: number, width?: number) => void);
39+
Add: ((point: Point) => void)
40+
& ((
41+
position: Vector,
42+
spritesheetCoordinate: number,
43+
width?: number,
44+
) => void);
4145

4246
/** Returns the layer of the beam. */
4347
GetLayer: () => int;
@@ -65,8 +69,8 @@ declare interface RenderBeam extends IsaacAPIClass {
6569
SetPoints: (points: readonly Point[]) => void;
6670

6771
/** Sets the sprite of the beam. */
68-
SetSprite: ((sprite: Sprite) => void) &
69-
((
72+
SetSprite: ((sprite: Sprite) => void)
73+
& ((
7074
sprite: Sprite,
7175
layerNameOrId: string | int,
7276
useOverlay: boolean,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,8 +1162,8 @@ declare global {
11621162
useFlag?: UseFlag | BitFlags<UseFlag>,
11631163
activeSlot?: ActiveSlot | -1,
11641164
customVarData?: int,
1165-
) => void) &
1166-
((
1165+
) => void)
1166+
& ((
11671167
collectibleType: CollectibleType,
11681168
showAnim: boolean,
11691169
keepActiveItem: boolean,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ declare interface Font extends IsaacAPIClass {
2727
renderColor: KColor,
2828
boxWidth?: int,
2929
center?: boolean,
30-
) => void) &
31-
((
30+
) => void)
31+
& ((
3232
str: string,
3333
positionX: float,
3434
positionY: float,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ declare global {
5555
player: EntityPlayer,
5656
item: ItemConfigItem,
5757
stackUpText: boolean,
58-
) => void) &
59-
((
58+
) => void)
59+
& ((
6060
mainString: string,
6161
secondaryString?: string,
6262
isCurseDisplay?: boolean,

0 commit comments

Comments
 (0)