chore(deps): update lint (#2233)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
renovate[bot] 2023-08-02 10:28:18 +00:00 committed by GitHub
parent 603e10b6ca
commit 67d5d5c00a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 349 additions and 270 deletions

View file

@ -39,7 +39,7 @@ defineSlots<{
number: number
update: () => void
}) => void
loading: (props: {}) => void
loading: (props: object) => void
done: (props: { items: U[] }) => void
}>()

View file

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

View file

@ -10,7 +10,7 @@ defineProps<{
defineEmits(['hide', 'subscribe'])
defineSlots<{
error: (props: {}) => void
error: (props: object) => void
}>()
const xl = useMediaQuery('(min-width: 1280px)')

View file

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

View file

@ -18,7 +18,7 @@ const { as = 'button', command, disabled, content, icon } = defineProps<{
}>()
defineSlots<{
text: (props: {}) => void
text: (props: object) => void
}>()
const el = ref<HTMLDivElement>()

View file

@ -1,13 +1,14 @@
<script setup lang="ts">
import { getEmojiMatchesInText } from '@iconify/utils/lib/emoji/replace/find'
import CommonScrollIntoView from '../common/CommonScrollIntoView.vue'
import type { CustomEmoji, Emoji } from '~~/composables/tiptap/suggestion'
import { isCustomEmoji } from '~~/composables/tiptap/suggestion'
import type { CustomEmoji, Emoji } from '~/composables/tiptap/suggestion'
import { isCustomEmoji } from '~/composables/tiptap/suggestion'
import { emojiFilename, emojiPrefix, emojiRegEx } from '~~/config/emojis'
import type { CommandHandler } from '~/composables/command'
const { items, command } = defineProps<{
items: (CustomEmoji | Emoji)[]
command: Function
command: CommandHandler<any>
isPending?: boolean
}>()

View file

@ -1,10 +1,11 @@
<script setup lang="ts">
import type { mastodon } from 'masto'
import CommonScrollIntoView from '../common/CommonScrollIntoView.vue'
import type { CommandHandler } from '~/composables/command'
const { items, command } = defineProps<{
items: mastodon.v1.Tag[]
command: Function
command: CommandHandler<{ id: string }>
isPending?: boolean
}>()

View file

@ -1,10 +1,11 @@
<script setup lang="ts">
import type { mastodon } from 'masto'
import CommonScrollIntoView from '../common/CommonScrollIntoView.vue'
import type { CommandHandler } from '~/composables/command'
const { items, command } = defineProps<{
items: mastodon.v1.Account[]
command: Function
command: CommandHandler<{ id: string }>
isPending?: boolean
}>()