From 7a7eeefe3b34dcfce0464a11e09adfa13bc0654d Mon Sep 17 00:00:00 2001 From: chamiakJ Date: Sat, 21 Jun 2025 19:05:48 +0530 Subject: [PATCH] refactor(config): migrate configuration files to ES module syntax - Updated jest.config.js, postcss.config.js, and tailwind.config.js to use ES module export syntax. - Removed unused tsconfigPaths import from vite.config.ts to streamline the configuration. --- worklenz-frontend/jest.config.js | 2 +- worklenz-frontend/postcss.config.js | 2 +- worklenz-frontend/tailwind.config.js | 2 +- worklenz-frontend/vite.config.ts | 5 ----- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/worklenz-frontend/jest.config.js b/worklenz-frontend/jest.config.js index f3d2d027..167bb4d6 100644 --- a/worklenz-frontend/jest.config.js +++ b/worklenz-frontend/jest.config.js @@ -1,4 +1,4 @@ -module.exports = { +export default { setupFilesAfterEnv: ['/src/setupTests.ts'], moduleNameMapper: { '^@/(.*)$': '/src/$1', diff --git a/worklenz-frontend/postcss.config.js b/worklenz-frontend/postcss.config.js index 12a703d9..2aa7205d 100644 --- a/worklenz-frontend/postcss.config.js +++ b/worklenz-frontend/postcss.config.js @@ -1,4 +1,4 @@ -module.exports = { +export default { plugins: { tailwindcss: {}, autoprefixer: {}, diff --git a/worklenz-frontend/tailwind.config.js b/worklenz-frontend/tailwind.config.js index 9b6645eb..4dda98e9 100644 --- a/worklenz-frontend/tailwind.config.js +++ b/worklenz-frontend/tailwind.config.js @@ -1,5 +1,5 @@ /** @type {import('tailwindcss').Config} */ -module.exports = { +export default { content: ['./src/**/*.{js,jsx,ts,tsx}'], theme: { extend: {}, diff --git a/worklenz-frontend/vite.config.ts b/worklenz-frontend/vite.config.ts index 431bf4c0..6515fbd1 100644 --- a/worklenz-frontend/vite.config.ts +++ b/worklenz-frontend/vite.config.ts @@ -1,7 +1,6 @@ import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import path from 'path'; -import tsconfigPaths from 'vite-tsconfig-paths'; export default defineConfig(({ command, mode }) => { const isProduction = command === 'build'; @@ -10,10 +9,6 @@ export default defineConfig(({ command, mode }) => { // **Plugins** plugins: [ react(), - tsconfigPaths({ - // Optionally, you can specify a custom tsconfig file - // loose: true, // If you're using a non-standard tsconfig setup - }), ], // **Resolve**