diff --git a/frontend/eslint.config.mjs b/frontend/eslint.config.mjs index a6bb12b..c2f9c0c 100644 --- a/frontend/eslint.config.mjs +++ b/frontend/eslint.config.mjs @@ -5,7 +5,7 @@ export default [ ignores: ['dist/**', 'build/**', 'node_modules/**'], }, { - files: ['src/**/*.{ts,tsx}', 'vite.config.ts', 'vitest.setup.ts'], + files: ['src/**/*.{ts,tsx}', 'vite.config.mts', 'vitest.setup.ts'], languageOptions: { parser: tsParser, ecmaVersion: 'latest', diff --git a/frontend/package.json b/frontend/package.json index c312f02..bab809d 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -53,7 +53,7 @@ "dev": "vite", "start": "vite", "build": "vite build", - "lint": "eslint \"src/**/*.{ts,tsx}\" vite.config.ts vitest.setup.ts", + "lint": "eslint \"src/**/*.{ts,tsx}\" vite.config.mts vitest.setup.ts", "preview": "vite preview", "test": "vitest run", "test:watch": "vitest" diff --git a/frontend/src/App.test.tsx b/frontend/src/App.test.tsx index 770fa2e..dd16a15 100644 --- a/frontend/src/App.test.tsx +++ b/frontend/src/App.test.tsx @@ -19,5 +19,5 @@ vi.mock('react-router-dom', async () => { }); test('renders App', () => { - render(); + render(); }); diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 8e1afb4..6b08b75 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -24,6 +24,6 @@ }, "include": [ "src", - "vite.config.ts" + "vite.config.mts" ] } diff --git a/frontend/vite.config.ts b/frontend/vite.config.mts similarity index 84% rename from frontend/vite.config.ts rename to frontend/vite.config.mts index b5751b6..2d70d67 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.mts @@ -4,13 +4,13 @@ import react from '@vitejs/plugin-react'; export default defineConfig(({ mode }) => { const env = loadEnv(mode, process.cwd(), ''); const port = Number(env.PORT || 5173); - const https = env.HTTPS === 'true'; + const httpsEnabled = env.HTTPS === 'true'; return { plugins: [react()], server: { port, - https, + ...(httpsEnabled ? { https: {} } : {}), strictPort: true, allowedHosts: ['localhost', 'host.docker.internal', 'frontend'], },