Visitar URL original
chore: use oxfmt `sortImports` (#23319) · vitejs/vite@97ad042 · GitHub
Skip to content

Commit 97ad042

Browse files
authored
chore: use oxfmt sortImports (#23319)
1 parent dd1a8fb commit 97ad042

246 files changed

Lines changed: 957 additions & 964 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.oxfmtrc.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
"singleQuote": true,
44
"printWidth": 80,
55
"sortPackageJson": false,
6+
"sortImports": {
7+
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
8+
"partitionByNewline": true,
9+
"newlinesBetween": false
10+
},
611
"overrides": [
712
{
813
"files": ["**/*.json5"],

‎docs/.vitepress/buildEnd.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import path from 'node:path'
21
import { writeFileSync } from 'node:fs'
2+
import path from 'node:path'
33
import { Feed } from 'feed'
44
import type { SiteConfig } from 'vitepress'
55
import { createContentLoader } from 'vitepress'

‎docs/.vitepress/config.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import path from 'node:path'
2+
import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
3+
import type { FooterLink } from '@voidzero-dev/vitepress-theme'
4+
import { extendConfig } from '@voidzero-dev/vitepress-theme/config'
5+
import { markdownItImageSize } from 'markdown-it-image-size'
26
import type { HeadConfig } from 'vitepress'
37
import { defineConfig } from 'vitepress'
4-
import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
8+
import { graphvizMarkdownPlugin } from 'vitepress-plugin-graphviz'
59
import {
610
groupIconMdPlugin,
711
groupIconVitePlugin,
812
} from 'vitepress-plugin-group-icons'
9-
import { graphvizMarkdownPlugin } from 'vitepress-plugin-graphviz'
1013
import llmstxt from 'vitepress-plugin-llms'
11-
import { markdownItImageSize } from 'markdown-it-image-size'
12-
import { extendConfig } from '@voidzero-dev/vitepress-theme/config'
13-
import type { FooterLink } from '@voidzero-dev/vitepress-theme'
1414
import packageJson from '../../packages/vite/package.json' with { type: 'json' }
1515
import { buildEnd } from './buildEnd.config.ts'
1616

‎docs/.vitepress/theme/components/AsideSponsors.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script setup lang="ts">
2-
import { computed } from 'vue'
32
import {
43
VPDocAsideSponsors,
54
type Sponsors,
65
} from '@voidzero-dev/vitepress-theme'
6+
import { computed } from 'vue'
77
import { useSponsor } from '../composables/sponsor'
88
99
const data = useSponsor()

‎docs/.vitepress/theme/components/TopBanner.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<script setup lang="ts">
2-
import { computed, inject } from 'vue'
3-
import { useData } from 'vitepress'
42
import { Icon } from '@iconify/vue'
53
import {
64
themeContextKey,
75
type BannerConfig,
86
} from '@voidzero-dev/vitepress-theme'
7+
import { useData } from 'vitepress'
8+
import { computed, inject } from 'vue'
99
1010
const { theme, frontmatter } = useData()
1111

‎docs/.vitepress/theme/composables/sponsor.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { onMounted, ref } from 'vue'
21
import type { Sponsor, SponsorTier } from '@voidzero-dev/vitepress-theme'
2+
import { onMounted, ref } from 'vue'
33

44
interface Sponsors {
55
main: Sponsor[]

‎docs/.vitepress/theme/index.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { h } from 'vue'
21
import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client'
2+
import Theme from '@voidzero-dev/vitepress-theme/src/vite'
33
import '@shikijs/vitepress-twoslash/style.css'
44
import 'virtual:group-icons.css'
55
import 'vitepress-plugin-graphviz/style.css'
6-
import Theme from '@voidzero-dev/vitepress-theme/src/vite'
6+
import { h } from 'vue'
77
import './styles.css'
88

99
// components
10-
import SvgImage from './components/SvgImage.vue'
11-
import YouTubeVideo from './components/YouTubeVideo.vue'
12-
import NonInheritBadge from './components/NonInheritBadge.vue'
1310
import AsideSponsors from './components/AsideSponsors.vue'
11+
import NonInheritBadge from './components/NonInheritBadge.vue'
1412
import ScrimbaLink from './components/ScrimbaLink.vue'
13+
import SvgImage from './components/SvgImage.vue'
14+
import YouTubeVideo from './components/YouTubeVideo.vue'
1515

1616
export default {
1717
Layout() {

‎docs/.vitepress/theme/landing/FeatureGrid1.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup>
2-
import RiveAnimation from '@components/shared/RiveAnimation.vue'
32
import viteAnimation from '@assets/vite/animations/563_x_420_rich_features.riv'
3+
import RiveAnimation from '@components/shared/RiveAnimation.vue'
44
</script>
55

66
<template>

‎docs/.vitepress/theme/landing/FeatureGrid2.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup>
2-
import RiveAnimation from '@components/shared/RiveAnimation.vue'
32
import flexiblePluginAnimation from '@assets/vite/animations/640_x_300_flexible_plugin.riv'
3+
import RiveAnimation from '@components/shared/RiveAnimation.vue'
44
</script>
55

66
<template>

‎docs/.vitepress/theme/landing/Hero.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup>
2-
import RiveAnimation from '@components/shared/RiveAnimation.vue'
32
import CodeGroup from '@components/shared/CodeGroup.vue'
3+
import RiveAnimation from '@components/shared/RiveAnimation.vue'
44
55
import viteAnimation from '@assets/vite/animations/641_x_629_vite_masthead.riv'
66

0 commit comments

Comments
 (0)