From a59da96672423364ed1a8340c6f3dd5871e84ec2 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 23 Jun 2024 23:24:46 +0200 Subject: [PATCH] Lint code --- app/components/AppHeader.vue | 5 +++-- nuxt.config.ts | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/app/components/AppHeader.vue b/app/components/AppHeader.vue index e35ecf2..53ee4ab 100644 --- a/app/components/AppHeader.vue +++ b/app/components/AppHeader.vue @@ -32,10 +32,11 @@ const navs = [ function toggleTheme() { if (!document.startViewTransition) { isDark.value = !isDark.value + return } - // @ts-ignore - document.startViewTransition(() => isDark.value = !isDark.value) + document.startViewTransition(() => { + }) } diff --git a/nuxt.config.ts b/nuxt.config.ts index b170b03..fa42bbf 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -70,16 +70,16 @@ export default defineNuxtConfig({ runtimeConfig: { discord: { - userId: "", - id: "", - token: "", + userId: '', + id: '', + token: '' }, wakatime: { - userId: "", - coding: "", - editors: "", - languages: "", - os: "", - }, - }, + userId: '', + coding: '', + editors: '', + languages: '', + os: '' + } + } })