From f0bc78ba2c23dcdd415b0ea0f659729bd0d84da4 Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Sun, 21 Jan 2024 17:30:15 +0900 Subject: [PATCH] refactor: fix lint warnings (#2564) --- composables/vue.ts | 3 +++ scripts/generate-pwa-icons.ts | 2 +- service-worker/types.ts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/composables/vue.ts b/composables/vue.ts index a73a3994..10b7e212 100644 --- a/composables/vue.ts +++ b/composables/vue.ts @@ -26,6 +26,9 @@ export function useDeactivated() { * ### When the component is restored from the background * * for handling problems caused by the keepalive function + * + * @param hook + * @param target */ export function onReactivated(hook: () => void, target?: ComponentInternalInstance | null): void { const initial = ref(true) diff --git a/scripts/generate-pwa-icons.ts b/scripts/generate-pwa-icons.ts index 669112a4..10723546 100644 --- a/scripts/generate-pwa-icons.ts +++ b/scripts/generate-pwa-icons.ts @@ -21,7 +21,7 @@ type IconType = 'transparent' | 'maskable' | 'apple' */ interface Icons extends Record { /** - * @default: { compressionLevel: 9, quality: 60 }` + * @default: `{ compressionLevel: 9, quality: 60 }` */ png?: PngOptions /** diff --git a/service-worker/types.ts b/service-worker/types.ts index be53709c..c51b7a63 100644 --- a/service-worker/types.ts +++ b/service-worker/types.ts @@ -218,7 +218,7 @@ export interface MastoAccount { last_status_at: string /** Indicates that the profile is currently inactive and that its user has moved to a new account. */ moved?: boolean | null - /** An extra entity returned when an account is suspended. **/ + /** An extra entity returned when an account is suspended. */ suspended?: boolean | null /** Additional metadata attached to a profile as name-value pairs. */ fields?: Field[] | null