@react-native/typescript-config 0.73.0-nightly-20230603-fd9e295be

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # @react-native/typescript-config
2
+
3
+ This package provides the default `tsconfig.json` used by newly built React Native apps.
4
+
5
+ This template is customized for specific versions of React Native, and should be updated in sync with the rest of your app.
package/package.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "@react-native/typescript-config",
3
+ "version": "0.73.0-nightly-20230603-fd9e295be",
4
+ "description": "Default TypeScript configuration for React Native apps",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/facebook/react-native.git",
9
+ "directory": "packages/typescript-config"
10
+ },
11
+ "homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/typescript-config#readme",
12
+ "keywords": [
13
+ "typescript",
14
+ "tsconfig",
15
+ "react-native"
16
+ ],
17
+ "bugs": "https://github.com/facebook/react-native/issues",
18
+ "main": "tsconfig.json"
19
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "React Native",
4
+ "compilerOptions": {
5
+ "target": "esnext",
6
+ "module": "es2015",
7
+ "types": ["react-native", "jest"],
8
+ "lib": [
9
+ "es2019",
10
+ "es2020.bigint",
11
+ "es2020.date",
12
+ "es2020.number",
13
+ "es2020.promise",
14
+ "es2020.string",
15
+ "es2020.symbol.wellknown",
16
+ "es2021.promise",
17
+ "es2021.string",
18
+ "es2021.weakref",
19
+ "es2022.array",
20
+ "es2022.object",
21
+ "es2022.string"
22
+ ],
23
+ "allowJs": true,
24
+ "jsx": "react-native",
25
+ "noEmit": true,
26
+ "isolatedModules": true,
27
+ "strict": true,
28
+ "moduleResolution": "bundler",
29
+ "customConditions": ["react-native"],
30
+ "allowImportingTsExtensions": true,
31
+ "allowArbitraryExtensions": true,
32
+ "resolveJsonModule": true,
33
+ "resolvePackageJsonImports": false,
34
+ "allowSyntheticDefaultImports": true,
35
+ "esModuleInterop": true,
36
+ "skipLibCheck": true,
37
+ // Causes issues with package.json "exports"
38
+ "forceConsistentCasingInFileNames": false
39
+ },
40
+ "exclude": [
41
+ "node_modules",
42
+ "babel.config.js",
43
+ "metro.config.js",
44
+ "jest.config.js"
45
+ ]
46
+ }