From 3a8fcac012af5d0a1de4632d4775a4203bc13a2c Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Thu, 3 Jun 2021 14:12:52 -0700 Subject: [PATCH 1/3] Update tsonfig to target es2017 --- common/tools/dev-tool/tsconfig.json | 2 +- common/tools/eslint-plugin-azure-sdk/tsconfig.json | 2 +- .../app-configuration/sample-react/tsconfig.json | 11 ++--------- sdk/core/core-amqp/tsconfig.json | 1 - sdk/digitaltwins/digital-twins-core/tsconfig.json | 1 - sdk/identity/identity/tsconfig.json | 1 - tsconfig.json | 2 +- 7 files changed, 5 insertions(+), 15 deletions(-) diff --git a/common/tools/dev-tool/tsconfig.json b/common/tools/dev-tool/tsconfig.json index af4008fc8754..b37073d5fe7c 100644 --- a/common/tools/dev-tool/tsconfig.json +++ b/common/tools/dev-tool/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "ES2015", + "target": "ES2017", "module": "commonjs", "moduleResolution": "node", "noEmit": true, diff --git a/common/tools/eslint-plugin-azure-sdk/tsconfig.json b/common/tools/eslint-plugin-azure-sdk/tsconfig.json index 08a623850d8f..a9b1efb89575 100644 --- a/common/tools/eslint-plugin-azure-sdk/tsconfig.json +++ b/common/tools/eslint-plugin-azure-sdk/tsconfig.json @@ -13,7 +13,7 @@ "pretty": true, "removeComments": true, "strict": true, - "target": "es2016", + "target": "es2017", "types": ["node"], "sourceMap": true, "resolveJsonModule": true diff --git a/sdk/appconfiguration/app-configuration/sample-react/tsconfig.json b/sdk/appconfiguration/app-configuration/sample-react/tsconfig.json index a273b0cfc0e9..33045198739e 100644 --- a/sdk/appconfiguration/app-configuration/sample-react/tsconfig.json +++ b/sdk/appconfiguration/app-configuration/sample-react/tsconfig.json @@ -1,11 +1,6 @@ { "compilerOptions": { - "target": "es5", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, @@ -20,7 +15,5 @@ "noEmit": true, "jsx": "react-jsx" }, - "include": [ - "src" - ] + "include": ["src"] } diff --git a/sdk/core/core-amqp/tsconfig.json b/sdk/core/core-amqp/tsconfig.json index d592c1e85767..dc407e60941d 100644 --- a/sdk/core/core-amqp/tsconfig.json +++ b/sdk/core/core-amqp/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "../../../tsconfig.package", "compilerOptions": { - "target": "es6", "outDir": "./dist-esm", "declarationDir": "./types", "resolveJsonModule": true diff --git a/sdk/digitaltwins/digital-twins-core/tsconfig.json b/sdk/digitaltwins/digital-twins-core/tsconfig.json index ec649b3c7791..13ea6388063d 100644 --- a/sdk/digitaltwins/digital-twins-core/tsconfig.json +++ b/sdk/digitaltwins/digital-twins-core/tsconfig.json @@ -2,7 +2,6 @@ "extends": "../../../tsconfig.package", "compilerOptions": { "strict": true, - "target": "es5", "sourceMap": true, "lib": ["es6", "dom"], "declaration": true, diff --git a/sdk/identity/identity/tsconfig.json b/sdk/identity/identity/tsconfig.json index a7b400342680..3ceaa1947afd 100644 --- a/sdk/identity/identity/tsconfig.json +++ b/sdk/identity/identity/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "../../../tsconfig.package", "compilerOptions": { - "target": "es6", "lib": ["DOM"], "declarationDir": "./types", "outDir": "./dist-esm", diff --git a/tsconfig.json b/tsconfig.json index cefae51eb534..61e7296d9bc0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "ES2015", + "target": "ES2017", "module": "commonjs", "lib": [], "declaration": true, From 0a4a5c2c83b06a129d5155bb780d6bda82c79257 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Thu, 3 Jun 2021 15:07:08 -0700 Subject: [PATCH 2/3] revert changes to sample tsconfig --- .../app-configuration/sample-react/tsconfig.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sdk/appconfiguration/app-configuration/sample-react/tsconfig.json b/sdk/appconfiguration/app-configuration/sample-react/tsconfig.json index 33045198739e..a273b0cfc0e9 100644 --- a/sdk/appconfiguration/app-configuration/sample-react/tsconfig.json +++ b/sdk/appconfiguration/app-configuration/sample-react/tsconfig.json @@ -1,6 +1,11 @@ { "compilerOptions": { - "lib": ["dom", "dom.iterable", "esnext"], + "target": "es5", + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, @@ -15,5 +20,7 @@ "noEmit": true, "jsx": "react-jsx" }, - "include": ["src"] + "include": [ + "src" + ] } From 494966cacc40791ab574e49c3c15049115c49ae2 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Thu, 3 Jun 2021 15:07:45 -0700 Subject: [PATCH 3/3] update sample --- sdk/test-utils/recorder/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/test-utils/recorder/tsconfig.json b/sdk/test-utils/recorder/tsconfig.json index 1abd6daa9270..ab1bc8180832 100644 --- a/sdk/test-utils/recorder/tsconfig.json +++ b/sdk/test-utils/recorder/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../../tsconfig.package", "compilerOptions": { "declarationDir": "./typings", - "target": "es5", + "target": "es2017", "outDir": "./dist-esm", "lib": ["dom", "es5", "es6", "es7", "esnext"] },