-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
24 lines (24 loc) · 1.01 KB
/
tsconfig.json
File metadata and controls
24 lines (24 loc) · 1.01 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
{
"extends": "@react-native/typescript-config",
"compilerOptions": {
"types": ["jest"],
"noUnusedLocals": true,
"noUnusedParameters": true,
"baseUrl": ".", // if i'm not using baseUrl option i have to add . in every single path beginning as EX : "paths":{ "@/":["./app/*"]} || see no dot in /app/*
"paths": {
"@/*": ["app/*"],
"@components": ["app/components/index"], // if you are refering common index file in folder you should add "/index" end of the path
"@components/*": ["app/components/*"],
"@styles/*": ["app/styles/*"], // if we want to import all the files in particular folder we should use "*", end of the path
"@navigation/*": ["app/navigation/*"],
"@hooks": ["app/hooks/index"],
"@hooks/*": ["app/hooks/*"],
"@utils": ["app/utils/index"],
"@utils/*": ["app/utils/*"],
"@configs": ["app/configs/index"],
"@plugins": ["./app/plugins/index"]
}
},
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["**/node_modules", "**/Pods"]
}