Skip to content

Commit de4408f

Browse files
committed
fix: 🐛 centralize tsconfig
1 parent 2f2def3 commit de4408f

File tree

4 files changed

+37
-75
lines changed

4 files changed

+37
-75
lines changed

apps/example/tsconfig.json

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,10 @@
11
{
2+
"extends": "../tsconfig",
3+
"references": [
4+
{ "path": "../../packages/react-native-bottom-tabs" },
5+
{ "path": "../../packages/react-navigation" },
6+
],
27
"compilerOptions": {
3-
"paths": {
4-
"react-native-bottom-tabs": ["../../packages/react-native-bottom-tabs/src/index"],
5-
"@bottom-tabs/react-navigation": [
6-
"../../packages/react-navigation/src/index"
7-
]
8-
},
9-
"allowUnreachableCode": false,
10-
"allowUnusedLabels": false,
11-
"esModuleInterop": true,
12-
"forceConsistentCasingInFileNames": true,
13-
"jsx": "react-jsx",
14-
"lib": ["ESNext"],
15-
"module": "ESNext",
16-
"moduleResolution": "Bundler",
17-
"noFallthroughCasesInSwitch": true,
18-
"noImplicitReturns": true,
19-
"noImplicitUseStrict": false,
20-
"noStrictGenericChecks": false,
21-
"noUncheckedIndexedAccess": true,
22-
"noUnusedLocals": true,
23-
"noUnusedParameters": true,
24-
"resolveJsonModule": true,
25-
"skipLibCheck": true,
26-
"strict": true,
27-
"target": "ESNext",
28-
"verbatimModuleSyntax": true
8+
"rootDir": "."
299
}
3010
}
Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,6 @@
11
{
2+
"extends": "../../tsconfig",
23
"compilerOptions": {
34
"rootDir": ".",
4-
"paths": {
5-
"react-native-bottom-tabs": ["./src/index"],
6-
"react-native-bottom-tabs/react-navigation": [
7-
"./src/react-navigation/index"
8-
]
9-
},
10-
"allowUnreachableCode": false,
11-
"allowUnusedLabels": false,
12-
"esModuleInterop": true,
13-
"forceConsistentCasingInFileNames": true,
14-
"jsx": "react-jsx",
15-
"lib": ["ESNext"],
16-
"module": "ESNext",
17-
"moduleResolution": "Bundler",
18-
"noEmit": true,
19-
"noFallthroughCasesInSwitch": true,
20-
"noImplicitReturns": true,
21-
"noImplicitUseStrict": false,
22-
"noStrictGenericChecks": false,
23-
"noUncheckedIndexedAccess": true,
24-
"noUnusedLocals": true,
25-
"noUnusedParameters": true,
26-
"resolveJsonModule": true,
27-
"skipLibCheck": true,
28-
"strict": true,
29-
"target": "ESNext"
305
}
316
}
Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,6 @@
11
{
2+
"extends": "../../tsconfig",
23
"compilerOptions": {
34
"rootDir": ".",
4-
"paths": {
5-
"@bottom-tabs/react-navigation": ["./src/index"],
6-
},
7-
"allowUnreachableCode": false,
8-
"allowUnusedLabels": false,
9-
"esModuleInterop": true,
10-
"forceConsistentCasingInFileNames": true,
11-
"jsx": "react-jsx",
12-
"lib": ["ESNext"],
13-
"module": "ESNext",
14-
"moduleResolution": "Bundler",
15-
"noEmit": true,
16-
"noFallthroughCasesInSwitch": true,
17-
"noImplicitReturns": true,
18-
"noImplicitUseStrict": false,
19-
"noStrictGenericChecks": false,
20-
"noUncheckedIndexedAccess": true,
21-
"noUnusedLocals": true,
22-
"noUnusedParameters": true,
23-
"resolveJsonModule": true,
24-
"skipLibCheck": true,
25-
"strict": true,
26-
"target": "ESNext"
275
}
286
}

tsconfig.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"compilerOptions": {
3+
"rootDir": ".",
4+
"paths": {
5+
"react-native-bottom-tabs": ["./packages/react-native-bottom-tabs/src"],
6+
"@bottom-tabs/react-navigation": ["./packages/react-navigation/src"],
7+
},
8+
"allowUnreachableCode": false,
9+
"allowUnusedLabels": false,
10+
"esModuleInterop": true,
11+
"forceConsistentCasingInFileNames": true,
12+
"jsx": "react-jsx",
13+
"lib": ["ESNext"],
14+
"module": "ESNext",
15+
"moduleResolution": "Bundler",
16+
"noEmit": true,
17+
"noFallthroughCasesInSwitch": true,
18+
"noImplicitReturns": true,
19+
"noImplicitUseStrict": false,
20+
"noStrictGenericChecks": false,
21+
"noUncheckedIndexedAccess": true,
22+
"noUnusedLocals": true,
23+
"noUnusedParameters": true,
24+
"resolveJsonModule": true,
25+
"skipLibCheck": true,
26+
"strict": true,
27+
"target": "ESNext"
28+
}
29+
}

0 commit comments

Comments
 (0)