From 71f553e747e10f1cc1e115aadde9595fd432b95c Mon Sep 17 00:00:00 2001 From: DevDengChao <2325690622@qq.com> Date: Wed, 15 Dec 2021 16:57:59 +0800 Subject: [PATCH 1/2] feat: add ES2022 to tsconfig.json --- src/schemas/json/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/schemas/json/tsconfig.json b/src/schemas/json/tsconfig.json index 01a90ecdafc..ae6710e78a2 100644 --- a/src/schemas/json/tsconfig.json +++ b/src/schemas/json/tsconfig.json @@ -501,11 +501,12 @@ "ES2019", "ES2020", "ES2021", + "ES2022", "ESNext" ] }, { - "pattern": "^([Ee][Ss]([356]|(20(1[56789]|2[01]))|[Nn][Ee][Xx][Tt]))$" + "pattern": "^([Ee][Ss]([356]|(20(1[56789]|2[012]))|[Nn][Ee][Xx][Tt]))$" } ], "markdownDescription": "Set the JavaScript language version for emitted JavaScript and include compatible library declarations.\n\nSee more: https://www.typescriptlang.org/tsconfig#target" From 06edeaa7fb4283514f2fd6a75edbf70f606ba3d1 Mon Sep 17 00:00:00 2001 From: DevDengChao <2325690622@qq.com> Date: Wed, 15 Dec 2021 17:01:14 +0800 Subject: [PATCH 2/2] test: targeting ES2022 in tsconfig-test.json close #1975 --- src/test/tsconfig/tsconfig-test.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/tsconfig/tsconfig-test.json b/src/test/tsconfig/tsconfig-test.json index f9c9bec2e5d..3c8457e6812 100644 --- a/src/test/tsconfig/tsconfig-test.json +++ b/src/test/tsconfig/tsconfig-test.json @@ -1,5 +1,6 @@ { "compilerOptions": { - "module": "CommonJS" + "target": "ES2022", + "module": "CommonJS" } }