-
Notifications
You must be signed in to change notification settings - Fork 119
/
tsconfig.json
36 lines (36 loc) · 1.37 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
{
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js", "styled-system"],
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"downlevelIteration": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"jsx": "react-jsx",
"lib": ["dom", "es2019"],
"module": "esnext",
"moduleResolution": "node",
"noEmit": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noUnusedLocals": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "es2018",
"paths": {
// Typecheck React based on installed types, otherwise JSX components are not recognized for some reason.
// https://stackoverflow.com/a/75093164/480608
"react": ["./node_modules/@types/react"],
// Remap react-redux path to define global useSelector and useDispatch types.
// DefaultRootState was removed in v8 and thus cannot be augmented anymore.
// https://stackoverflow.com/a/78550104/480608
"react-redux-default": ["./node_modules/react-redux"],
"react-redux": ["./src/@types/react-redux.d.ts"],
// react-split-pane types are missing the children prop, so we need to augment the shipped types
"react-split-pane": ["./src/@types/react-split-pane.d.ts"]
},
"types": ["vitest/globals"]
}
}