generated from gilles/template-webapp
47 lines
1.3 KiB
JSON
47 lines
1.3 KiB
JSON
{
|
|
"compilerOptions": {
|
|
// === Cible et modules ===
|
|
"target": "ES2020",
|
|
"useDefineForClassFields": true,
|
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"skipLibCheck": true,
|
|
|
|
// === Résolution des modules ===
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"noEmit": true,
|
|
"jsx": "react-jsx",
|
|
|
|
// === Alias de chemins (correspond à vite.config.ts) ===
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": ["./src/*"],
|
|
"@components/*": ["./src/components/*"],
|
|
"@pages/*": ["./src/pages/*"],
|
|
"@hooks/*": ["./src/hooks/*"],
|
|
"@api/*": ["./src/api/*"],
|
|
"@utils/*": ["./src/utils/*"],
|
|
"@assets/*": ["./src/assets/*"],
|
|
"@styles/*": ["./src/styles/*"]
|
|
},
|
|
|
|
// === Type checking strict ===
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
|
|
// === Autres options ===
|
|
"esModuleInterop": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"types": ["vite/client"]
|
|
},
|
|
"include": ["src"],
|
|
"references": [{ "path": "./tsconfig.node.json" }]
|
|
}
|