This repository has been archived by the owner on Nov 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.json
66 lines (62 loc) · 1.79 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//Many options here were gotten from
//https://medium.com/@patngo/transitioning-a-react-native-app-to-typescript-in-2019-f61c5acb8e1e
{
"compilerOptions": {
/* Basic Options */
"target": "ES6",
"module": "commonjs",
"allowJs": true,
"checkJs": false, //We're slowly transitioning to TS, lots of JS files will have linting errors
"resolveJsonModule": true,
"jsx": "react",
"noEmit": true,
"skipLibCheck": true,
/* Strict Type-Checking Options */
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"noImplicitThis": true,
"alwaysStrict": true,
"suppressImplicitAnyIndexErrors": true,
/* Additional Checks */
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
/* Module Resolution Options */
"moduleResolution": "node",
"baseUrl": ".",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
//Path aliases
"paths": {
"reusables/*": [
"src/components/*"
],
"screens/*": [
"src/screens/*"
],
"styling/*": [
"src/styling/*"
],
"utils/*": [
"src/utils/*"
],
"media/*": [
"src/media/*"
],
"dev/*": [
"src/_dev/*"
],
"data/*": [
"src/data/*"
]
}
},
"exclude": [
"__tests__", // exclude test files
"node_modules"
]
}