-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtsconfig.json
More file actions
51 lines (46 loc) · 2.51 KB
/
tsconfig.json
File metadata and controls
51 lines (46 loc) · 2.51 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
{
"extends": "expo/tsconfig.base",
"compilerOptions": {
"strict": true,
"baseUrl": ".",
"paths": {
"~/*": ["*"],
"@*": ["*"]
},
"target": "ES2020",
"lib": ["ES2020", "DOM"],
"module": "ESNext",
"moduleResolution": "node",
"jsx": "react-native",
"allowJs": true,
"noEmit": true,
"isolatedModules": true,
"esModuleInterop": true,
"skipLibCheck": true,
"resolveJsonModule": true,
/* Strict Type-Checking Options */
"strictNullChecks": true /* Enable strict null checks */,
"strictFunctionTypes": true /* Enable strict checking of function types */,
"strictPropertyInitialization": true /* Ensure non-undefined class properties are initialized in the constructor */,
"noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type */,
"noUncheckedIndexedAccess": true /* Include undefined in index signature results */,
/* Additional Checks */
"noUnusedLocals": true /* Report errors on unused locals */,
"noUnusedParameters": true /* Report errors on unused parameters */,
"noImplicitReturns": true /* Report error when not all code paths in function return a value */,
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement */,
"noImplicitOverride": true /* Ensure overriding members in derived classes are marked with override */,
"allowUnreachableCode": false /* Report errors for unreachable code */,
/* React Specific */
"jsxImportSource": "react" /* Specify module specifier used to import JSX factory functions */,
"noPropertyAccessFromIndexSignature": true /* Enforces using indexed access for keys declared using an index signature */,
/* Module Resolution */
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports */,
"allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export */,
/* Advanced */
"useUnknownInCatchVariables": true /* Type catch clause variables as 'unknown' instead of 'any' */,
"noImplicitThis": true /* Raise error on 'this' expressions with an implied 'any' type */
},
"include": ["**/*.ts", "**/*.tsx", ".expo/types/**/*.ts", "expo-env.d.ts", "nativewind-env.d.ts"],
"exclude": ["node_modules", "babel.config.js", "metro.config.js", "jest.config.js"]
}