tsconfig.base.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "compilerOptions": {
  3. "composite": true,
  4. /* Basic Options */
  5. "target": "ES2022", // /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
  6. "module": "NodeNext", // /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
  7. "lib": [ // /* Specify library files to be included in the compilation. */
  8. "ESNext"
  9. ],
  10. "rootDir": "../../../src",
  11. "outDir": "../../../esm",
  12. "sourceMap": true,
  13. "declaration": true,
  14. "declarationDir": "../../../esm",
  15. "declarationMap": true,
  16. "stripInternal": true,
  17. // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
  18. // "noEmit": true, /* Do not emit outputs. */
  19. "importHelpers": true, // /* Import emit helpers from 'tslib'. */
  20. "isolatedModules": true, // /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
  21. "skipLibCheck": true, // /* Skip type checking of all declaration files (*.d.ts). */
  22. /* Strict Type-Checking Options */
  23. "strict": true, // /* Enable all strict type-checking options. */
  24. /* Additional Checks */
  25. "noUnusedLocals": true, // /* Report errors on unused locals. */
  26. // "noUnusedParameters": true, /* Report errors on unused parameters. */
  27. "noImplicitOverride": true,
  28. "noImplicitReturns": true, // /* Report error when not all code paths in function return a value. */
  29. "noFallthroughCasesInSwitch": true, // /* Report errors for fallthrough cases in switch statement. */
  30. "forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
  31. "exactOptionalPropertyTypes": true,
  32. "noImplicitAny": true,
  33. "noImplicitThis": true,
  34. "noUncheckedIndexedAccess": true,
  35. "resolveJsonModule": true,
  36. /* Module Resolution Options */
  37. "moduleResolution": "NodeNext", // /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
  38. // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
  39. // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
  40. // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
  41. // "typeRoots": [], /* List of folders to include type definitions from. */
  42. "types": [], // /* Type declaration files to be included in compilation. */
  43. "esModuleInterop": true, // /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
  44. // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
  45. // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
  46. "importsNotUsedAsValues": "error"
  47. },
  48. "include": [
  49. "../../../src"
  50. ],
  51. "exclude": [
  52. "../../../src/**/*.spec.ts",
  53. ]
  54. }