lint code

Signed-off-by: Arthur DANJOU <arthurdanjou@outlook.fr>
This commit is contained in:
2024-04-20 00:18:43 +02:00
parent c6ba8c791b
commit c698bfec8a
44 changed files with 180 additions and 177 deletions

View File

@@ -2,8 +2,8 @@
defineProps({
title: {
type: String,
default: 'Uses Section title'
}
default: 'Uses Section title',
},
})
const appConfig = useAppConfig()

View File

@@ -2,8 +2,8 @@
defineProps({
title: {
type: String,
default: 'Uses Slot title'
}
default: 'Uses Slot title',
},
})
</script>

View File

@@ -2,13 +2,13 @@
defineProps({
href: {
type: String,
default: ''
default: '',
},
target: {
type: String,
default: undefined,
required: false
}
required: false,
},
})
const appConfig = useAppConfig()

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useColorStore } from '~/store/color'
import { ColorsTheme } from '~~/types'
import {useColorStore} from '~/store/color'
import {ColorsTheme} from '~~/types'
const colors = Object.values(ColorsTheme)
@@ -19,7 +19,7 @@ watch(isDark, () => {
:ui="{
background: 'bg-white dark:bg-stone-900',
ring: 'ring-1 ring-gray-200 dark:ring-stone-800',
container: 'z-30'
container: 'z-30',
}"
>
<template #default="{ open }">
@@ -55,9 +55,9 @@ watch(isDark, () => {
color: {
white: {
solid: 'ring-0 bg-gray-100 dark:bg-gray-800 hover:bg-gray-100 dark:hover:bg-gray-800',
ghost: 'hover:bg-gray-50 dark:hover:bg-gray-800/50'
}
}
ghost: 'hover:bg-gray-50 dark:hover:bg-gray-800/50',
},
},
}"
:variant="color === getColor ? 'solid' : 'ghost'"
@click.stop.prevent="setColor(color)"

View File

@@ -10,7 +10,7 @@ function formatDate(date: number) {
const CardUi = {
footer: { padding: 'px-4 py-2' },
body: {base: 'h-full flex items-center'}
body: { base: 'h-full flex items-center' },
}
useIntervalFn(async () => await refresh(), 5000)

View File

@@ -3,23 +3,23 @@ const socials = [
{
name: 'mail',
icon: 'i-material-symbols-alternate-email',
link: 'mailto:arthurdanjou@outlook.fr'
link: 'mailto:arthurdanjou@outlook.fr',
},
{
name: 'twitter',
icon: 'i-ph-twitter-logo-bold',
link: 'https://twitter.com/ArthurDanj'
link: 'https://twitter.com/ArthurDanj',
},
{
name: 'github',
icon: 'i-ph-github-logo-bold',
link: 'https://github.com/ArthurDanjou'
link: 'https://github.com/ArthurDanjou',
},
{
name: 'linkedin',
icon: 'i-ph-linkedin-logo-bold',
link: 'https://www.linkedin.com/in/arthurdanjou/'
}
link: 'https://www.linkedin.com/in/arthurdanjou/',
},
]
</script>

View File

@@ -1,11 +1,11 @@
<script lang="ts" setup>
import type { Stats } from '~~/types'
import type {Stats} from '~~/types'
const stats = await $fetch<Stats>('/api/stats')
const CardUi = {
footer: { padding: 'px-4 py-2' },
body: {base: 'h-full'}
body: { base: 'h-full' },
}
</script>

View File

@@ -3,8 +3,8 @@ defineProps({
startDate: String,
endDate: {
type: String,
required: true
}
required: true,
},
})
function formatTodayDate(date: string) {

View File

@@ -1,8 +1,8 @@
<script setup lang="ts">
import type { Education } from '~~/types'
import type {Education} from '~~/types'
defineProps({
education: Object as PropType<Education>
education: Object as PropType<Education>,
})
</script>

View File

@@ -1,8 +1,8 @@
<script setup lang="ts">
import type { WorkExperience } from '~~/types'
import type {WorkExperience} from '~~/types'
defineProps({
experience: Object as PropType<WorkExperience>
experience: Object as PropType<WorkExperience>,
})
</script>

View File

@@ -1,8 +1,8 @@
<script setup lang="ts">
import type { Skill } from '~~/types'
import type {Skill} from '~~/types'
defineProps({
skill: Object as PropType<Skill>
skill: Object as PropType<Skill>,
})
const { $colorMode } = useNuxtApp()