-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
31 lines (31 loc) · 1.91 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
{
"compilerOptions": {
"baseUrl": "./src",
"noEmit": true, // Do not emit output (meaning do not compile code, only perform type checking)
"sourceMap": true, //Generates corresponding .map file.
"noImplicitAny": true, //Raise error on expressions and declarations with an implied any type.
"noImplicitReturns": true, //Report error when not all code paths in function return a value.
"module": "commonjs", // Specify module code generation
"target": "es6", // Specify ECMAScript target version
"jsx": "react-jsx", // Support JSX in .tsx files
"lib": ["es6", "es2020", "dom", "dom.iterable", "esnext"], // List of library files to be included in the compilation
"allowJs": true, // Allow JavaScript files to be compiled
"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
"strict": true, // Enable all strict type checking options
"forceConsistentCasingInFileNames": true, // Disallow inconsistently-cased references to the same file.
"moduleResolution": "node", // Resolve modules using Node.js style
"resolveJsonModule": true, // Include modules imported with .json extension
"declaration": true, // Generate corresponding .d.ts file
"noUnusedLocals": true, // Report errors on unused locals
"noUnusedParameters": true, // Report errors on unused parameters
"experimentalDecorators": true, // Enables experimental support for ES decorators
"noFallthroughCasesInSwitch": true, // Report errors for fallthrough cases in switch statement
"paths": {
"@views/*": ["./src/views/*"]
}
},
"include": ["./src/**/*"],
"exclude": ["./node_modules", "./build"] // *** The files to not type check ***
}