@react-native/typescript-config 0.73.0

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.
Files changed (3) hide show
  1. package/README.md +5 -0
  2. package/package.json +15 -0
  3. package/tsconfig.json +42 -0
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,15 @@
1
+ {
2
+ "name": "@react-native/typescript-config",
3
+ "version": "0.73.0",
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": ["typescript", "tsconfig", "react-native"],
13
+ "bugs": "https://github.com/facebook/react-native/issues",
14
+ "main": "tsconfig.json"
15
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "React Native",
4
+ "compilerOptions": {
5
+ "target": "esnext",
6
+ "module": "commonjs",
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": "nodenext",
29
+ "resolveJsonModule": true,
30
+ "allowSyntheticDefaultImports": true,
31
+ "esModuleInterop": true,
32
+ "skipLibCheck": true,
33
+ // Causes issues with package.json "exports"
34
+ "forceConsistentCasingInFileNames": false
35
+ },
36
+ "exclude": [
37
+ "node_modules",
38
+ "babel.config.js",
39
+ "metro.config.js",
40
+ "jest.config.js"
41
+ ]
42
+ }