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 @@