Bump ES level to 2021

Summary: Updating the remaining tsconfigs to build for an ES2021 target.

Reviewed By: antonk52

Differential Revision: D48687661

fbshipit-source-id: 2761704d251f701594ca5d362a17731f287088ed
This commit is contained in:
Pascal Hartig
2023-08-29 05:06:18 -07:00
committed by Facebook GitHub Bot
parent d4d8c965eb
commit 554d2f9b83
10 changed files with 11 additions and 11 deletions

View File

@@ -5,7 +5,7 @@
"rootDir": "src", "rootDir": "src",
"esModuleInterop": true, "esModuleInterop": true,
"emitDeclarationOnly": true, "emitDeclarationOnly": true,
"lib": ["DOM", "ES2019"], "lib": ["DOM", "ES2021"],
"types": [ "types": [
"../types/flipperGlobals" "../types/flipperGlobals"
] ]

View File

@@ -3,7 +3,7 @@
"compilerOptions": { "compilerOptions": {
"outDir": "lib", "outDir": "lib",
"rootDir": "src", "rootDir": "src",
"lib": ["dom", "ES2019"] "lib": ["dom", "ES2021"]
}, },
"references": [] "references": []
} }

View File

@@ -3,7 +3,7 @@
"compilerOptions": { "compilerOptions": {
"outDir": "lib", "outDir": "lib",
"rootDir": "src", "rootDir": "src",
"lib": ["dom", "ES2019"], "lib": ["dom", "ES2021"],
"types": ["../types/flipperGlobals"] "types": ["../types/flipperGlobals"]
}, },
"references": [ "references": [

View File

@@ -3,7 +3,7 @@
"compilerOptions": { "compilerOptions": {
"outDir": "lib", "outDir": "lib",
"rootDir": "src", "rootDir": "src",
"lib": ["dom", "ES2019"], "lib": ["dom", "ES2021"],
"types": ["jest", "../types/jest-extensions", "react/next", "react-dom/next"] "types": ["jest", "../types/jest-extensions", "react/next", "react-dom/next"]
}, },
"references": [ "references": [

View File

@@ -3,7 +3,7 @@
"compilerOptions": { "compilerOptions": {
"outDir": "lib", "outDir": "lib",
"rootDir": "src", "rootDir": "src",
"lib": ["dom", "ES2019"] "lib": ["dom", "ES2021"]
}, },
"references": [ "references": [
{ {

View File

@@ -3,7 +3,7 @@
"compilerOptions": { "compilerOptions": {
"outDir": "lib", "outDir": "lib",
"rootDir": "src", "rootDir": "src",
"lib": ["DOM", "ES2019"], "lib": ["DOM", "ES2021"],
"types": ["../types/flipperGlobals", "../types/metro-resolver", "../types/metro"] "types": ["../types/flipperGlobals", "../types/metro-resolver", "../types/metro"]
}, },
"include": ["./src/*"], "include": ["./src/*"],

View File

@@ -3,7 +3,7 @@
"compilerOptions": { "compilerOptions": {
"outDir": "lib", "outDir": "lib",
"rootDir": "src", "rootDir": "src",
"lib": ["dom", "ES2019"], "lib": ["dom", "ES2021"],
"types": ["../types/flipperGlobals", "react/next", "react-dom/next"] "types": ["../types/flipperGlobals", "react/next", "react-dom/next"]
}, },
"references": [ "references": [

View File

@@ -3,7 +3,7 @@
"compilerOptions": { "compilerOptions": {
"outDir": "lib", "outDir": "lib",
"rootDir": ".", "rootDir": ".",
"lib": ["ES2019"], "lib": ["ES2021"],
"noEmit": true, "noEmit": true,
"esModuleInterop": true, "esModuleInterop": true,
"types": ["jest"] "types": ["jest"]

View File

@@ -1,9 +1,9 @@
{ {
"compilerOptions": { "compilerOptions": {
"module": "commonjs", "module": "commonjs",
"lib": ["ES2019"], "lib": ["ES2021"],
"esModuleInterop": true, "esModuleInterop": true,
"target": "ES2019", "target": "ES2021",
"removeComments": false, "removeComments": false,
"preserveConstEnums": true, "preserveConstEnums": true,
"sourceMap": true, "sourceMap": true,

View File

@@ -6,7 +6,7 @@
"composite": false, "composite": false,
"allowJs": false, "allowJs": false,
// for unit tests: // for unit tests:
"lib": ["DOM", "ES2019"], "lib": ["DOM", "ES2021"],
"types": ["jest"] "types": ["jest"]
}, },
"exclude": [ "exclude": [