chore: lint code

This commit is contained in:
thehrz 2023-07-28 16:56:03 +08:00
parent 61971cfefb
commit 1336ff84c1
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855
4 changed files with 4 additions and 7 deletions

View File

@ -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'

View File

@ -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>>,
} }
} }

View File

@ -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": {

View File

@ -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