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",
"esModuleInterop": true,
"emitDeclarationOnly": true,
"lib": ["DOM", "ES2019"],
"lib": ["DOM", "ES2021"],
"types": [
"../types/flipperGlobals"
]

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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