Skip to content

Commit 62e774b

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

File tree

7 files changed

+47
-76
lines changed

7 files changed

+47
-76
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"extends": "./tsconfig",
3+
"compilerOptions": {
4+
"paths": {}
5+
},
36
"exclude": ["lib"]
47
}
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"extends": "./tsconfig",
3+
"compilerOptions": {
4+
"paths": {}
5+
},
36
"exclude": ["lib"]
47
}
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: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"compilerOptions": {
3+
"paths": {
4+
"react-native-bottom-tabs": ["./packages/react-native-bottom-tabs/src/index"],
5+
"@bottom-tabs/react-navigation": ["./packages/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"
27+
}
28+
}

turbo.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22
"$schema": "https://turbo.build/schema.json",
33
"tasks": {
44
"lint": {
5+
"dependsOn": ["prepare"],
56
"inputs": ["**/*.ts", "**/*.tsx", "**/*.js"]
67
},
78
"typecheck": {
9+
"dependsOn": ["prepare"],
810
"inputs": ["**/*.ts", "**/*.tsx"]
911
},
1012
"test": {},
11-
"prepare": {},
13+
"prepare": {
14+
"dependsOn": ["^react-native-bottom-tabs#prepare"]
15+
},
1216
"build:android": {
1317
"env": ["JAVA_HOME", "ANDROID_NDK", "ANDROID_SDK", "ANDROID_HOME"],
1418
"inputs": [

0 commit comments

Comments
 (0)