-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtsconfig.json
More file actions
57 lines (49 loc) · 1.29 KB
/
Copy pathtsconfig.json
File metadata and controls
57 lines (49 loc) · 1.29 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"compilerOptions": {
// Allow JS files alongside TS for incremental migration
"allowJs": true,
"checkJs": true,
// Don't emit - just type check
"noEmit": true,
// Target ES2020 (modern browsers, Chrome extension environment)
"target": "ES2020",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ES2020",
"moduleResolution": "node",
// Strict type checking
"strict": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictBindCallApply": true,
"noImplicitAny": false, // Start permissive, enable later
"noImplicitThis": true,
// Additional checks
"noUnusedLocals": false, // Enable later
"noUnusedParameters": false, // Enable later
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
// Module interop
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
// Type declaration files
"types": ["chrome"],
// Skip node_modules
"skipLibCheck": true,
// Resolve paths
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
},
"include": [
"src/**/*.ts",
"src/**/*.js",
"src/types/**/*.d.ts"
],
"exclude": [
"node_modules",
"src/__tests__/**/*",
"jest.setup.js"
]
}