From 795bf42c16c93f12c62d9c9742b6dd63fcf77c33 Mon Sep 17 00:00:00 2001 From: Lukas Date: Fri, 14 Jun 2024 17:34:06 +0300 Subject: [PATCH] [infra] Raise `tsconfig`/`tsc` target to `es2022` --- tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 27eb7038042f52..6801182f4f7aae 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "module": "esnext", - "target": "es5", + // aligning with Node18 recommendation: https://www.npmjs.com/package/@tsconfig/node18 + "target": "es2022", "lib": ["es2020", "dom"], "jsx": "preserve", "moduleResolution": "node",