chore: lint code
This commit is contained in:
parent
61971cfefb
commit
1336ff84c1
@ -1,10 +1,10 @@
|
|||||||
import { ViteSSG } from 'vite-ssg'
|
import { ViteSSG } from 'vite-ssg'
|
||||||
import { setupLayouts } from 'virtual:meta-layouts'
|
import { setupLayouts } from 'virtual:meta-layouts'
|
||||||
|
|
||||||
|
import { routes } from 'vue-router/auto/routes'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import type { UserModule } from './types'
|
import type { UserModule } from './types'
|
||||||
import vuetify from './plugins/vuetify'
|
import vuetify from './plugins/vuetify'
|
||||||
import { routes } from 'vue-router/auto/routes'
|
|
||||||
|
|
||||||
import '@unocss/reset/tailwind.css'
|
import '@unocss/reset/tailwind.css'
|
||||||
import './styles/main.css'
|
import './styles/main.css'
|
||||||
|
1
src/typed-router.d.ts
vendored
1
src/typed-router.d.ts
vendored
@ -45,7 +45,6 @@ declare module 'vue-router/auto/routes' {
|
|||||||
'/events': RouteRecordInfo<'/events', '/events', Record<never, never>, Record<never, never>>,
|
'/events': RouteRecordInfo<'/events', '/events', Record<never, never>, Record<never, never>>,
|
||||||
'/posts/': RouteRecordInfo<'/posts/', '/posts', Record<never, never>, Record<never, never>>,
|
'/posts/': RouteRecordInfo<'/posts/', '/posts', Record<never, never>, Record<never, never>>,
|
||||||
'/posts/contribute': RouteRecordInfo<'/posts/contribute', '/posts/contribute', Record<never, never>, Record<never, never>>,
|
'/posts/contribute': RouteRecordInfo<'/posts/contribute', '/posts/contribute', Record<never, never>, Record<never, never>>,
|
||||||
'/posts/test': RouteRecordInfo<'/posts/test', '/posts/test', Record<never, never>, Record<never, never>>,
|
|
||||||
'/teachers/': RouteRecordInfo<'/teachers/', '/teachers', Record<never, never>, Record<never, never>>,
|
'/teachers/': RouteRecordInfo<'/teachers/', '/teachers', Record<never, never>, Record<never, never>>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,11 +18,9 @@
|
|||||||
"vitest",
|
"vitest",
|
||||||
"vite/client",
|
"vite/client",
|
||||||
"vue/ref-macros",
|
"vue/ref-macros",
|
||||||
"vite-plugin-pages/client",
|
|
||||||
"vite-plugin-vue-component-preview/client",
|
"vite-plugin-vue-component-preview/client",
|
||||||
// "vite-plugin-vue-layouts/client",
|
// "vite-plugin-vue-layouts/client",
|
||||||
"unplugin-vue-macros/macros-global",
|
"unplugin-vue-macros/macros-global",
|
||||||
// "vite-plugin-vue-layouts/client.d.ts"
|
|
||||||
"vite-plugin-vue-meta-layouts/client.d.ts"
|
"vite-plugin-vue-meta-layouts/client.d.ts"
|
||||||
],
|
],
|
||||||
"paths": {
|
"paths": {
|
||||||
|
@ -48,7 +48,7 @@ export default defineConfig({
|
|||||||
'vue/macros',
|
'vue/macros',
|
||||||
'@vueuse/head',
|
'@vueuse/head',
|
||||||
'@vueuse/core',
|
'@vueuse/core',
|
||||||
VueRouterAutoImports
|
VueRouterAutoImports,
|
||||||
],
|
],
|
||||||
dts: 'src/auto-imports.d.ts',
|
dts: 'src/auto-imports.d.ts',
|
||||||
dirs: ['src/composables'],
|
dirs: ['src/composables'],
|
||||||
@ -115,8 +115,8 @@ export default defineConfig({
|
|||||||
routesFolder: [
|
routesFolder: [
|
||||||
'src/pages',
|
'src/pages',
|
||||||
{ src: 'src/posts', path: 'posts/' },
|
{ src: 'src/posts', path: 'posts/' },
|
||||||
]
|
],
|
||||||
})
|
}),
|
||||||
],
|
],
|
||||||
|
|
||||||
// https://github.com/vitest-dev/vitest
|
// https://github.com/vitest-dev/vitest
|
||||||
|
Loading…
Reference in New Issue
Block a user