Skip to content

Commit d44850a

Browse files
committed
chore: lint fix
1 parent 0f3ec8a commit d44850a

File tree

18 files changed

+23
-23
lines changed

18 files changed

+23
-23
lines changed

components/modal/DurationPicker.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ watchEffect(() => {
1414
1515
const duration
1616
= days.value * 24 * 60 * 60
17-
+ hours.value * 60 * 60
18-
+ minutes.value * 60
17+
+ hours.value * 60 * 60
18+
+ minutes.value * 60
1919
2020
if (duration <= 0) {
2121
isValid.value = false

components/modal/ModalContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
import type { mastodon } from 'masto'
3+
import type { ConfirmDialogChoice } from '~/types'
34
import {
45
isCommandPanelOpen,
56
isConfirmDialogOpen,
@@ -12,7 +13,6 @@ import {
1213
isReportDialogOpen,
1314
isSigninDialogOpen,
1415
} from '~/composables/dialog'
15-
import type { ConfirmDialogChoice } from '~/types'
1616
1717
const isMac = useIsMac()
1818

components/publish/PublishWidget.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang="ts">
22
import type { mastodon } from 'masto'
3+
import type { DraftItem } from '~/types'
34
import { EditorContent } from '@tiptap/vue-3'
45
import stringLength from 'string-length'
5-
import type { DraftItem } from '~/types'
66
77
const {
88
threadComposer,

components/publish/PublishWidgetFull.client.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { formatTimeAgo } from '@vueuse/core'
32
import type { DraftItem } from '~/types'
3+
import { formatTimeAgo } from '@vueuse/core'
44
55
const route = useRoute()
66
const { formatNumber } = useHumanReadableNumber()

components/tiptap/TiptapEmojiList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang="ts">
2-
import { getEmojiMatchesInText } from '@iconify/utils/lib/emoji/replace/find'
3-
import { emojiFilename, emojiPrefix, emojiRegEx } from '~~/config/emojis'
42
import type { CommandHandler } from '~/composables/command'
53
import type { Emoji } from '~/composables/tiptap/suggestion'
4+
import { getEmojiMatchesInText } from '@iconify/utils/lib/emoji/replace/find'
5+
import { emojiFilename, emojiPrefix, emojiRegEx } from '~~/config/emojis'
66
77
const { items, command } = defineProps<{
88
items: Emoji[]

composables/command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { LocaleObject } from '@nuxtjs/i18n'
22
import type { ComputedRef } from 'vue'
3+
import type { SearchResult } from '~/composables/masto/search'
34
import Fuse from 'fuse.js'
45
import { defineStore } from 'pinia'
5-
import type { SearchResult } from '~/composables/masto/search'
66

77
// @unocss-include
88

composables/masto/masto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import type { Pausable } from '@vueuse/core'
22
import type { mastodon } from 'masto'
33
import type { Ref } from 'vue'
44
import type { ElkInstance } from '../users'
5-
import { createRestAPIClient, createStreamingAPIClient } from 'masto'
65
import type { UserLogin } from '~/types'
6+
import { createRestAPIClient, createStreamingAPIClient } from 'masto'
77

88
export function createMasto() {
99
return {

composables/masto/publish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { DraftItem } from '~~/types'
21
import type { mastodon } from 'masto'
32
import type { Ref } from 'vue'
3+
import type { DraftItem } from '~~/types'
44
import { fileOpen } from 'browser-fs-access'
55

66
export function usePublish(options: {

composables/masto/statusDrafts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { mastodon } from 'masto'
22
import type { ComputedRef, Ref } from 'vue'
3-
import { STORAGE_KEY_DRAFTS } from '~/constants'
43
import type { DraftItem, DraftMap } from '~/types'
54
import type { Mutable } from '~/types/utils'
5+
import { STORAGE_KEY_DRAFTS } from '~/constants'
66

77
export const currentUserDrafts = (import.meta.server || process.test)
88
? computed<DraftMap>(() => ({}))

composables/users.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ import type { MaybeRefOrGetter, RemovableRef } from '@vueuse/core'
22
import type { mastodon } from 'masto'
33
import type { EffectScope, Ref } from 'vue'
44
import type { ElkMasto } from './masto/masto'
5-
import { withoutProtocol } from 'ufo'
65
import type { PushNotificationPolicy, PushNotificationRequest } from '~/composables/push-notifications/types'
6+
import type { UserLogin } from '~/types'
7+
import type { Overwrite } from '~/types/utils'
8+
import { withoutProtocol } from 'ufo'
79
import {
810
DEFAULT_POST_CHARS_LIMIT,
911
STORAGE_KEY_CURRENT_USER_HANDLE,
@@ -12,8 +14,6 @@ import {
1214
STORAGE_KEY_NOTIFICATION_POLICY,
1315
STORAGE_KEY_SERVERS,
1416
} from '~/constants'
15-
import type { UserLogin } from '~/types'
16-
import type { Overwrite } from '~/types/utils'
1717

1818
const mock = process.mock
1919

config/emojis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { EmojiRegexMatch } from '@iconify/utils/lib/emoji/replace/find'
2-
import { getEmojiMatchesInText } from '@iconify/utils/lib/emoji/replace/find'
32
// @unimport-disabled
43
import { emojiFilename, emojiPrefix, emojiRegEx } from '@iconify-emoji/twemoji'
4+
import { getEmojiMatchesInText } from '@iconify/utils/lib/emoji/replace/find'
55

66
// Re-export everything from package
77
export * from '@iconify-emoji/twemoji'

modules/build-env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { BuildInfo } from '~/types'
12
import { createResolver, defineNuxtModule } from '@nuxt/kit'
23
import { isCI } from 'std-env'
3-
import type { BuildInfo } from '~/types'
44
import { getEnv, version } from '../config/env'
55

66
const { resolve } = createResolver(import.meta.url)

pages/notifications.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import type { mastodon } from 'masto'
3-
import { NOTIFICATION_FILTER_TYPES } from '~/constants'
43
import type { CommonRouteTabMoreOption, CommonRouteTabOption } from '~/types'
4+
import { NOTIFICATION_FILTER_TYPES } from '~/constants'
55
66
definePageMeta({
77
middleware: 'auth',

pages/settings/users/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
2-
import { fileOpen } from 'browser-fs-access'
3-
/* eslint-disable no-alert */
42
import type { UserLogin } from '~/types'
3+
/* eslint-disable no-alert */
4+
import { fileOpen } from 'browser-fs-access'
55
66
const { t } = useI18n()
77

plugins/0.setup-users.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { UserLogin } from '~/types'
12
import { useAsyncIDBKeyval } from '~/composables/idb'
23
import { STORAGE_KEY_USERS } from '~/constants'
3-
import type { UserLogin } from '~/types'
44

55
const mock = process.mock
66

scripts/generate-themes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import chroma from 'chroma-js'
21
import type { ThemeColors } from '~/composables/settings'
2+
import chroma from 'chroma-js'
33

44
// #cc7d24 -> hcl(67.14,62.19,59.56)
55
export const themesColor = Array.from(

scripts/prepare-translation-status.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import type { Locale } from '@intlify/core-base'
22
import type { LocaleEntry } from '../docs/types'
3+
import type { NimbusTranslationStatus } from '~/types/translation-status'
34
import { Buffer } from 'node:buffer'
45
import { readFile, writeFile } from 'node:fs/promises'
56
import { createResolver } from '@nuxt/kit'
67
import { flatten } from 'flat'
7-
import type { NimbusTranslationStatus } from '~/types/translation-status'
88
import { countryLocaleVariants, currentLocales, isLocaleVariantKey } from '../config/i18n'
99

1010
export const localeData: [code: Locale, file: string[], title: string][]

tests/nuxt/html-parse.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import type { ContentParseOptions } from '~/composables/content-parse'
12
import { format } from 'prettier'
23
import { render as renderTree } from 'ultrahtml'
34
import { describe, expect, it } from 'vitest'
4-
import type { ContentParseOptions } from '~/composables/content-parse'
55

66
describe('html-parse', () => {
77
it('empty', async () => {

0 commit comments

Comments
 (0)