Skip to content

Commit

Permalink
fix: set up custom TypeScript config for React Native
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesMangwa committed May 7, 2024
1 parent ec43658 commit 2a1d3e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"author": "emarsys",
"license": "MIT",
"devDependencies": {
"@tsconfig/react-native": "^3.0.5",
"@types/jest": "^29.5.12",
"@types/react": "^18.3.1",
"@types/react-native": "^0.73.0",
Expand Down
7 changes: 5 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"extends": "@tsconfig/react-native/tsconfig.json",
// Tells TypeScript where to look for files to work with.
"include": ["index.js", "src/**/*"],
"compilerOptions": {
// Tells TypeScript to read JS files, as normally they are ignored as source files.
// Specify the "@type/" packages to be included.
"types": ["react-native"],
// Skip type checking all .d.ts files from external libraries.
"skipLibCheck": true,
// Tell TypeScript to read JS files, as normally they are ignored as source files.
"allowJs": true,
// Ask Typescript to generate .d.ts declaration files.
"noEmit": false,
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1195,11 +1195,6 @@
dependencies:
"@sinonjs/commons" "^3.0.0"

"@tsconfig/react-native@^3.0.5":
version "3.0.5"
resolved "https://registry.yarnpkg.com/@tsconfig/react-native/-/react-native-3.0.5.tgz#c4971b1eca2e8cdf7b0d25f40193a782039c1abd"
integrity sha512-0+pmYzHccvwWpFz2Tv5AJxp6UroLALmAy+SX34tKlwaCie1mNbtCv6uOJp7x8pKchgNA9/n6BGrx7uLQvw8p9A==

"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0":
version "2.0.6"
resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz#7739c232a1fee9b4d3ce8985f314c0c6d33549d7"
Expand Down

0 comments on commit 2a1d3e2

Please sign in to comment.