Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Commit 39f6652

Browse files
committed
style(*): remove prettier-plugin-sort-imports
1 parent 48cb98c commit 39f6652

30 files changed

Lines changed: 61 additions & 217 deletions

.prettierrc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,5 @@
44
"trailingComma": "all",
55
"arrowParens": "avoid",
66
"printWidth": 100,
7-
"plugins": [
8-
"prettier-plugin-svelte",
9-
"@trivago/prettier-plugin-sort-imports",
10-
"prettier-plugin-tailwindcss"
11-
]
7+
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"]
128
}

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@
1111
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
1212
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
1313
"test:unit": "vitest",
14-
"lint": "prettier --check --plugin prettier-plugin-svelte . && eslint .",
15-
"format": "prettier --write --plugin prettier-plugin-svelte ."
14+
"lint": "prettier --check . && eslint .",
15+
"format": "prettier --write ."
1616
},
1717
"devDependencies": {
1818
"@playwright/test": "^1.28.1",
1919
"@sveltejs/adapter-node": "4.0.1",
2020
"@sveltejs/kit": "^2.0.0",
2121
"@sveltejs/vite-plugin-svelte": "^3.0.0",
2222
"@tailwindcss/typography": "0.5.10",
23-
"@trivago/prettier-plugin-sort-imports": "4.3.0",
2423
"@types/howler": "2.2.11",
2524
"@types/lodash": "4.14.202",
2625
"@typescript-eslint/eslint-plugin": "^7.0.0",
@@ -59,4 +58,4 @@
5958
"rxjs": "7.8.1",
6059
"socket.io-client": "4.7.4"
6160
}
62-
}
61+
}

pnpm-lock.yaml

Lines changed: 3 additions & 154 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/core/components/footer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<footer class="w-full">
22
<div class="container mx-auto my-4">
33
<div
4-
class="text-abru-light-75 flex flex-col items-center gap-2 text-sm font-normal md:flex-row md:gap-0"
4+
class="flex flex-col items-center gap-2 text-sm font-normal text-abru-light-75 md:flex-row md:gap-0"
55
>
66
<span>© 2023 tf2pickup.org | version 4.0.0-alpha.7</span>
77
<div class="grow" />

src/lib/core/components/menu.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@
2929

3030
<a
3131
href={PUBLIC_DISCORD_INVITATION}
32-
class="text-abru-light-75 hidden hover:text-slate-200 xl:inline-block"
32+
class="hidden text-abru-light-75 hover:text-slate-200 xl:inline-block"
3333
target="_blank"
3434
>
3535
<IconBrandDiscord size={32} stroke={1.5} />
3636
</a>
3737

3838
<a
3939
href="https://ko-fi.com/tf2pickuporg"
40-
class="text-abru-light-75 hidden hover:text-slate-200 xl:inline-block"
40+
class="hidden text-abru-light-75 hover:text-slate-200 xl:inline-block"
4141
target="_blank"
4242
>
4343
<IconHeart size={32} stroke={1.5} />
4444
</a>
4545

4646
<div class="hidden w-2 lg:block" />
47-
<div class="bg-abru-light-15 my-2 h-[2px] grow lg:hidden" />
47+
<div class="my-2 h-[2px] grow bg-abru-light-15 lg:hidden" />
4848

4949
{#if $profile}
5050
<Profile {...$profile.player} />

src/lib/core/components/navigation-bar.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
>
1414
{#if menuOpen}
1515
<div
16-
class="bg-abru-light-3 fixed left-0 right-0 bottom-0 top-[95px] z-50"
16+
class="fixed bottom-0 left-0 right-0 top-[95px] z-50 bg-abru-light-3"
1717
transition:fly={{ y: -15 }}
1818
>
1919
<Menu />
@@ -25,7 +25,7 @@
2525
<img alt="tf2pickup.pl logo" src={logo} height="120" class="h-[44px] object-contain" />
2626
</a>
2727

28-
<button class="text-abru-light-75 mx-4 lg:hidden" on:click={() => (menuOpen = !menuOpen)}>
28+
<button class="mx-4 text-abru-light-75 lg:hidden" on:click={() => (menuOpen = !menuOpen)}>
2929
{#if menuOpen}
3030
<IconX size={48} />
3131
{:else}

src/lib/core/components/profile.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@
6262

6363
{#if menuOpen}
6464
<div
65-
class="bg-abru-dark-29 absolute z-50 mt-2 w-[300px] origin-top rounded-[10px] p-2 drop-shadow-xl"
65+
class="absolute z-50 mt-2 w-[300px] origin-top rounded-[10px] bg-abru-dark-29 p-2 drop-shadow-xl"
6666
in:growDown={{ duration: 150 }}
6767
out:fade={{ duration: 100 }}
6868
>
69-
<div class="text-abru-light-75 flex flex-col gap-1">
69+
<div class="flex flex-col gap-1 text-abru-light-75">
7070
<a href="/players/{steamId}" class="menu-item">
7171
<IconUserCircle /><span>My profile</span>
7272
</a>

src/lib/games/components/connect-string.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
</script>
3333

3434
<div
35-
class="border-abru-light-25 bg-abru-light-5 text-abru-light-75 flex flex-row gap-4 rounded border px-3 py-[10px] text-base font-medium"
35+
class="flex flex-row gap-4 rounded border border-abru-light-25 bg-abru-light-5 px-3 py-[10px] text-base font-medium text-abru-light-75"
3636
>
3737
<div
38-
class="bg-abru-light-5 text-abru-light-75 fade block flex-1 cursor-text select-all overflow-hidden whitespace-nowrap text-base"
38+
class="fade block flex-1 cursor-text select-all overflow-hidden whitespace-nowrap bg-abru-light-5 text-base text-abru-light-75"
3939
class:italic={!connectString}
4040
>
4141
{connectString ?? stateDescription}

src/lib/players/components/online-player-list.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
import { slide } from 'svelte/transition';
55
</script>
66

7-
<div class="bg-abru-dark-6 flex h-full flex-col rounded-lg p-2">
8-
<div class="text-abru-light-75 my-3.5 flex flex-row justify-center gap-1">
7+
<div class="flex h-full flex-col rounded-lg bg-abru-dark-6 p-2">
8+
<div class="my-3.5 flex flex-row justify-center gap-1 text-abru-light-75">
99
<IconUserCircle />
1010
<span class="text-sm font-bold">Players online: {$onlinePlayers.size}</span>
1111
</div>
1212

1313
{#each $onlinePlayersSorted as player}
1414
<a
1515
href="/players/{player.steamId}"
16-
class="text-abru-light-75 even:bg-abru-dark-6 odd:bg-abru-light-5 rounded-sm px-2 py-1 text-center text-base font-light hover:underline lg:text-start"
16+
class="rounded-sm px-2 py-1 text-center text-base font-light text-abru-light-75 odd:bg-abru-light-5 even:bg-abru-dark-6 hover:underline lg:text-start"
1717
transition:slide|local
1818
>
1919
{player.name}

0 commit comments

Comments
 (0)