lint code

This commit is contained in:
2023-09-05 00:19:35 +02:00
parent 77e3b6975f
commit 8cb6aa97b8
4 changed files with 15 additions and 14 deletions

View File

@@ -49,7 +49,7 @@ export default defineNuxtConfig({
image: {
domains: [
'avatars0.githubusercontent.com',
'pbs.twimg.com'
]
}
'pbs.twimg.com',
],
},
})

View File

@@ -5,10 +5,11 @@ const getColor = computed(() => `text-${appConfig.ui.primary}-500`)
<template>
<UButton
class="flex items-center"
variant="ghost"
to="/"
:class="getColor">
class="flex items-center"
variant="ghost"
to="/"
:class="getColor"
>
ArthurDanj
</UButton>
</template>

View File

@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { Post } from '~~/types';
import type { Post } from '~~/types'
const route = useRoute()
const { data: postContent } = await useAsyncData<Post>(`writing:${route.params.slug}`, async () => await queryContent<Post>(`/writing/${route.params.slug}`).findOne())

View File

@@ -16,9 +16,9 @@ export default router({
createdAt: 'desc',
},
})
if (process.env.NODE_ENV === 'development') {
if (process.env.NODE_ENV === 'development')
return false
}
const today = new Date()
return !!maintenance
&& maintenance.enabled