Skip to content

Commit a186abd

Browse files
committed
refactor(prettier)
1 parent 8412f14 commit a186abd

File tree

9 files changed

+198
-1203
lines changed

9 files changed

+198
-1203
lines changed

.github/renovate.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
"prHourlyLimit": 0,
1414
"timezone": "UTC",
1515
"packageRules": [
16-
{
17-
"matchUpdateTypes": ["minor", "patch"],
18-
"matchCurrentVersion": "!/^0/",
19-
"commitMessagePrefix": "chore(deps):"
20-
}
16+
{ "matchUpdateTypes": ["minor", "patch"], "matchCurrentVersion": "!/^0/", "commitMessagePrefix": "chore(deps):" }
2117
]
2218
}

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"objectWrap": "collapse",
23
"bracketSameLine": true,
34
"trailingComma": "none",
45
"arrowParens": "always",

.vscode/settings.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55
"files.trimTrailingWhitespace": true,
66
"editor.trimAutoWhitespace": true,
77
"editor.formatOnSave": true,
8-
"editor.codeActionsOnSave": {
9-
"source.fixAll.eslint": "explicit"
10-
},
11-
"[typescript]": {
12-
"editor.defaultFormatter": "esbenp.prettier-vscode"
13-
},
8+
"editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit" },
9+
"[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
1410
"typescript.format.semicolons": "insert",
1511
"typescript.preferences.quoteStyle": "single"
1612
}

eslint.config.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,7 @@ export default [
88
prettier,
99
{
1010
ignores: ['**/node_modules/', '**/build/', '**/pnpm-lock.yaml'],
11-
languageOptions: {
12-
ecmaVersion: 2022,
13-
sourceType: 'module',
14-
globals: {
15-
...globals.es2022,
16-
...globals.node
17-
}
18-
},
11+
languageOptions: { ecmaVersion: 2022, sourceType: 'module', globals: { ...globals.es2022, ...globals.node } },
1912
plugins: { 'sort-imports': sortImports },
2013
rules: {
2114
'sort-imports/sort-imports': [

src/Private/RateLimit.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,7 @@ test('Ratelimit (Sync)', async () => {
8383
test('Ratelimit (Bad Sync Data)', async () => {
8484
const client = new Client(process.env.HYPIXEL_KEY ?? '');
8585
client.updater.currentVersion = '1.0.0';
86-
vi.spyOn(global, 'fetch').mockResolvedValue({
87-
...defaultRequestData,
88-
headers: new Headers({ hello: '100' })
89-
} as any);
86+
vi.spyOn(global, 'fetch').mockResolvedValue({ ...defaultRequestData, headers: new Headers({ hello: '100' }) } as any);
9087
await expect(() => client.rateLimit.sync()).rejects.toThrowError(Errors.RATE_LIMIT_INIT_ERROR);
9188
vi.restoreAllMocks();
9289
client.destroy();

src/Structures/SkyBlock/Member/Inventories/Inventory/SkyBlockMemberInventoriesInventoryDecoded.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,7 @@ test('SkyBlockMemberInventoriesInventoryDecoded', () => {
5656
modifier: 'withered',
5757
art_of_war_count: 1,
5858
upgrade_level: 10,
59-
enchantments: {
60-
impaling: 3,
61-
champion: 10
62-
},
59+
enchantments: { impaling: 3, champion: 10 },
6360
uuid: '89dd6816-0a32-4dcf-808b-ba558c793c91',
6461
hot_potato_count: 15,
6562
gems: {

src/Types/SkyBlock.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,7 @@ export type MiningForgeItemName =
473473
| 'PET';
474474

475475
export type MiningForgeItemsData = {
476-
[key in MiningForgeItemId | 'UNKNOWN']: {
477-
name: MiningForgeItemName | 'UNKNOWN';
478-
duration: number;
479-
};
476+
[key in MiningForgeItemId | 'UNKNOWN']: { name: MiningForgeItemName | 'UNKNOWN'; duration: number };
480477
};
481478

482479
export type SkyBlockArea =
@@ -3477,12 +3474,7 @@ export type BestiaryMob = {
34773474
maxTier: number;
34783475
};
34793476

3480-
export type BestiaryCategory = {
3481-
name: string;
3482-
mobs: BestiaryMob[];
3483-
mobsUnlocked: number;
3484-
mobsMaxed: number;
3485-
};
3477+
export type BestiaryCategory = { name: string; mobs: BestiaryMob[]; mobsUnlocked: number; mobsMaxed: number };
34863478

34873479
export type BestiaryStats = {
34883480
level: number;

0 commit comments

Comments
 (0)