-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
49 lines (44 loc) · 1.89 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
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"compilerOptions": {
// Language and Environment
"target": "es6",
// Modules
"module": "commonjs",
"baseUrl": ".",
"moduleResolution": "node",
"resolveJsonModule": true,
"paths": {
"@env": ["./env/env.ts"],
"@pages": ["./tests/pages/index.ts"],
"@fixtures": ["./test-setup/fixtures.ts"],
"@basePage": ["./test-setup/basePage.ts"],
"@playwright-helper": ["./src/playwright-helper/index.ts"],
}, // Sets up custom path mappings, enabling to import modules with convenient shorter paths
// Emit
"outDir": "dist",
"rootDir": ".",
"sourceMap": true,
"declaration": true, // Generates declaration files (.d.ts)
"declarationMap": true, // Generates a sourcemap for each corresponding '.d.ts' file for easy debugging using the original source code
"importHelpers": true, // Imports helper functions from tslib to avoid duplication of utility functions in the output
// Interop Constraints
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
// Type Checking
"strict": true,
"strictNullChecks": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"noImplicitOverride": true, // Ensures that overriding methods in a subclass are marked with the 'override' keyword
"noImplicitReturns": true, // Ensures that all code paths in a function explicitly return a value
"typeRoots": ["node_modules/@types"], // Specifies the location of type declaration files
// Completeness
"skipLibCheck": true // Skip type checking of all declaration files (*.d.ts) for faster compilation times
},
"include": ["src/**/*.ts", "playwright.config.ts"],
"exclude": ["node_modules", ".azpiplelines", "tests/**/*.ts", "test-setup/**/*.ts"]
}