tsconfig.json 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. // Visit https://aka.ms/tsconfig to read more about this file
  3. "compilerOptions": {
  4. // File Layout
  5. "rootDir": "./src",
  6. "outDir": "./dist",
  7. // Environment Settings
  8. // See also https://aka.ms/tsconfig/module
  9. "module": "nodenext",
  10. "target": "esnext",
  11. "types": [],
  12. // For nodejs:
  13. // "lib": ["esnext"],
  14. // "types": ["node"],
  15. // and npm install -D @types/node
  16. // Other Outputs
  17. "sourceMap": false,
  18. "declaration": false,
  19. "declarationMap": false,
  20. "removeComments": true,
  21. // Stricter Typechecking Options
  22. "noUncheckedIndexedAccess": true,
  23. "exactOptionalPropertyTypes": true,
  24. // Style Options
  25. // "noImplicitReturns": true,
  26. // "noImplicitOverride": true,
  27. // "noUnusedLocals": true,
  28. // "noUnusedParameters": true,
  29. // "noFallthroughCasesInSwitch": true,
  30. // "noPropertyAccessFromIndexSignature": true,
  31. // Recommended Options
  32. "strict": true,
  33. "jsx": "react-jsx",
  34. "verbatimModuleSyntax": true,
  35. "isolatedModules": true,
  36. "noUncheckedSideEffectImports": true,
  37. "moduleDetection": "force",
  38. "skipLibCheck": true,
  39. "moduleResolution": "nodenext",
  40. "allowImportingTsExtensions": true,
  41. "rewriteRelativeImportExtensions": true,
  42. // "rewriteRelativeImportExtensions": true,
  43. // "erasableSyntaxOnly": true,
  44. // "noEmit": true,
  45. "esModuleInterop": true
  46. }
  47. }