Add TypeScript path aliases and update import paths

This commit is contained in:
GitHub Copilot
2025-05-06 11:16:49 +00:00
parent 19a0e55654
commit 4bf29c70eb
6 changed files with 58 additions and 15 deletions

View File

@@ -4,6 +4,18 @@
"exclude": ["dist"],
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "react"
"jsxImportSource": "react",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
"@components/*": ["src/components/*"],
"@layouts/*": ["src/layouts/*"],
"@data/*": ["src/data/*"],
"@pages/*": ["src/pages/*"],
"@styles/*": ["src/styles/*"],
"@stores/*": ["src/stores/*"],
"@utils/*": ["src/utils.ts"],
"@types": ["src/types.ts"]
}
}
}