-
Notifications
You must be signed in to change notification settings - Fork 304
/
tsconfig.json
36 lines (36 loc) · 2.28 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"compilerOptions": {
"module": "es2022", // Specify module code generation
"target": "es5", // Specify ECMAScript target version
"jsx": "react-jsx", // Support JSX in .tsx files
"lib": ["dom", "dom.iterable", "esnext"], // List of library files to be included in the compilation
"allowJs": true, // Allow JavaScript files to be compiled
"declaration": true, // Generate corresponding .d.ts file
"noEmit": true, // Do not emit output (meaning do not compile code, only perform type checking)
"sourceMap": true, // Generate corrresponding .map file
"strict": true, // Enable all strict type checking options
"skipLibCheck": true, // Skip type checking of all declaration files
"esModuleInterop": true, // Disables namespace imports (import * as fs from "fs") and enables CJS/AMD/UMD style imports (import fs from "fs")
"allowSyntheticDefaultImports": true, // Allow default imports from modules with no default export
"forceConsistentCasingInFileNames": true, // Disallow inconsistently-cased references to the same file.
"noFallthroughCasesInSwitch": true, // Report errors for fallthrough cases in switch statement
"moduleResolution": "node", // Resolve modules using Node.js style
"resolveJsonModule": true, // Include modules imported with .json extension
"isolatedModules": true, // Unconditionally emit imports for unresolved files
"noUnusedLocals": false, // Report errors on unused locals
"noUnusedParameters": false, // Report errors on unused parameters
"incremental": true, // Enable incremental compilation by reading/writing information from prior compilations to a file on disk
"removeComments": true, // Disable emitting comments
"skipDefaultLibCheck": true, // Skip type checking .d.ts files that are included with TypeScript
"downlevelIteration": true,
"paths": { "@deriv/*": ["./packages/*/src"] }
},
"include": ["utils.d.ts"],
"ts-node": {
"compilerOptions": {
"module": "commonjs"
}
},
"files": ["./types/global.d.ts", "./types/utils.d.ts", "./types/svg.d.ts"],
"exclude": ["node_modules", "build", "**/*.js", "**/*.jsx"] // *** The files to not type check ***
}