From ca05241e72baf19822205b6239516b60d6088a59 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 1 Aug 2024 16:16:12 +0100 Subject: [PATCH] Switch ts target to es2022 (#1811) --- hak/tsconfig.json | 4 ++-- playwright/tsconfig.json | 4 ++-- tsconfig.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hak/tsconfig.json b/hak/tsconfig.json index 94abce380c..ea16e96c30 100644 --- a/hak/tsconfig.json +++ b/hak/tsconfig.json @@ -2,10 +2,10 @@ "compilerOptions": { "moduleResolution": "node", "esModuleInterop": true, - "target": "es2016", + "target": "es2022", "sourceMap": false, "strict": true, - "lib": ["es2020"] + "lib": ["es2022"] }, "include": ["../scripts/@types/*.d.ts", "./**/*.ts"], "ts-node": { diff --git a/playwright/tsconfig.json b/playwright/tsconfig.json index 6b7ca5c38d..8b7518f338 100644 --- a/playwright/tsconfig.json +++ b/playwright/tsconfig.json @@ -3,9 +3,9 @@ "resolveJsonModule": true, "moduleResolution": "node", "esModuleInterop": true, - "target": "es2017", + "target": "es2022", "module": "es2022", - "lib": ["ESNext", "es2021", "dom"] + "lib": ["es2022", "dom"] }, "include": ["**/*.ts"] } diff --git a/tsconfig.json b/tsconfig.json index a6e97c9b55..da5521b331 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,13 +4,13 @@ "esModuleInterop": true, "module": "commonjs", "moduleResolution": "node", - "target": "es2016", + "target": "es2022", "sourceMap": false, "outDir": "./lib", "rootDir": "./src", "declaration": true, "typeRoots": ["src/@types", "node_modules/@types"], - "lib": ["es2020", "dom"], + "lib": ["es2022", "dom"], "types": ["node"], "strict": true },