-
Notifications
You must be signed in to change notification settings - Fork 13
/
tsconfig.json
29 lines (29 loc) · 1.81 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
{
"compilerOptions": {
"allowJs": true, // Allow JavaScript files to be compiled
"allowSyntheticDefaultImports": true, // Allow default imports from modules with no default export
"baseUrl": "src",
"declaration": true, // Generate corresponding .d.ts file
"esModuleInterop": true, // Disables namespace imports (import * as fs from "fs") and enables CJS/AMD/UMD style imports (import fs from "fs")
"forceConsistentCasingInFileNames": true, // Disallow inconsistently-cased references to the same file.
"incremental": true, // Enable incremental compilation by reading/writing information from prior compilations to a file on disk
"isolatedModules": true, // Unconditionally emit imports for unresolved files
"jsx": "react-jsx", // Support JSX in .tsx files
"lib": ["dom", "dom.iterable", "esnext"], // List of library files to be included in the compilation
"module": "esnext", // Specify module code generation
"moduleResolution": "node", // Resolve modules using Node.js style
"noEmit": false, // Do not emit output (meaning do not compile code, only perform type checking)
"noFallthroughCasesInSwitch": true, // Report errors for fallthrough cases in switch statement
"noUnusedLocals": false,
"noUnusedParameters": true, // Report errors on unused parameters
"resolveJsonModule": true, // Include modules imported with .json extension
"outDir": "./dist",
"skipLibCheck": true, // Skip type checking of all declaration files
"sourceMap": true, // Generate corrresponding .map file
"strict": true, // Enable all strict type checking options
"target": "es6", // Specify ECMAScript target version
"types": ["@testing-library/jest-dom"]
},
"include": ["src/*.ts", "src/**/*.ts", "src/**/*.tsx"],
"exclude": ["node_modules", "**/*.test.ts", "**/*.test.tsx"]
}