Skip to content

Commit

Permalink
chore: upgrade lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Sep 26, 2024
1 parent fbf9ca7 commit 73322a9
Show file tree
Hide file tree
Showing 34 changed files with 369 additions and 350 deletions.
6 changes: 3 additions & 3 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
import MarkdownItGitHubAlerts from 'markdown-it-github-alerts'
import { defineConfig } from 'vitepress'

import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
import { defineConfig } from 'vitepress'
import { groupIconMdPlugin } from 'vitepress-plugin-group-icons'
import { repositoryMeta } from './data/meta'
import { description, ogImage, title } from './constance'
import { repositoryMeta } from './data/meta'

import vite from './vite.config'

Expand Down
8 changes: 4 additions & 4 deletions docs/.vitepress/data/gen-files.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import 'dotenv/config'
import type { Repository } from './repository.data'
import { writeFileSync } from 'node:fs'
import { dirname, join } from 'node:path'
import { fileURLToPath } from 'node:url'
import { env } from 'node:process'
import { $fetch } from 'ofetch'
import { fileURLToPath } from 'node:url'
import { consola } from 'consola'
import type { Repository } from './repository.data'
import { $fetch } from 'ofetch'
import { repositoryMeta } from './meta'
import 'dotenv/config'

const GITHUB_TOKEN = env.GITHUB_TOKEN

Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/plugins/markdownTransform.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { basename } from 'node:path'
import type { PluginOption } from 'vite'
import { basename } from 'node:path'
import { repositoryMeta } from '../data/meta'

const repos = repositoryMeta.map(({ name }) => `${name}`)
Expand Down
6 changes: 3 additions & 3 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// https://vitepress.dev/guide/custom-theme
import { h } from 'vue'
import type { EnhanceAppContext } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client'
import DefaultTheme from 'vitepress/theme'
// https://vitepress.dev/guide/custom-theme
import { h } from 'vue'
import CustomLayout from './CustomLayout.vue'

import '@shikijs/vitepress-twoslash/style.css'
Expand Down
4 changes: 2 additions & 2 deletions docs/.vitepress/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vite'
import Components from 'unplugin-vue-components/vite'
import Unocss from 'unocss/vite'
import Icons from 'unplugin-icons/vite'
import Components from 'unplugin-vue-components/vite'
import { defineConfig } from 'vite'
import { groupIconVitePlugin, localIconLoader } from 'vitepress-plugin-group-icons'
import { MarkdownTransform } from './plugins/markdownTransform'

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
"devDependencies": {
"@ampproject/remapping": "^2.3.0",
"@antfu/eslint-config": "^3.0.0",
"@antfu/eslint-config": "^3.7.2",
"@antfu/ni": "^0.22.4",
"@farmfe/cli": "^1.0.3",
"@farmfe/core": "^1.3.12",
Expand Down
Loading

0 comments on commit 73322a9

Please sign in to comment.