From aadf03edd092d64fa4e60882bd13bc210a50bf9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Mon, 27 Oct 2025 02:01:08 +0800 Subject: [PATCH] chore: lint --- src/App.spec.ts | 7 +++---- src/App.vue | 4 +++- src/composables/useMetaLayoutsMenuOptions.tsx | 5 +++-- src/main.ts | 10 ++++------ src/pages/demos/index.page.vue | 4 ++-- vite-plugins/02.unplugin-auto-import.ts | 16 ++++++++-------- vite-plugins/09.vite-plugin-vue-devtools.ts | 3 ++- 7 files changed, 25 insertions(+), 24 deletions(-) diff --git a/src/App.spec.ts b/src/App.spec.ts index 0faf06a..6624e32 100644 --- a/src/App.spec.ts +++ b/src/App.spec.ts @@ -6,7 +6,10 @@ * https://pinia.vuejs.org/zh/cookbook/testing.html#unit-testing-components */ +import { mount } from '@vue/test-utils'; import { describe, expect, it } from 'vitest'; +import { createMemoryHistory, createRouter } from 'vue-router'; +import App from './App.vue'; const router = createRouter({ history: createMemoryHistory(), @@ -20,10 +23,6 @@ const router = createRouter({ ], }); -import { mount } from '@vue/test-utils'; -import { createMemoryHistory, createRouter } from 'vue-router'; -import App from './App.vue'; - describe('App', () => { it('renders RouterView', async () => { router.push('/'); diff --git a/src/App.vue b/src/App.vue index 09b9459..6809aec 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,8 @@