From f8e6246841179c1157a5b0ee21e326d75bc663d2 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Sun, 9 Feb 2025 01:01:29 +0800 Subject: [PATCH] style: lint fix --- docs/.vuepress/config.ts | 3 ++- docs/.vuepress/themes/composables/caniuse.ts | 3 ++- docs/.vuepress/themes/composables/theme-colors.ts | 3 ++- plugins/plugin-content-update/tsup.config.ts | 3 ++- plugins/plugin-fonts/tsup.config.ts | 3 ++- .../plugin-md-power/src/client/components/VPDemoNormal.vue | 3 ++- plugins/plugin-md-power/src/client/composables/audio.ts | 3 ++- plugins/plugin-md-power/src/client/composables/codeRepl.ts | 3 ++- plugins/plugin-md-power/src/node/demo/watcher.ts | 3 ++- plugins/plugin-md-power/tsup.config.ts | 3 ++- plugins/plugin-search/src/client/components/SearchBox.vue | 6 ++++-- plugins/plugin-search/tsup.config.ts | 3 ++- plugins/plugin-shikiji/tsup.config.ts | 3 ++- theme/src/client/composables/blog-extract.ts | 3 ++- theme/src/client/composables/blog-post-list.ts | 3 ++- theme/src/client/composables/copyright.ts | 3 ++- theme/src/client/composables/data.ts | 3 ++- theme/src/client/composables/encrypt.ts | 3 ++- theme/src/client/composables/link.ts | 3 ++- theme/src/client/composables/tag-colors.ts | 3 ++- theme/src/client/composables/theme-data.ts | 3 ++- theme/src/client/globalComponents.ts | 3 ++- theme/src/node/config/templateBuildRenderer.ts | 3 ++- theme/src/node/plugins/getPlugins.ts | 6 ++++-- theme/src/node/prepare/prepareEncrypt.ts | 3 ++- theme/src/node/prepare/prepareIcons.ts | 3 ++- theme/src/node/prepare/prepareThemeData.ts | 3 ++- theme/tsup.config.ts | 3 ++- 28 files changed, 60 insertions(+), 30 deletions(-) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 616e6257..12ffa70b 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -1,8 +1,9 @@ +import type { UserConfig } from 'vuepress' import fs from 'node:fs' import path from 'node:path' import { viteBundler } from '@vuepress/bundler-vite' import { addViteOptimizeDepsInclude, addViteSsrExternal } from '@vuepress/helper' -import { defineUserConfig, type UserConfig } from 'vuepress' +import { defineUserConfig } from 'vuepress' import { theme } from './theme.js' const pnpmWorkspace = fs.readFileSync(path.resolve(__dirname, '../../pnpm-workspace.yaml'), 'utf-8') diff --git a/docs/.vuepress/themes/composables/caniuse.ts b/docs/.vuepress/themes/composables/caniuse.ts index 04b97078..87481786 100644 --- a/docs/.vuepress/themes/composables/caniuse.ts +++ b/docs/.vuepress/themes/composables/caniuse.ts @@ -1,5 +1,6 @@ +import type { Ref } from 'vue' import { onClickOutside, useDebounceFn, useEventListener, useLocalStorage } from '@vueuse/core' -import { computed, onMounted, readonly, type Ref, ref, watch } from 'vue' +import { computed, onMounted, readonly, ref, watch } from 'vue' interface Feature { label: string diff --git a/docs/.vuepress/themes/composables/theme-colors.ts b/docs/.vuepress/themes/composables/theme-colors.ts index 09f3d7e8..95ab7ed4 100644 --- a/docs/.vuepress/themes/composables/theme-colors.ts +++ b/docs/.vuepress/themes/composables/theme-colors.ts @@ -1,5 +1,6 @@ +import type { InjectionKey, Ref } from 'vue' import { useSessionStorage, useStyleTag } from '@vueuse/core' -import { inject, type InjectionKey, provide, type Ref, watch } from 'vue' +import { inject, provide, watch } from 'vue' export interface ThemeColor { name: string diff --git a/plugins/plugin-content-update/tsup.config.ts b/plugins/plugin-content-update/tsup.config.ts index ba6b00b2..38b0a505 100644 --- a/plugins/plugin-content-update/tsup.config.ts +++ b/plugins/plugin-content-update/tsup.config.ts @@ -1,4 +1,5 @@ -import { defineConfig, type Options } from 'tsup' +import type { Options } from 'tsup' +import { defineConfig } from 'tsup' import { argv } from '../../scripts/tsup-args.js' const clientExternal: (string | RegExp)[] = [ diff --git a/plugins/plugin-fonts/tsup.config.ts b/plugins/plugin-fonts/tsup.config.ts index 7f1800a0..1ad32a02 100644 --- a/plugins/plugin-fonts/tsup.config.ts +++ b/plugins/plugin-fonts/tsup.config.ts @@ -1,4 +1,5 @@ -import { defineConfig, type Options } from 'tsup' +import type { Options } from 'tsup' +import { defineConfig } from 'tsup' import { argv } from '../../scripts/tsup-args.js' const clientExternal: (string | RegExp)[] = [ diff --git a/plugins/plugin-md-power/src/client/components/VPDemoNormal.vue b/plugins/plugin-md-power/src/client/components/VPDemoNormal.vue index 964d376c..ba748032 100644 --- a/plugins/plugin-md-power/src/client/components/VPDemoNormal.vue +++ b/plugins/plugin-md-power/src/client/components/VPDemoNormal.vue @@ -1,6 +1,7 @@