chore: upgrade eslint

This commit is contained in:
starknt
2024-01-07 16:42:25 +08:00
parent 14fd4ecbfc
commit 7b82e7dd4c
30 changed files with 612 additions and 328 deletions

View File

@@ -2,7 +2,7 @@
import { useToggle } from '@vueuse/core'
import { useI18n } from 'vue-i18n'
import browser from 'webextension-polyfill'
import type { Ref } from '@vue/runtime-dom'
import type { Ref } from 'vue'
import Home from './Home/Home.vue'
import Search from './Search/Search.vue'

View File

@@ -11,7 +11,7 @@ const { t } = useI18n()
const favoriteCategories = reactive<CategoryItem[]>([])
const favoriteResources = reactive<FavoriteItem[]>([])
const categoryOptions = reactive<Array<{ value: any; label: string }>>([])
const categoryOptions = reactive<Array<{ value: any, label: string }>>([])
const selectedCategory = ref<FavoriteCategory>()
const activatedCategoryCover = ref<string>('')
@@ -117,7 +117,7 @@ async function getFavoriteResources(
if (
res.data.medias === null
|| (res.data.medias.length < 20 && favoriteResources.length > 0)
|| (res.data.medias.length < 20 && favoriteResources.length > 0)
)
noMoreContent.value = true
}