Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Feb 6, 2025
1 parent 3acd3fd commit 200affb
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 17 deletions.
6 changes: 3 additions & 3 deletions api/notes/shiki-performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ internal.getLanguage = (name) => {
预先打包 `worker_shikiResolveLang.ts` 为 JS 以便调用。

```ts [worker_shikiResolveLang.ts]
import type { DynamicImportLanguageRegistration, LanguageRegistration } from 'shiki'
import {
bundledLanguages,
type DynamicImportLanguageRegistration,
type LanguageRegistration,
bundledLanguages

} from 'shiki'
import { runAsWorker } from 'synckit'

Expand Down
5 changes: 2 additions & 3 deletions packages/valaxy-theme-press/composables/sidebar.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import type { DefaultTheme } from 'vitepress/theme'
import type { ComputedRef, Ref } from 'vue'
import type { PressTheme } from '../types'
import { isClient } from '@vueuse/core'

import { isClient } from '@vueuse/core'
import {
computed,
type ComputedRef,
onMounted,
onUnmounted,
type Ref,
ref,
watch,
watchEffect,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<script setup lang="ts">
import type { CSSProperties } from 'vue'
import type { ProjectItem } from '../../types'
import { TinyColor } from '@ctrl/tinycolor'
import { useMotion } from '@vueuse/motion'
import { computed, type CSSProperties, ref } from 'vue'
import { computed, ref } from 'vue'
import { cubicBezier } from '../../client/constants'
const props = defineProps<{
Expand Down
3 changes: 2 additions & 1 deletion packages/valaxy/node/cli/new.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Argv } from 'yargs'
import { create, type CreatePostParams } from './utils/post'
import type { CreatePostParams } from './utils/post'
import { create } from './utils/post'

/**
* register new post command
Expand Down
3 changes: 2 additions & 1 deletion packages/valaxy/node/plugins/markdown/plugins/highlight.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { TransformerCompactLineOption } from '@shikijs/transformers'
import type { LanguageRegistration, ShikiTransformer } from 'shiki'
import type { Logger } from 'vite'
import type { ShikiResolveLang } from '../../../worker_shikiResolveLang'
import type { MarkdownOptions, ThemeOptions } from '../types'
import {
type TransformerCompactLineOption,

transformerCompactLineOptions,
transformerNotationDiff,
transformerNotationErrorLevel,
Expand Down
15 changes: 9 additions & 6 deletions packages/valaxy/node/plugins/markdown/setup.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
import type MarkdownIt from 'markdown-it'
import type { HeadersPluginOptions } from '@mdit-vue/plugin-headers'

import type { SfcPluginOptions } from '@mdit-vue/plugin-sfc'
import type { TocPluginOptions } from '@mdit-vue/plugin-toc'

import type MarkdownIt from 'markdown-it'
import type { MarkdownItAsync } from 'markdown-it-async'
import type Token from 'markdown-it/lib/token.mjs'

import type { ResolvedValaxyOptions } from '../../options'

import type { ThemeOptions } from './types'
import {
headersPlugin,
type HeadersPluginOptions,
} from '@mdit-vue/plugin-headers'

import { sfcPlugin, type SfcPluginOptions } from '@mdit-vue/plugin-sfc'
} from '@mdit-vue/plugin-headers'

import { sfcPlugin } from '@mdit-vue/plugin-sfc'
import { titlePlugin } from '@mdit-vue/plugin-title'
import { tocPlugin, type TocPluginOptions } from '@mdit-vue/plugin-toc'
import { tocPlugin } from '@mdit-vue/plugin-toc'
import { slugify } from '@mdit-vue/shared'
import { cssI18nContainer } from 'css-i18n'

Expand Down
4 changes: 2 additions & 2 deletions packages/valaxy/node/worker_shikiResolveLang.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { DynamicImportLanguageRegistration, LanguageRegistration } from 'shiki'
/**
* 2024-12-14 ref vitepress
*/
import {
bundledLanguages,
type DynamicImportLanguageRegistration,
type LanguageRegistration,

} from 'shiki'
import { runAsWorker } from 'synckit'

Expand Down

1 comment on commit 200affb

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://yun.valaxy.site as production
🚀 Deployed on https://67a49837c45cec00aecd56e0--valaxy.netlify.app

Please sign in to comment.