Skip to content

Commit 0ba7f9e

Browse files
committed
Add tsconfig from npm
1 parent 8b04f1b commit 0ba7f9e

File tree

3 files changed

+10
-22
lines changed

3 files changed

+10
-22
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"@size-limit/preset-app": "^5.0.3",
3333
"@testing-library/react-hooks": "^7.0.2",
3434
"@testing-library/react-native": "^8.0.0-rc.1",
35+
"@tsconfig/react-native": "^1.0.4",
3536
"@types/jest": "^27.0.1",
3637
"@types/react": "^17.0.20",
3738
"@types/react-native": "^0.64.13",

tsconfig.json

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,11 @@
11
{
2+
"extends": "@tsconfig/react-native/tsconfig.json",
23
"compilerOptions": {
3-
"module": "ESNext",
4-
"target": "ESNext",
5-
"lib": ["ESNext"],
4+
"rootDir": "./src",
5+
"module": "ES2020",
66
"skipLibCheck": false,
77
"declaration": true,
8-
"rootDir": "./src",
9-
"jsx": "react-native",
10-
"strict": true,
11-
"esModuleInterop": true,
12-
"isolatedModules": true,
13-
"noImplicitAny": true,
14-
"strictNullChecks": true,
15-
"strictFunctionTypes": true,
16-
"strictBindCallApply": true,
17-
"strictPropertyInitialization": true,
18-
"noImplicitThis": true,
19-
"alwaysStrict": true,
20-
"noUnusedLocals": true,
21-
"noUnusedParameters": true,
22-
"noImplicitReturns": true,
23-
"noFallthroughCasesInSwitch": true,
24-
"noUncheckedIndexedAccess": true,
25-
"forceConsistentCasingInFileNames": true,
26-
"moduleResolution": "node"
8+
"noEmit": false
279
},
2810
"include": ["./src"]
2911
}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,6 +1451,11 @@
14511451
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"
14521452
integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==
14531453

1454+
"@tsconfig/react-native@^1.0.4":
1455+
version "1.0.4"
1456+
resolved "https://registry.yarnpkg.com/@tsconfig/react-native/-/react-native-1.0.4.tgz#716003b811bde26fc768cd1d120d1f193af6d22c"
1457+
integrity sha512-ARCmT+6kxAW17/wOVxn6PxQCQRGNDSql5nk3TJIL0s/fUt90yFiSCmHu4LXbbTfq/JIsvlYg+ps2yi7lkzK89g==
1458+
14541459
"@types/babel__core@^7.0.0":
14551460
version "7.1.14"
14561461
resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.14.tgz#faaeefc4185ec71c389f4501ee5ec84b170cc402"

0 commit comments

Comments
 (0)