Migrate JavaScript to TypeScript with full type safety

- Rename all .js/.jsx files to .ts/.tsx across resources/js and theme dirs
- Add TypeScript 6.0 with strict mode, tsconfig.json
- Add type definitions for Inertia page props, Alpine.js, Turbolinks
- Update vite.config.js entries to .ts/.tsx extensions
- Update all Blade @vite() calls to match new .ts/.tsx entry points
- Add TypeScript ESLint config (replacing unused Vue plugin)
- Add @types/react, @types/react-dom, @types/lodash
- Add typecheck script and integrate into check pipeline
- Full tsc --noEmit, ESLint, and production build pass cleanly
This commit is contained in:
root
2026-06-18 17:00:00 +02:00
parent 4aa6f01779
commit e6d92f27b3
41 changed files with 986 additions and 680 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ export default defineConfig({
laravel({
input: [
"resources/css/global.css",
"resources/js/global.js",
"resources/js/ssr.jsx",
"resources/js/global.ts",
"resources/js/ssr.tsx",
"resources/themes/atom/css/app.css",
"resources/themes/atom/js/app.js",
"resources/themes/dusk/css/app.css",