refactor: standardize tsconfig paths, update deprecation settings, and format user creation timestamp to ISO string

This commit is contained in:
Jose Selesan
2026-04-16 22:23:34 -03:00
parent f98a0c2c02
commit aabd9a8266
4 changed files with 6 additions and 8 deletions

View File

@@ -14,6 +14,6 @@ export function getUserProfile(user: User): UserProfile {
email: user.email, email: user.email,
role: (user as any).role || 'member', role: (user as any).role || 'member',
avatarUrl: user.image || getGravatarUrl(user.email), avatarUrl: user.image || getGravatarUrl(user.email),
createdAt: user.createdAt, createdAt: user.createdAt.toISOString(),
}; };
} }

View File

@@ -4,14 +4,15 @@
"module": "ESNext", "module": "ESNext",
"moduleResolution": "bundler", "moduleResolution": "bundler",
"moduleDetection": "force", "moduleDetection": "force",
"ignoreDeprecations": "5.0", "ignoreDeprecations": "6.0",
"strict": true, "strict": true,
"skipLibCheck": true, "skipLibCheck": true,
"types": ["bun"], "types": [
"baseUrl": ".", "bun"
],
"paths": { "paths": {
"@/*": [ "@/*": [
"src/*" "./src/*"
] ]
}, },
"outDir": "./dist", "outDir": "./dist",

View File

@@ -10,8 +10,6 @@
/* Bundler mode */ /* Bundler mode */
"moduleResolution": "bundler", "moduleResolution": "bundler",
"ignoreDeprecations": "5.0",
"baseUrl": ".",
"paths": { "paths": {
"@/*": ["./src/*"] "@/*": ["./src/*"]
}, },

View File

@@ -1,6 +1,5 @@
{ {
"compilerOptions": { "compilerOptions": {
"baseUrl": ".",
"paths": { "paths": {
"@/*": ["./src/*"] "@/*": ["./src/*"]
} }