-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
49 lines (44 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
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": {
"@pages/*": ["./tests/pages/*"],
"@testdata/*": ["./tests/testdata/*"],
"@pagesetup": ["./test-setup/page-setup"],
"@constants/*": ["./src/vasu-playwright-lib/constants/*"],
"@utils/*": ["src/vasu-playwright-lib/utils/*"]
}, // 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,
// 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", "tests/**/*.ts", "test-setup/**/*.ts", "playwright.config.ts", ".eslintrc.js"],
"exclude": ["node_modules"]
}