Skip to content

Instantly share code, notes, and snippets.

@ewilan-riviere
Created September 29, 2023 05:32
Show Gist options
  • Save ewilan-riviere/616dc2bb9da36e4ed77068628719a00a to your computer and use it in GitHub Desktop.
Save ewilan-riviere/616dc2bb9da36e4ed77068628719a00a to your computer and use it in GitHub Desktop.
Laravel with Vite and TypeScript: tsconfig.json example
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"noImplicitAny": false,
"lib": ["esnext", "dom"],
"typeRoots": ["./node_modules/@types", "resources/**/*.d.ts"],
"paths": {
"@/*": ["./resources/js/*"],
"@": ["./resources/js"],
"~": ["./"],
"~/*": ["./*"]
}
},
"include": [
"resources/**/*.tsx",
"resources/**/*.vue",
"resources/**/*.d.ts",
"resources/**/*.ts",
"resources/**/*.tsx",
"resources/**/*.vue",
"*.d.ts",
"components.d.ts",
"auto-imports.d.ts",
"global.d.ts"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment