diff --git a/eslint.config.js b/eslint.config.js index 39ea393..164dc04 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -28,5 +28,18 @@ export default tseslint.config( }, { ignores: ['build/', '.svelte-kit/', 'dist/'] + }, + { + rules: { + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': [ + 'warn', + { + argsIgnorePattern: '^_', + varsIgnorePattern: '^_', + caughtErrorsIgnorePattern: '^_' + } + ] + } } ); diff --git a/src/lib/components/MyProfile/UserStats.svelte b/src/lib/components/MyProfile/UserStats.svelte index 8844980..46f088e 100644 --- a/src/lib/components/MyProfile/UserStats.svelte +++ b/src/lib/components/MyProfile/UserStats.svelte @@ -4,58 +4,38 @@ import Folder from 'lucide-svelte/icons/folder'; import * as Card from '$lib/components/ui/card'; import type { PrivateProfileData } from '$lib/types/PrivateProfileData'; + import { Skeleton } from '$lib/components/ui/skeleton'; + import StatsCard from '$lib/components/Shared/StatsCard.svelte'; + import StatsCardSkeleton from '../Shared/StatsCardSkeleton.svelte'; export let privateProfileData: PrivateProfileData | null; -{#if privateProfileData} -
{githubData.name}
+ {#if githubData} +{userData.username}
+{githubData.name}
+ {:else} +{userData.username}
+ {/if} - {#if githubData.bio} -{githubData.bio}
- {:else} -Public Developer Profile
- {/if} + {#if githubData.bio} +{githubData.bio}
+ {:else} +Public Developer Profile
+ {/if} - {#if githubData.company} -Currently at {githubData.company}
- {/if} -Currently at {githubData.company}
+ {/if} +