diff --git a/packages/react-native/template/tsconfig.json b/packages/react-native/template/tsconfig.json index 304ab4e2d83d02..a32ebd52683b8a 100644 --- a/packages/react-native/template/tsconfig.json +++ b/packages/react-native/template/tsconfig.json @@ -1,3 +1,47 @@ { - "extends": "@react-native/typescript-config/tsconfig.json" + "$schema": "https://json.schemastore.org/tsconfig", + "display": "React Native", + "compilerOptions": { + "target": "esnext", + "module": "es2015", + "types": ["react-native", "jest"], + "lib": [ + "es2019", + "es2020.bigint", + "es2020.date", + "es2020.number", + "es2020.promise", + "es2020.string", + "es2020.symbol.wellknown", + "es2021.promise", + "es2021.string", + "es2021.weakref", + "es2022.array", + "es2022.object", + "es2022.string" + ], + "allowJs": true, + "jsx": "react-native", + "noEmit": true, + "isolatedModules": true, + "strict": true, + "moduleResolution": "bundler", + "customConditions": ["react-native"], + "allowImportingTsExtensions": true, + "allowArbitraryExtensions": true, + "resolveJsonModule": true, + "resolvePackageJsonImports": false, + "allowSyntheticDefaultImports": true, + "esModuleInterop": true, + "skipLibCheck": true, + // Causes issues with package.json "exports" + "forceConsistentCasingInFileNames": false + }, + "exclude": [ + "node_modules", + "babel.config.js", + "metro.config.js", + "jest.config.js", + "visionos" + ] }