From 7f813567c918e00b3d19ba42f00fcb3ab37e2b8c Mon Sep 17 00:00:00 2001 From: high1 Date: Fri, 19 Dec 2025 00:10:19 +0100 Subject: [PATCH] chore: cleanup and fixes --- env.d.ts | 2 +- prettier.config.ts | 1 + src/ClockHands.tsx | 2 +- test/vitest-setup.ts | 1 - vite.config.ts | 3 +-- 5 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 test/vitest-setup.ts diff --git a/env.d.ts b/env.d.ts index dc600d0..eea1472 100644 --- a/env.d.ts +++ b/env.d.ts @@ -1,6 +1,6 @@ /// /// -/// +/// interface ImportMetaEnv { readonly BASE?: string; diff --git a/prettier.config.ts b/prettier.config.ts index 2bce46a..1b33563 100644 --- a/prettier.config.ts +++ b/prettier.config.ts @@ -3,4 +3,5 @@ import { type Config } from 'prettier'; export default { plugins: ['prettier-plugin-tailwindcss'], singleQuote: true, + tailwindStylesheet: './src/index.css', } satisfies Config; diff --git a/src/ClockHands.tsx b/src/ClockHands.tsx index a088c8a..dabc41c 100644 --- a/src/ClockHands.tsx +++ b/src/ClockHands.tsx @@ -43,7 +43,7 @@ export const ClockHands = () => { /> diff --git a/test/vitest-setup.ts b/test/vitest-setup.ts deleted file mode 100644 index bb02c60..0000000 --- a/test/vitest-setup.ts +++ /dev/null @@ -1 +0,0 @@ -import '@testing-library/jest-dom/vitest'; diff --git a/vite.config.ts b/vite.config.ts index 4b88bd4..aa8356a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -9,7 +9,7 @@ import { checker } from 'vite-plugin-checker'; export default defineConfig(({ mode }) => ({ base: loadEnv(mode, process.cwd(), '')['BASE'] ?? '', plugins: [ - tsconfigPaths(), + tsconfigPaths({ projectDiscovery: 'lazy' }), tailwindcss(), solid(), checker({ @@ -22,7 +22,6 @@ export default defineConfig(({ mode }) => ({ ], test: { environment: 'happy-dom', - setupFiles: 'test/vitest-setup.ts', }, resolve: { conditions: ['development', 'browser'],