|
| 1 | +{ |
| 2 | + // Visit https://aka.ms/tsconfig to read more about this file |
| 3 | + "compilerOptions": { |
| 4 | + // know bug -> https://github.com/egoist/tsup/issues/1389 |
| 5 | + "ignoreDeprecations": "6.0", |
| 6 | + // File Layout |
| 7 | + "rootDir": ".", |
| 8 | + "outDir": "./dist", |
| 9 | + "paths": { |
| 10 | + "@/*": ["./src/*"] |
| 11 | + }, |
| 12 | + |
| 13 | + // JSON Module Import |
| 14 | + "resolveJsonModule": true, |
| 15 | + "esModuleInterop": true, |
| 16 | + |
| 17 | + // Environment Settings |
| 18 | + // See also https://aka.ms/tsconfig/module |
| 19 | + "module": "nodenext", |
| 20 | + "target": "esnext", |
| 21 | + "types": ["node"], |
| 22 | + "lib": ["esnext"], |
| 23 | + // For nodejs: |
| 24 | + // "lib": ["esnext"], |
| 25 | + // "types": ["node"], |
| 26 | + // and npm install -D @types/node |
| 27 | + |
| 28 | + // Other Outputs |
| 29 | + "sourceMap": true, |
| 30 | + "declaration": true, |
| 31 | + "declarationMap": true, |
| 32 | + |
| 33 | + // Stricter Typechecking Options |
| 34 | + "noUncheckedIndexedAccess": true, |
| 35 | + "exactOptionalPropertyTypes": true, |
| 36 | + |
| 37 | + // Style Options |
| 38 | + // "noImplicitReturns": true, |
| 39 | + // "noImplicitOverride": true, |
| 40 | + // "noUnusedLocals": true, |
| 41 | + // "noUnusedParameters": true, |
| 42 | + // "noFallthroughCasesInSwitch": true, |
| 43 | + // "noPropertyAccessFromIndexSignature": true, |
| 44 | + |
| 45 | + // Recommended Options |
| 46 | + "strict": true, |
| 47 | + "jsx": "react-jsx", |
| 48 | + "verbatimModuleSyntax": true, |
| 49 | + "isolatedModules": true, |
| 50 | + "noUncheckedSideEffectImports": true, |
| 51 | + "moduleDetection": "force", |
| 52 | + "skipLibCheck": true, |
| 53 | + } |
| 54 | +} |
0 commit comments