From 1336ff84c179c9e2995d6b07648ce0a3e98df0bb Mon Sep 17 00:00:00 2001 From: thehrz Date: Fri, 28 Jul 2023 16:56:03 +0800 Subject: [PATCH] chore: lint code --- src/main.ts | 2 +- src/typed-router.d.ts | 1 - tsconfig.json | 2 -- vite.config.ts | 6 +++--- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main.ts b/src/main.ts index 224fff6..316fde4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,10 +1,10 @@ import { ViteSSG } from 'vite-ssg' import { setupLayouts } from 'virtual:meta-layouts' +import { routes } from 'vue-router/auto/routes' import App from './App.vue' import type { UserModule } from './types' import vuetify from './plugins/vuetify' -import { routes } from 'vue-router/auto/routes' import '@unocss/reset/tailwind.css' import './styles/main.css' diff --git a/src/typed-router.d.ts b/src/typed-router.d.ts index 4e1f980..5ede1bf 100644 --- a/src/typed-router.d.ts +++ b/src/typed-router.d.ts @@ -45,7 +45,6 @@ declare module 'vue-router/auto/routes' { '/events': RouteRecordInfo<'/events', '/events', Record, Record>, '/posts/': RouteRecordInfo<'/posts/', '/posts', Record, Record>, '/posts/contribute': RouteRecordInfo<'/posts/contribute', '/posts/contribute', Record, Record>, - '/posts/test': RouteRecordInfo<'/posts/test', '/posts/test', Record, Record>, '/teachers/': RouteRecordInfo<'/teachers/', '/teachers', Record, Record>, } } diff --git a/tsconfig.json b/tsconfig.json index d90957e..c58befd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,11 +18,9 @@ "vitest", "vite/client", "vue/ref-macros", - "vite-plugin-pages/client", "vite-plugin-vue-component-preview/client", // "vite-plugin-vue-layouts/client", "unplugin-vue-macros/macros-global", - // "vite-plugin-vue-layouts/client.d.ts" "vite-plugin-vue-meta-layouts/client.d.ts" ], "paths": { diff --git a/vite.config.ts b/vite.config.ts index f82fb04..fc03cd4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -48,7 +48,7 @@ export default defineConfig({ 'vue/macros', '@vueuse/head', '@vueuse/core', - VueRouterAutoImports + VueRouterAutoImports, ], dts: 'src/auto-imports.d.ts', dirs: ['src/composables'], @@ -115,8 +115,8 @@ export default defineConfig({ routesFolder: [ 'src/pages', { src: 'src/posts', path: 'posts/' }, - ] - }) + ], + }), ], // https://github.com/vitest-dev/vitest