diff --git a/frontend/tsconfig.app.json b/frontend/tsconfig.app.json index af516fc..5916882 100644 --- a/frontend/tsconfig.app.json +++ b/frontend/tsconfig.app.json @@ -8,7 +8,18 @@ "types": ["vite/client"], "skipLibCheck": true, - /* Bundler mode */ + "baseUrl": ".", + "paths": { + "@/*": ["src/*"], + "@/components/*": ["src/components/*"], + "@/store/*": ["src/store/*"], + "@/services/*": ["src/services/*"], + "@/styles/*": ["src/styles/*"], + "@/pages/*": ["src/pages/*"], + "@/types/*": ["src/components/layout/sidebar/types/*"], + "@/lib/*": ["src/lib/*"] + }, + "moduleResolution": "bundler", "allowImportingTsExtensions": true, "verbatimModuleSyntax": true, @@ -16,7 +27,6 @@ "noEmit": true, "jsx": "react-jsx", - /* Linting */ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, @@ -24,5 +34,12 @@ "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true }, - "include": ["src"] + + "include": [ + "src/**/*.ts", + "src/**/*.tsx", + "src/**/*.d.ts", + "env.d.ts", + "src/modules/workaspace/terminal/hooks" + ] } diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 8b0f57b..3bceb1f 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -1,7 +1,13 @@ -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react' +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; +import path from "path"; +import tailwindcss from "@tailwindcss/vite"; -// https://vite.dev/config/ export default defineConfig({ - plugins: [react()], -}) + plugins: [react(), tailwindcss()], + resolve: { + alias: { + "@": path.resolve(__dirname, "src"), + }, + }, +});