From 67d5d5c00a601813f2119205b3809767f9a65069 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 2 Aug 2023 10:28:18 +0000 Subject: [PATCH] chore(deps): update lint (#2233) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Anthony Fu --- .eslintrc | 3 +- components/common/CommonPaginator.vue | 2 +- components/nav/NavSideItem.vue | 4 +- ...ificationEnablePushNotification.client.vue | 2 +- components/settings/SettingsFontSize.vue | 2 +- components/status/StatusActionButton.vue | 2 +- components/tiptap/TiptapEmojiList.vue | 7 +- components/tiptap/TiptapHashtagList.vue | 3 +- components/tiptap/TiptapMentionList.vue | 3 +- composables/command.ts | 13 +- composables/misc.ts | 2 +- composables/vue.ts | 2 +- package.json | 4 +- pnpm-lock.yaml | 565 ++++++++++-------- scripts/generate-pwa-icons.ts | 1 + scripts/prepare.ts | 1 + service-worker/share-target.ts | 2 +- unocss.config.ts | 1 + 18 files changed, 349 insertions(+), 270 deletions(-) diff --git a/.eslintrc b/.eslintrc index f56d6544..3319c362 100644 --- a/.eslintrc +++ b/.eslintrc @@ -13,6 +13,7 @@ "vue/no-restricted-syntax":["error", { "selector": "VElement[name='a']", "message": "Use NuxtLink instead." - }] + }], + "n/prefer-global/process": "off" } } diff --git a/components/common/CommonPaginator.vue b/components/common/CommonPaginator.vue index 00c2bbde..fb44678f 100644 --- a/components/common/CommonPaginator.vue +++ b/components/common/CommonPaginator.vue @@ -39,7 +39,7 @@ defineSlots<{ number: number update: () => void }) => void - loading: (props: {}) => void + loading: (props: object) => void done: (props: { items: U[] }) => void }>() diff --git a/components/nav/NavSideItem.vue b/components/nav/NavSideItem.vue index 8c5858e8..16785826 100644 --- a/components/nav/NavSideItem.vue +++ b/components/nav/NavSideItem.vue @@ -10,8 +10,8 @@ const props = withDefaults(defineProps<{ }) defineSlots<{ - icon: (props: {}) => void - default: (props: {}) => void + icon: (props: object) => void + default: (props: object) => void }>() const router = useRouter() diff --git a/components/notification/NotificationEnablePushNotification.client.vue b/components/notification/NotificationEnablePushNotification.client.vue index 378bac19..7536cb47 100644 --- a/components/notification/NotificationEnablePushNotification.client.vue +++ b/components/notification/NotificationEnablePushNotification.client.vue @@ -10,7 +10,7 @@ defineProps<{ defineEmits(['hide', 'subscribe']) defineSlots<{ - error: (props: {}) => void + error: (props: object) => void }>() const xl = useMediaQuery('(min-width: 1280px)') diff --git a/components/settings/SettingsFontSize.vue b/components/settings/SettingsFontSize.vue index ad1cef54..f887db78 100644 --- a/components/settings/SettingsFontSize.vue +++ b/components/settings/SettingsFontSize.vue @@ -4,7 +4,7 @@ import type { FontSize } from '~/composables/settings' const userSettings = useUserSettings() -const sizes = (new Array(11)).fill(0).map((x, i) => `${10 + i}px`) as FontSize[] +const sizes = (Array.from({ length: 11 })).fill(0).map((x, i) => `${10 + i}px`) as FontSize[] function setFontSize(e: Event) { if (e.target && 'valueAsNumber' in e.target) diff --git a/components/status/StatusActionButton.vue b/components/status/StatusActionButton.vue index 83a87a4c..f67b8dd0 100644 --- a/components/status/StatusActionButton.vue +++ b/components/status/StatusActionButton.vue @@ -18,7 +18,7 @@ const { as = 'button', command, disabled, content, icon } = defineProps<{ }>() defineSlots<{ - text: (props: {}) => void + text: (props: object) => void }>() const el = ref() diff --git a/components/tiptap/TiptapEmojiList.vue b/components/tiptap/TiptapEmojiList.vue index 6693121a..5a193e83 100644 --- a/components/tiptap/TiptapEmojiList.vue +++ b/components/tiptap/TiptapEmojiList.vue @@ -1,13 +1,14 @@