|
1 | 1 | {
|
2 |
| - "extends": "@trigger.dev/tsconfig/node18.json", |
3 | 2 | "include": ["src/globals.d.ts", "./src/**/*.ts", "tsup.config.ts", "./test/**/*.ts"],
|
4 | 3 | "compilerOptions": {
|
| 4 | + /* LANGUAGE COMPILATION OPTIONS */ |
| 5 | + "target": "ES2020", |
| 6 | + "lib": ["DOM", "DOM.Iterable", "ES2020"], |
| 7 | + "module": "ESNext", |
| 8 | + "moduleResolution": "node", |
| 9 | + "resolveJsonModule": true, |
| 10 | + "allowJs": true, |
| 11 | + "checkJs": true, |
| 12 | + |
| 13 | + /* EMIT RULES */ |
| 14 | + "outDir": "./dist", |
| 15 | + "noEmit": true, // TSUP takes care of emitting js for us, in a MUCH faster way |
| 16 | + "declaration": true, |
| 17 | + "declarationMap": true, |
| 18 | + "sourceMap": true, |
| 19 | + "removeComments": true, |
| 20 | + |
| 21 | + /* TYPE CHECKING RULES */ |
| 22 | + "strict": true, |
| 23 | + // "noImplicitAny": true, // Included in "Strict" |
| 24 | + // "noImplicitThis": true, // Included in "Strict" |
| 25 | + // "strictBindCallApply": true, // Included in "Strict" |
| 26 | + // "strictFunctionTypes": true, // Included in "Strict" |
| 27 | + // "strictNullChecks": true, // Included in "Strict" |
| 28 | + // "strictPropertyInitialization": true, // Included in "Strict" |
| 29 | + "noFallthroughCasesInSwitch": true, |
| 30 | + "noImplicitOverride": true, |
| 31 | + "noImplicitReturns": true, |
| 32 | + "noUnusedLocals": false, |
| 33 | + "noUnusedParameters": false, |
| 34 | + "useUnknownInCatchVariables": true, |
| 35 | + "noUncheckedIndexedAccess": true, // TLDR - Checking an indexed value (array[0]) now forces type <T | undefined> as there is no confirmation that index exists |
| 36 | + // THE BELOW ARE EXTRA STRICT OPTIONS THAT SHOULD ONLY BY CONSIDERED IN VERY SAFE PROJECTS |
| 37 | + // "exactOptionalPropertyTypes": true, // TLDR - Setting to undefined is not the same as a property not being defined at all |
| 38 | + // "noPropertyAccessFromIndexSignature": true, // TLDR - Use dot notation for objects if youre sure it exists, use ['index'] notaion if unsure |
| 39 | + |
| 40 | + /* OTHER OPTIONS */ |
| 41 | + "allowSyntheticDefaultImports": true, |
| 42 | + "esModuleInterop": true, |
| 43 | + // "emitDecoratorMetadata": true, |
| 44 | + // "experimentalDecorators": true, |
| 45 | + "forceConsistentCasingInFileNames": true, |
| 46 | + "skipLibCheck": true, |
| 47 | + "useDefineForClassFields": true, |
5 | 48 | "experimentalDecorators": true,
|
6 | 49 | "emitDecoratorMetadata": true,
|
7 |
| - "declaration": false, |
8 |
| - "declarationMap": false, |
9 | 50 | "types": ["jest"]
|
10 | 51 | },
|
11 | 52 | "exclude": ["node_modules"]
|
|
0 commit comments