|
| 1 | +{ |
| 2 | + "extends": "./tsconfig.aliases.json", |
| 3 | + "compilerOptions": { |
| 4 | + /* Basic Options */ |
| 5 | + // "incremental": true, /* Enable incremental compilation */ |
| 6 | + "target": "ESNext", |
| 7 | + /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ |
| 8 | + "module": "nodenext", |
| 9 | + "moduleResolution": "nodenext", |
| 10 | + /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ |
| 11 | + "lib": [ |
| 12 | + /* Specify library files to be included in the compilation. */ |
| 13 | + "ES2015", |
| 14 | + "ES2016", |
| 15 | + "ES2017", |
| 16 | + "ES2018", |
| 17 | + "ES2019", |
| 18 | + "ES2020", |
| 19 | + "ES2021", |
| 20 | + "ES2022", |
| 21 | + ], |
| 22 | + "noImplicitOverride": true, |
| 23 | + "checkJs": true /* Report errors in .js files. */, |
| 24 | + "declaration": true, |
| 25 | + /* Generates corresponding '.d.ts' file. */ |
| 26 | + "declarationMap": true, |
| 27 | + /* Generates a sourcemap for each corresponding '.d.ts' file. */ |
| 28 | + "sourceMap": true /* Generates corresponding '.map' file. */, |
| 29 | + "outDir": "./build", |
| 30 | + /* Redirect output structure to the directory. */ |
| 31 | + "rootDir": ".", |
| 32 | + |
| 33 | + /* Strict Type-Checking Options */ |
| 34 | + "strict": true, |
| 35 | + /* Enable all strict type-checking options. */ |
| 36 | + "noImplicitAny": true, |
| 37 | + /* Raise error on expressions and declarations with an implied 'any' type. */ |
| 38 | + "strictNullChecks": true, |
| 39 | + /* Enable strict null checks. */ |
| 40 | + // "strictFunctionTypes": true, /* Enable strict checking of function types. */ |
| 41 | + // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ |
| 42 | + // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ |
| 43 | + "noImplicitThis": true, |
| 44 | + /* Raise error on 'this' expressions with an implied 'any' type. */ |
| 45 | + "alwaysStrict": true, |
| 46 | + /* Parse in strict mode and emit "use strict" for each source file. */ |
| 47 | + |
| 48 | + /* Additional Checks */ |
| 49 | + // "noUnusedLocals": true, /* Report errors on unused locals. */ |
| 50 | + // "noUnusedParameters": true, /* Report errors on unused parameters. */ |
| 51 | + "noImplicitReturns": true, |
| 52 | + /* Report error when not all code paths in function return a value. */ |
| 53 | + "noFallthroughCasesInSwitch": true, |
| 54 | + /* Report errors for fallthrough cases in switch statement. */ |
| 55 | + "resolveJsonModule": true, |
| 56 | + //"keyofStringsOnly": true, // We don't have symbol keys for objects, so this will simplify our code... |
| 57 | + |
| 58 | + /* Module Resolution Options */ |
| 59 | + // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ |
| 60 | + // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ |
| 61 | + // "paths": { |
| 62 | + // "<rootDir>/package.json":["./package.json"] |
| 63 | + // }, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ |
| 64 | + "rootDirs": [] /* List of root folders whose combined content represents the structure of the project at runtime. */, |
| 65 | + // "typeRoots": ["./types", "./node_modules/@types"], /* List of folders to include type definitions from. */ |
| 66 | + "types": ["node"], |
| 67 | + /* Type declaration files to be included in compilation. */ |
| 68 | + // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ |
| 69 | + "esModuleInterop": true, |
| 70 | + /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ |
| 71 | + // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ |
| 72 | + // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ |
| 73 | + |
| 74 | + /* Source Map Options */ |
| 75 | + // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ |
| 76 | + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ |
| 77 | + // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ |
| 78 | + // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ |
| 79 | + |
| 80 | + /* Experimental Options */ |
| 81 | + // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ |
| 82 | + // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ |
| 83 | + |
| 84 | + /* Advanced Options */ |
| 85 | + "forceConsistentCasingInFileNames": true, |
| 86 | + /* Disallow inconsistently-cased references to the same file. */ |
| 87 | + }, |
| 88 | + "include": ["./**/*"], |
| 89 | + "exclude": [ |
| 90 | + "node_modules", |
| 91 | + "./dist/", |
| 92 | + "./build/", |
| 93 | + "./build-*/", |
| 94 | + "./**/*.spec.ts", |
| 95 | + "./**/*.test.ts", |
| 96 | + ], |
| 97 | + "references": [ |
| 98 | + { "path": "./__tests__/tsconfig.test.json" }, |
| 99 | + { "path": "./src/tsconfig.base.json" }, |
| 100 | + { "path": "./src/tsconfig.test.json" }, |
| 101 | + ], |
| 102 | + "ts-node": { |
| 103 | + // Runtime help for ts-node |
| 104 | + "require": ["tsconfig-paths/register"], |
| 105 | + "esm": true, |
| 106 | + }, |
| 107 | +} |
0 commit comments