From c69d561e892c2b755b74f166ec3a66df5a8e1c60 Mon Sep 17 00:00:00 2001 From: Robert van Hoesel Date: Sun, 11 Feb 2024 19:39:14 +0100 Subject: [PATCH] Prettier tweaks --- package.json | 13 ++++++++++++- pnpm-lock.yaml | 8 ++++---- src/pages/players/[id]-[username].astro | 8 ++++---- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index b3b94ea..fe78a4d 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,17 @@ ], "prettier": { "printWidth": 120, - "semi": false + "semi": false, + "plugins": [ + "prettier-plugin-astro" + ], + "overrides": [ + { + "files": "*.astro", + "options": { + "parser": "astro" + } + } + ] } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 17738aa..3ece2dd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,9 +1,5 @@ lockfileVersion: '6.0' -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false - dependencies: '@astrojs/node': specifier: ^7.0.4 @@ -3991,3 +3987,7 @@ packages: /zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false diff --git a/src/pages/players/[id]-[username].astro b/src/pages/players/[id]-[username].astro index cd1c78c..408e2e5 100644 --- a/src/pages/players/[id]-[username].astro +++ b/src/pages/players/[id]-[username].astro @@ -47,10 +47,10 @@ const highestLeague = player?.leaderboard_entries?.reduce(
-
-
- {player.avatar_url ? {player.nickname} : <>} -

{player.nickname}

+
+
+ {player.avatar_url && {player.nickname}} +

{player.nickname}