From 6765038d2f379edfa7e1ead25d79e49dd707483f Mon Sep 17 00:00:00 2001 From: Neal Beeken Date: Mon, 30 Jan 2023 10:56:37 -0500 Subject: [PATCH] feat(NODE-5016)!: compile ts with target es2020 --- .eslintrc.json | 2 +- tsconfig.json | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 2f0fadfa3a..9b3becfbdf 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -2,7 +2,7 @@ "root": true, "parser": "@typescript-eslint/parser", "parserOptions": { - "ecmaVersion": 2019 + "ecmaVersion": 2020 }, "plugins": [ "simple-import-sort", diff --git a/tsconfig.json b/tsconfig.json index a2724c494c..55dd558a25 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,11 +4,13 @@ "checkJs": false, "strict": true, "alwaysStrict": true, - "target": "ES2019", + "target": "ES2020", "module": "commonJS", "moduleResolution": "node", "skipLibCheck": true, - "lib": ["es2020"], + "lib": [ + "es2020" + ], // We don't make use of tslib helpers, all syntax used is supported by target engine "importHelpers": false, "noEmitHelpers": true, @@ -25,7 +27,9 @@ // we include sources in the release "inlineSources": false, // Prevents web types from being suggested by vscode. - "types": ["node"], + "types": [ + "node" + ], "forceConsistentCasingInFileNames": true, "noImplicitOverride": true, "noImplicitReturns": true, @@ -36,5 +40,7 @@ "transpileOnly": true, "compiler": "typescript-cached-transpile" }, - "include": ["src/**/*"] + "include": [ + "src/**/*" + ] }