|
1 | 1 | {
|
2 |
| - "compilerOptions": { |
3 |
| - "module": "commonjs", |
4 |
| - "lib": [ |
5 |
| - "es6" |
6 |
| - ], |
7 |
| - "noImplicitAny": true, |
8 |
| - "noImplicitThis": true, |
9 |
| - "strictNullChecks": true, |
10 |
| - "types": [ |
11 |
| - "node", |
12 |
| - "jest" |
13 |
| - ], |
14 |
| - "esModuleInterop": true, // Mainly so can test an import problem which only occurs with this option on! |
15 |
| - "noEmit": true, |
16 |
| - "forceConsistentCasingInFileNames": true |
17 |
| - }, |
18 |
| - "include": ["**/*.ts"], |
| 2 | + /* |
| 3 | + TypeScript is being used to do type checking across both JavaScript and TypeScript files. |
| 4 | + In particular, this picks up some problems in the JSDoc in the JavaScript files, and validates the code |
| 5 | + is consistent with the JSDoc. |
| 6 | + |
| 7 | + The settings here are used by VSCode. |
| 8 | + |
| 9 | + See also tsconfig.js.json and tsconfig.ts.json. |
| 10 | + */ |
| 11 | + /* Visit https://aka.ms/tsconfig to read more about tsconfig configuration. */ |
| 12 | + "compilerOptions": { |
| 13 | + "lib": ["es2021"], |
| 14 | + "module": "node16", |
| 15 | + "target": "es2021", |
| 16 | + |
| 17 | + "allowJs": true, |
| 18 | + "checkJs": true, |
| 19 | + |
| 20 | + /* Strict by default, but dial it down to reduce churn in our JavaScript code. */ |
| 21 | + "strict": true, |
| 22 | + "noImplicitAny": false, |
| 23 | + "strictNullChecks": false, |
| 24 | + "useUnknownInCatchVariables": false, |
| 25 | + |
| 26 | + "types": [ |
| 27 | + "node", |
| 28 | + "jest" |
| 29 | + ], |
| 30 | + "noEmit": true, /* just type checking and not emitting transpiled files */ |
| 31 | + "skipLibCheck": false, /* we want to check our hand crafted definitions */ |
| 32 | + "forceConsistentCasingInFileNames": true, |
| 33 | + "esModuleInterop": true /* common TypeScript config */ |
| 34 | + }, |
| 35 | + "include": [ |
| 36 | + /* JavaScript. Should match includes in tsconfig.js.json. */ |
| 37 | + "*.js", |
| 38 | + "*.mjs", |
| 39 | + "lib/**/*.js", |
| 40 | + /* TypeScript. Should match includes in tsconfig.ts.json. */ |
| 41 | + "**/*.ts", |
| 42 | + "**/*.mts" |
| 43 | + ], |
| 44 | + "exclude": [ |
| 45 | + "node_modules" |
| 46 | + ] |
19 | 47 | }
|
0 commit comments