-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.base.json
34 lines (33 loc) · 1.12 KB
/
tsconfig.base.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
{
"extends": "@tsconfig/recommended/tsconfig.json",
"compilerOptions": {
"lib": ["dom", "dom.iterable", "ESNext"],
"target": "ES2021",
"module": "CommonJS",
// To make project references work
"declaration": true,
"declarationMap": true,
"composite": true,
// Make globals work
"types": [
"jest",
"@testing-library/jest-dom",
"@types/testing-library__jest-dom"
],
// To make emotion work
"jsxImportSource": "@emotion/react",
// Create react app configs from tsconfig
// "allowJs": true, // TS6059: 'rootDir' is expected to contain all source files.
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"jsx": "react-jsx",
"moduleResolution": "node",
// "noEmit": true, // TS6310: Referenced project may not disable emit
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true
}
}