From a8af37c5b71d836f54bd911e41f23b2bff5f644a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Thu, 7 Mar 2024 18:01:01 +0100 Subject: [PATCH] chore: lint fix --- docs/components/content/Alert.vue | 8 ++++---- playground/server/api/cached.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/components/content/Alert.vue b/docs/components/content/Alert.vue index 959459e0..47c231b4 100644 --- a/docs/components/content/Alert.vue +++ b/docs/components/content/Alert.vue @@ -3,10 +3,10 @@ import type uiColors from '#ui-colors' const props = defineProps({ - title: { type: String }, - icon: { type: String }, - color: { type: String as PropType<(typeof uiColors)[number]> }, - to: { type: String }, + title: { type: String, required: true}, + icon: { type: String, default: '' }, + color: { type: String as PropType<(typeof uiColors)[number]>, required: true }, + to: { type: String, default: '' }, }) const target = computed(() => (props.to?.startsWith('https://') ? '_blank' : '')) diff --git a/playground/server/api/cached.ts b/playground/server/api/cached.ts index a29020a3..9a5c60b6 100644 --- a/playground/server/api/cached.ts +++ b/playground/server/api/cached.ts @@ -1,4 +1,4 @@ -export default cachedEventHandler(async (event) => { +export default cachedEventHandler(async () => { return { now: Date.now() }