mirror of
https://github.com/yoshiko-pg/difit.git
synced 2026-09-19 05:03:24 +08:00
9b49f6a848
- Create shared fileUtils.ts with getFileExtension and getFileName functions
- Replace duplicate .split('.').pop()?.toLowerCase() logic across codebase
- Update imports in imageUtils.ts, SimpleSyntaxHighlighter.tsx, PrismSyntaxHighlighter.tsx, and server.ts
- Add null/undefined handling for edge cases
- Update tsconfig.cli.json to include src/utils
- Fix tests to use new utility functions
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
36 lines
815 B
JSON
36 lines
815 B
JSON
{
|
|
"compilerOptions": {
|
|
"composite": true,
|
|
"target": "ES2022",
|
|
"lib": ["ES2022"],
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
"allowSyntheticDefaultImports": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"resolveJsonModule": true,
|
|
"noEmit": false,
|
|
"declaration": true,
|
|
"outDir": "./dist",
|
|
"rootDir": "./src",
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": ["src/*"],
|
|
"@/types/*": ["src/types/*"]
|
|
},
|
|
"jsx": "react"
|
|
},
|
|
"include": [
|
|
"src/cli/**/*",
|
|
"src/server/**/*",
|
|
"src/types/**/*",
|
|
"src/tui/**/*",
|
|
"src/utils/**/*"
|
|
],
|
|
"exclude": ["src/client/**/*", "node_modules", "dist", "tests"]
|
|
}
|