-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtsconfig.json
More file actions
36 lines (36 loc) · 1.76 KB
/
tsconfig.json
File metadata and controls
36 lines (36 loc) · 1.76 KB
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": {
"allowJs": true, // Allow JavaScript files to be imported inside your project, instead of just .ts and .tsx files.
"allowSyntheticDefaultImports": true, // Allows you to write an import
"baseUrl": "./src", // Base directory to resolve non-absolute module names.
"checkJs": false, // Works in tandem with allowJs. When checkJs is enabled then errors are reported in JavaScript files.
"esModuleInterop": true, // Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'.
"experimentalDecorators": true, // Enables experimental support for ES7 decorators.
"jsx": "react", // Controls how JSX constructs are emitted in JavaScript files.
"lib": [
"es2015",
"DOM" // https://testing-library.com/docs/webdriverio-testing-library/intro/#typescript
],
"module": "commonjs", // Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'.
"outDir": "./core",
"target": "es2015", // Changes which JS features are downleveled and which are left intact.
"types": [ // Packages listed will be included in the global scope
"@testing-library/jest-dom",
"jest",
"node",
],
},
"include": [ // Specifies an array of filenames or patterns to include in the program
"docs/**/*",
"docs/**/.*",
"src/**/*",
"src/**/.*",
"types/.*",
],
"exclude": [
"core",
"coverage",
"lib",
"node_modules",
]
}