From a101c02ae9ae901637729856563caaebf0f245c7 Mon Sep 17 00:00:00 2001 From: Matt Pocock Date: Wed, 13 Sep 2023 09:34:32 +0100 Subject: [PATCH] 2023-09-13T08:34:32.284Z --- base-exercise/tsconfig.json | 2 +- .../tsconfig.json | 16 ++++++++++------ .../tsconfig.json | 16 ++++++++++------ .../tsconfig.json | 16 ++++++++++------ .../015-typescript-on-ci.explainer/tsconfig.json | 16 ++++++++++------ .../tsconfig.json | 16 ++++++++++------ .../tsconfig.json | 16 ++++++++++------ .../tsconfig.json | 16 ++++++++++------ .../tsconfig.json | 16 ++++++++++------ .../tsconfig.json | 16 ++++++++++------ .../119-const-enums.explainer/tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../158-module-or-script.explainer/tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../166-declare-global.problem/tsconfig.json | 2 +- .../166-declare-global.solution.1/tsconfig.json | 2 +- .../166-declare-global.solution.2/tsconfig.json | 2 +- .../167-modifying-window.problem/tsconfig.json | 2 +- .../167-modifying-window.solution/tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../169-declare-module.problem/tsconfig.json | 2 +- .../169-declare-module.solution/tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../191-no-emit.problem copy/tsconfig.json | 2 +- .../191-no-emit.problem/tsconfig.json | 2 +- .../191-no-emit.solution copy/tsconfig.json | 2 +- .../191-no-emit.solution/tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../193-isolated-modules.explainer/tsconfig.json | 2 +- .../194-cjs-vs-esm.explainer/tsconfig.json | 2 +- .../package.json | 0 .../src/index.ts | 0 .../tsconfig.json | 2 +- .../package.json | 0 .../src/index.ts | 0 .../tsconfig.json | 2 +- .../package.json | 0 .../src/index.ts | 0 .../tsconfig.json | 2 +- .../package.json | 0 .../src/index.ts | 0 .../tsconfig.json | 2 +- ... 197-multiple-tsconfig-json-files.problem.ts} | 0 ...197-multiple-tsconfig-json-files.solution.ts} | 0 ...als-are-tied-to-a-single-tsconfig.problem.ts} | 0 ...ls-are-tied-to-a-single-tsconfig.solution.ts} | 0 ...ng-from-other-tsconfig-json-files.problem.ts} | 0 ...g-from-other-tsconfig-json-files.solution.ts} | 0 ...blem.ts => 200-project-references.problem.ts} | 0 ...ion.ts => 200-project-references.solution.ts} | 0 .../{199-jsx.problem.ts => 201-jsx.problem.ts} | 0 .../{199-jsx.solution.ts => 201-jsx.solution.ts} | 0 tsconfig.json | 2 +- 64 files changed, 127 insertions(+), 91 deletions(-) rename src/080-configuring-typescript/{194.5-lib-dom.problem => 195-lib-dom.problem}/package.json (100%) rename src/080-configuring-typescript/{194.5-lib-dom.problem => 195-lib-dom.problem}/src/index.ts (100%) rename src/080-configuring-typescript/{194.5-lib-dom.problem => 195-lib-dom.problem}/tsconfig.json (91%) rename src/080-configuring-typescript/{194.5-lib-dom.solution => 195-lib-dom.solution}/package.json (100%) rename src/080-configuring-typescript/{194.5-lib-dom.solution => 195-lib-dom.solution}/src/index.ts (100%) rename src/080-configuring-typescript/{194.5-lib-dom.solution => 195-lib-dom.solution}/tsconfig.json (91%) rename src/080-configuring-typescript/{194.6-lib-dom-iterable.problem => 196-lib-dom-iterable.problem}/package.json (100%) rename src/080-configuring-typescript/{194.6-lib-dom-iterable.problem => 196-lib-dom-iterable.problem}/src/index.ts (100%) rename src/080-configuring-typescript/{194.6-lib-dom-iterable.problem => 196-lib-dom-iterable.problem}/tsconfig.json (91%) rename src/080-configuring-typescript/{194.6-lib-dom-iterable.solution => 196-lib-dom-iterable.solution}/package.json (100%) rename src/080-configuring-typescript/{194.6-lib-dom-iterable.solution => 196-lib-dom-iterable.solution}/src/index.ts (100%) rename src/080-configuring-typescript/{194.6-lib-dom-iterable.solution => 196-lib-dom-iterable.solution}/tsconfig.json (92%) rename src/080-configuring-typescript/{195-multiple-tsconfig-json-files.problem.ts => 197-multiple-tsconfig-json-files.problem.ts} (100%) rename src/080-configuring-typescript/{195-multiple-tsconfig-json-files.solution.ts => 197-multiple-tsconfig-json-files.solution.ts} (100%) rename src/080-configuring-typescript/{196-globals-are-tied-to-a-single-tsconfig.problem.ts => 198-globals-are-tied-to-a-single-tsconfig.problem.ts} (100%) rename src/080-configuring-typescript/{196-globals-are-tied-to-a-single-tsconfig.solution.ts => 198-globals-are-tied-to-a-single-tsconfig.solution.ts} (100%) rename src/080-configuring-typescript/{197-extending-from-other-tsconfig-json-files.problem.ts => 199-extending-from-other-tsconfig-json-files.problem.ts} (100%) rename src/080-configuring-typescript/{197-extending-from-other-tsconfig-json-files.solution.ts => 199-extending-from-other-tsconfig-json-files.solution.ts} (100%) rename src/080-configuring-typescript/{198-project-references.problem.ts => 200-project-references.problem.ts} (100%) rename src/080-configuring-typescript/{198-project-references.solution.ts => 200-project-references.solution.ts} (100%) rename src/080-configuring-typescript/{199-jsx.problem.ts => 201-jsx.problem.ts} (100%) rename src/080-configuring-typescript/{199-jsx.solution.ts => 201-jsx.solution.ts} (100%) diff --git a/base-exercise/tsconfig.json b/base-exercise/tsconfig.json index ed8935f..912bd10 100644 --- a/base-exercise/tsconfig.json +++ b/base-exercise/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/010-typescript-in-the-build-process/013-setting-up-a-frontend-app-with-vite.solution/tsconfig.json b/src/010-typescript-in-the-build-process/013-setting-up-a-frontend-app-with-vite.solution/tsconfig.json index 75abdef..f54ef55 100644 --- a/src/010-typescript-in-the-build-process/013-setting-up-a-frontend-app-with-vite.solution/tsconfig.json +++ b/src/010-typescript-in-the-build-process/013-setting-up-a-frontend-app-with-vite.solution/tsconfig.json @@ -1,23 +1,27 @@ { "compilerOptions": { - "target": "ES2020", + "target": "ES2022", "useDefineForClassFields": true, "module": "ESNext", - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": [ + "ES2020", + "DOM", + "DOM.Iterable" + ], "skipLibCheck": true, - /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - /* Linting */ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src"] -} + "include": [ + "src" + ] +} \ No newline at end of file diff --git a/src/010-typescript-in-the-build-process/014-typescript-as-a-linter.problem/tsconfig.json b/src/010-typescript-in-the-build-process/014-typescript-as-a-linter.problem/tsconfig.json index 75abdef..f54ef55 100644 --- a/src/010-typescript-in-the-build-process/014-typescript-as-a-linter.problem/tsconfig.json +++ b/src/010-typescript-in-the-build-process/014-typescript-as-a-linter.problem/tsconfig.json @@ -1,23 +1,27 @@ { "compilerOptions": { - "target": "ES2020", + "target": "ES2022", "useDefineForClassFields": true, "module": "ESNext", - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": [ + "ES2020", + "DOM", + "DOM.Iterable" + ], "skipLibCheck": true, - /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - /* Linting */ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src"] -} + "include": [ + "src" + ] +} \ No newline at end of file diff --git a/src/010-typescript-in-the-build-process/014-typescript-as-a-linter.solution/tsconfig.json b/src/010-typescript-in-the-build-process/014-typescript-as-a-linter.solution/tsconfig.json index 75abdef..f54ef55 100644 --- a/src/010-typescript-in-the-build-process/014-typescript-as-a-linter.solution/tsconfig.json +++ b/src/010-typescript-in-the-build-process/014-typescript-as-a-linter.solution/tsconfig.json @@ -1,23 +1,27 @@ { "compilerOptions": { - "target": "ES2020", + "target": "ES2022", "useDefineForClassFields": true, "module": "ESNext", - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": [ + "ES2020", + "DOM", + "DOM.Iterable" + ], "skipLibCheck": true, - /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - /* Linting */ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src"] -} + "include": [ + "src" + ] +} \ No newline at end of file diff --git a/src/010-typescript-in-the-build-process/015-typescript-on-ci.explainer/tsconfig.json b/src/010-typescript-in-the-build-process/015-typescript-on-ci.explainer/tsconfig.json index 75abdef..f54ef55 100644 --- a/src/010-typescript-in-the-build-process/015-typescript-on-ci.explainer/tsconfig.json +++ b/src/010-typescript-in-the-build-process/015-typescript-on-ci.explainer/tsconfig.json @@ -1,23 +1,27 @@ { "compilerOptions": { - "target": "ES2020", + "target": "ES2022", "useDefineForClassFields": true, "module": "ESNext", - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": [ + "ES2020", + "DOM", + "DOM.Iterable" + ], "skipLibCheck": true, - /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - /* Linting */ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src"] -} + "include": [ + "src" + ] +} \ No newline at end of file diff --git a/src/010-typescript-in-the-build-process/016-blocking-your-dev-server-with-typescript.problem/tsconfig.json b/src/010-typescript-in-the-build-process/016-blocking-your-dev-server-with-typescript.problem/tsconfig.json index 75abdef..f54ef55 100644 --- a/src/010-typescript-in-the-build-process/016-blocking-your-dev-server-with-typescript.problem/tsconfig.json +++ b/src/010-typescript-in-the-build-process/016-blocking-your-dev-server-with-typescript.problem/tsconfig.json @@ -1,23 +1,27 @@ { "compilerOptions": { - "target": "ES2020", + "target": "ES2022", "useDefineForClassFields": true, "module": "ESNext", - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": [ + "ES2020", + "DOM", + "DOM.Iterable" + ], "skipLibCheck": true, - /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - /* Linting */ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src"] -} + "include": [ + "src" + ] +} \ No newline at end of file diff --git a/src/010-typescript-in-the-build-process/016-blocking-your-dev-server-with-typescript.solution.1/tsconfig.json b/src/010-typescript-in-the-build-process/016-blocking-your-dev-server-with-typescript.solution.1/tsconfig.json index 75abdef..f54ef55 100644 --- a/src/010-typescript-in-the-build-process/016-blocking-your-dev-server-with-typescript.solution.1/tsconfig.json +++ b/src/010-typescript-in-the-build-process/016-blocking-your-dev-server-with-typescript.solution.1/tsconfig.json @@ -1,23 +1,27 @@ { "compilerOptions": { - "target": "ES2020", + "target": "ES2022", "useDefineForClassFields": true, "module": "ESNext", - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": [ + "ES2020", + "DOM", + "DOM.Iterable" + ], "skipLibCheck": true, - /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - /* Linting */ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src"] -} + "include": [ + "src" + ] +} \ No newline at end of file diff --git a/src/010-typescript-in-the-build-process/016-blocking-your-dev-server-with-typescript.solution.2/tsconfig.json b/src/010-typescript-in-the-build-process/016-blocking-your-dev-server-with-typescript.solution.2/tsconfig.json index 75abdef..f54ef55 100644 --- a/src/010-typescript-in-the-build-process/016-blocking-your-dev-server-with-typescript.solution.2/tsconfig.json +++ b/src/010-typescript-in-the-build-process/016-blocking-your-dev-server-with-typescript.solution.2/tsconfig.json @@ -1,23 +1,27 @@ { "compilerOptions": { - "target": "ES2020", + "target": "ES2022", "useDefineForClassFields": true, "module": "ESNext", - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": [ + "ES2020", + "DOM", + "DOM.Iterable" + ], "skipLibCheck": true, - /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - /* Linting */ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src"] -} + "include": [ + "src" + ] +} \ No newline at end of file diff --git a/src/010-typescript-in-the-build-process/018-using-tsx-to-create-quick-scripts.problem/tsconfig.json b/src/010-typescript-in-the-build-process/018-using-tsx-to-create-quick-scripts.problem/tsconfig.json index 75abdef..f54ef55 100644 --- a/src/010-typescript-in-the-build-process/018-using-tsx-to-create-quick-scripts.problem/tsconfig.json +++ b/src/010-typescript-in-the-build-process/018-using-tsx-to-create-quick-scripts.problem/tsconfig.json @@ -1,23 +1,27 @@ { "compilerOptions": { - "target": "ES2020", + "target": "ES2022", "useDefineForClassFields": true, "module": "ESNext", - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": [ + "ES2020", + "DOM", + "DOM.Iterable" + ], "skipLibCheck": true, - /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - /* Linting */ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src"] -} + "include": [ + "src" + ] +} \ No newline at end of file diff --git a/src/010-typescript-in-the-build-process/018-using-tsx-to-create-quick-scripts.solution/tsconfig.json b/src/010-typescript-in-the-build-process/018-using-tsx-to-create-quick-scripts.solution/tsconfig.json index 75abdef..f54ef55 100644 --- a/src/010-typescript-in-the-build-process/018-using-tsx-to-create-quick-scripts.solution/tsconfig.json +++ b/src/010-typescript-in-the-build-process/018-using-tsx-to-create-quick-scripts.solution/tsconfig.json @@ -1,23 +1,27 @@ { "compilerOptions": { - "target": "ES2020", + "target": "ES2022", "useDefineForClassFields": true, "module": "ESNext", - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": [ + "ES2020", + "DOM", + "DOM.Iterable" + ], "skipLibCheck": true, - /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - /* Linting */ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true }, - "include": ["src"] -} + "include": [ + "src" + ] +} \ No newline at end of file diff --git a/src/032-typescript-only-features/119-const-enums.explainer/tsconfig.json b/src/032-typescript-only-features/119-const-enums.explainer/tsconfig.json index 7ac1326..585f63a 100644 --- a/src/032-typescript-only-features/119-const-enums.explainer/tsconfig.json +++ b/src/032-typescript-only-features/119-const-enums.explainer/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "outDir": "dist", "module": "ESNext", "moduleResolution": "Bundler", diff --git a/src/032-typescript-only-features/123-prefer-es-features-to-ts-features.explainer/tsconfig.json b/src/032-typescript-only-features/123-prefer-es-features-to-ts-features.explainer/tsconfig.json index 7ac1326..585f63a 100644 --- a/src/032-typescript-only-features/123-prefer-es-features-to-ts-features.explainer/tsconfig.json +++ b/src/032-typescript-only-features/123-prefer-es-features-to-ts-features.explainer/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "outDir": "dist", "module": "ESNext", "moduleResolution": "Bundler", diff --git a/src/060-modules-and-declaration-files/158-module-or-script.explainer/tsconfig.json b/src/060-modules-and-declaration-files/158-module-or-script.explainer/tsconfig.json index b636822..e487b5b 100644 --- a/src/060-modules-and-declaration-files/158-module-or-script.explainer/tsconfig.json +++ b/src/060-modules-and-declaration-files/158-module-or-script.explainer/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/060-modules-and-declaration-files/159-module-detection-force.problem/tsconfig.json b/src/060-modules-and-declaration-files/159-module-detection-force.problem/tsconfig.json index b636822..e487b5b 100644 --- a/src/060-modules-and-declaration-files/159-module-detection-force.problem/tsconfig.json +++ b/src/060-modules-and-declaration-files/159-module-detection-force.problem/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/060-modules-and-declaration-files/159-module-detection-force.solution/tsconfig.json b/src/060-modules-and-declaration-files/159-module-detection-force.solution/tsconfig.json index f4651e1..01f1fec 100644 --- a/src/060-modules-and-declaration-files/159-module-detection-force.solution/tsconfig.json +++ b/src/060-modules-and-declaration-files/159-module-detection-force.solution/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/060-modules-and-declaration-files/160-declaration-files.explainer/tsconfig.json b/src/060-modules-and-declaration-files/160-declaration-files.explainer/tsconfig.json index 23eab59..eabb4b7 100644 --- a/src/060-modules-and-declaration-files/160-declaration-files.explainer/tsconfig.json +++ b/src/060-modules-and-declaration-files/160-declaration-files.explainer/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/060-modules-and-declaration-files/161-declaration-files-can-be-modules-or-scripts.explainer/tsconfig.json b/src/060-modules-and-declaration-files/161-declaration-files-can-be-modules-or-scripts.explainer/tsconfig.json index 23eab59..eabb4b7 100644 --- a/src/060-modules-and-declaration-files/161-declaration-files-can-be-modules-or-scripts.explainer/tsconfig.json +++ b/src/060-modules-and-declaration-files/161-declaration-files-can-be-modules-or-scripts.explainer/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/060-modules-and-declaration-files/162-skip-lib-check-true.problem/tsconfig.json b/src/060-modules-and-declaration-files/162-skip-lib-check-true.problem/tsconfig.json index 7ae38d0..4543ed4 100644 --- a/src/060-modules-and-declaration-files/162-skip-lib-check-true.problem/tsconfig.json +++ b/src/060-modules-and-declaration-files/162-skip-lib-check-true.problem/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/060-modules-and-declaration-files/162-skip-lib-check-true.solution/tsconfig.json b/src/060-modules-and-declaration-files/162-skip-lib-check-true.solution/tsconfig.json index e10e680..a600578 100644 --- a/src/060-modules-and-declaration-files/162-skip-lib-check-true.solution/tsconfig.json +++ b/src/060-modules-and-declaration-files/162-skip-lib-check-true.solution/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/060-modules-and-declaration-files/163-declaration-files-can-be-used-to-type-js-files.problem/tsconfig.json b/src/060-modules-and-declaration-files/163-declaration-files-can-be-used-to-type-js-files.problem/tsconfig.json index 7ae38d0..4543ed4 100644 --- a/src/060-modules-and-declaration-files/163-declaration-files-can-be-used-to-type-js-files.problem/tsconfig.json +++ b/src/060-modules-and-declaration-files/163-declaration-files-can-be-used-to-type-js-files.problem/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/060-modules-and-declaration-files/163-declaration-files-can-be-used-to-type-js-files.solution/tsconfig.json b/src/060-modules-and-declaration-files/163-declaration-files-can-be-used-to-type-js-files.solution/tsconfig.json index 7ae38d0..4543ed4 100644 --- a/src/060-modules-and-declaration-files/163-declaration-files-can-be-used-to-type-js-files.solution/tsconfig.json +++ b/src/060-modules-and-declaration-files/163-declaration-files-can-be-used-to-type-js-files.solution/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/062-the-global-namespace/165-ambient-context-and-declare-const.problem/tsconfig.json b/src/062-the-global-namespace/165-ambient-context-and-declare-const.problem/tsconfig.json index 7ae38d0..4543ed4 100644 --- a/src/062-the-global-namespace/165-ambient-context-and-declare-const.problem/tsconfig.json +++ b/src/062-the-global-namespace/165-ambient-context-and-declare-const.problem/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/062-the-global-namespace/165-ambient-context-and-declare-const.solution/tsconfig.json b/src/062-the-global-namespace/165-ambient-context-and-declare-const.solution/tsconfig.json index 7ae38d0..4543ed4 100644 --- a/src/062-the-global-namespace/165-ambient-context-and-declare-const.solution/tsconfig.json +++ b/src/062-the-global-namespace/165-ambient-context-and-declare-const.solution/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/062-the-global-namespace/166-declare-global.problem/tsconfig.json b/src/062-the-global-namespace/166-declare-global.problem/tsconfig.json index 7ae38d0..4543ed4 100644 --- a/src/062-the-global-namespace/166-declare-global.problem/tsconfig.json +++ b/src/062-the-global-namespace/166-declare-global.problem/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/062-the-global-namespace/166-declare-global.solution.1/tsconfig.json b/src/062-the-global-namespace/166-declare-global.solution.1/tsconfig.json index 7ae38d0..4543ed4 100644 --- a/src/062-the-global-namespace/166-declare-global.solution.1/tsconfig.json +++ b/src/062-the-global-namespace/166-declare-global.solution.1/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/062-the-global-namespace/166-declare-global.solution.2/tsconfig.json b/src/062-the-global-namespace/166-declare-global.solution.2/tsconfig.json index 7ae38d0..4543ed4 100644 --- a/src/062-the-global-namespace/166-declare-global.solution.2/tsconfig.json +++ b/src/062-the-global-namespace/166-declare-global.solution.2/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/062-the-global-namespace/167-modifying-window.problem/tsconfig.json b/src/062-the-global-namespace/167-modifying-window.problem/tsconfig.json index 7ae38d0..4543ed4 100644 --- a/src/062-the-global-namespace/167-modifying-window.problem/tsconfig.json +++ b/src/062-the-global-namespace/167-modifying-window.problem/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/062-the-global-namespace/167-modifying-window.solution/tsconfig.json b/src/062-the-global-namespace/167-modifying-window.solution/tsconfig.json index 7ae38d0..4543ed4 100644 --- a/src/062-the-global-namespace/167-modifying-window.solution/tsconfig.json +++ b/src/062-the-global-namespace/167-modifying-window.solution/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/062-the-global-namespace/168-modifying-process-env.problem/tsconfig.json b/src/062-the-global-namespace/168-modifying-process-env.problem/tsconfig.json index 7ae38d0..4543ed4 100644 --- a/src/062-the-global-namespace/168-modifying-process-env.problem/tsconfig.json +++ b/src/062-the-global-namespace/168-modifying-process-env.problem/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/062-the-global-namespace/168-modifying-process-env.solution/tsconfig.json b/src/062-the-global-namespace/168-modifying-process-env.solution/tsconfig.json index 7ae38d0..4543ed4 100644 --- a/src/062-the-global-namespace/168-modifying-process-env.solution/tsconfig.json +++ b/src/062-the-global-namespace/168-modifying-process-env.solution/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/062-the-global-namespace/169-declare-module.problem/tsconfig.json b/src/062-the-global-namespace/169-declare-module.problem/tsconfig.json index 23eab59..eabb4b7 100644 --- a/src/062-the-global-namespace/169-declare-module.problem/tsconfig.json +++ b/src/062-the-global-namespace/169-declare-module.problem/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/062-the-global-namespace/169-declare-module.solution/tsconfig.json b/src/062-the-global-namespace/169-declare-module.solution/tsconfig.json index 23eab59..eabb4b7 100644 --- a/src/062-the-global-namespace/169-declare-module.solution/tsconfig.json +++ b/src/062-the-global-namespace/169-declare-module.solution/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/062-the-global-namespace/170-wildcard-in-declare-module.problem/tsconfig.json b/src/062-the-global-namespace/170-wildcard-in-declare-module.problem/tsconfig.json index 23eab59..eabb4b7 100644 --- a/src/062-the-global-namespace/170-wildcard-in-declare-module.problem/tsconfig.json +++ b/src/062-the-global-namespace/170-wildcard-in-declare-module.problem/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/062-the-global-namespace/170-wildcard-in-declare-module.solution/tsconfig.json b/src/062-the-global-namespace/170-wildcard-in-declare-module.solution/tsconfig.json index 23eab59..eabb4b7 100644 --- a/src/062-the-global-namespace/170-wildcard-in-declare-module.solution/tsconfig.json +++ b/src/062-the-global-namespace/170-wildcard-in-declare-module.solution/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/080-configuring-typescript/191-no-emit.problem copy/tsconfig.json b/src/080-configuring-typescript/191-no-emit.problem copy/tsconfig.json index c04f157..14aaa86 100644 --- a/src/080-configuring-typescript/191-no-emit.problem copy/tsconfig.json +++ b/src/080-configuring-typescript/191-no-emit.problem copy/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/080-configuring-typescript/191-no-emit.problem/tsconfig.json b/src/080-configuring-typescript/191-no-emit.problem/tsconfig.json index 7740af4..26ca78a 100644 --- a/src/080-configuring-typescript/191-no-emit.problem/tsconfig.json +++ b/src/080-configuring-typescript/191-no-emit.problem/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "NodeNext", "moduleResolution": "NodeNext", "esModuleInterop": true, diff --git a/src/080-configuring-typescript/191-no-emit.solution copy/tsconfig.json b/src/080-configuring-typescript/191-no-emit.solution copy/tsconfig.json index 22896aa..b502871 100644 --- a/src/080-configuring-typescript/191-no-emit.solution copy/tsconfig.json +++ b/src/080-configuring-typescript/191-no-emit.solution copy/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/080-configuring-typescript/191-no-emit.solution/tsconfig.json b/src/080-configuring-typescript/191-no-emit.solution/tsconfig.json index 8a009d8..0e59fb7 100644 --- a/src/080-configuring-typescript/191-no-emit.solution/tsconfig.json +++ b/src/080-configuring-typescript/191-no-emit.solution/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "NodeNext", "moduleResolution": "NodeNext", "esModuleInterop": true, diff --git a/src/080-configuring-typescript/192-module-resolution-bundler-or-nodenext.explainer/tsconfig.json b/src/080-configuring-typescript/192-module-resolution-bundler-or-nodenext.explainer/tsconfig.json index 10576e2..834b616 100644 --- a/src/080-configuring-typescript/192-module-resolution-bundler-or-nodenext.explainer/tsconfig.json +++ b/src/080-configuring-typescript/192-module-resolution-bundler-or-nodenext.explainer/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", /** * For when you're targeting Node: */ diff --git a/src/080-configuring-typescript/193-isolated-modules.explainer/tsconfig.json b/src/080-configuring-typescript/193-isolated-modules.explainer/tsconfig.json index 71f133d..0ead36c 100644 --- a/src/080-configuring-typescript/193-isolated-modules.explainer/tsconfig.json +++ b/src/080-configuring-typescript/193-isolated-modules.explainer/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/080-configuring-typescript/194-cjs-vs-esm.explainer/tsconfig.json b/src/080-configuring-typescript/194-cjs-vs-esm.explainer/tsconfig.json index 1cb41e0..13669c0 100644 --- a/src/080-configuring-typescript/194-cjs-vs-esm.explainer/tsconfig.json +++ b/src/080-configuring-typescript/194-cjs-vs-esm.explainer/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "NodeNext", "moduleResolution": "NodeNext", "esModuleInterop": true, diff --git a/src/080-configuring-typescript/194.5-lib-dom.problem/package.json b/src/080-configuring-typescript/195-lib-dom.problem/package.json similarity index 100% rename from src/080-configuring-typescript/194.5-lib-dom.problem/package.json rename to src/080-configuring-typescript/195-lib-dom.problem/package.json diff --git a/src/080-configuring-typescript/194.5-lib-dom.problem/src/index.ts b/src/080-configuring-typescript/195-lib-dom.problem/src/index.ts similarity index 100% rename from src/080-configuring-typescript/194.5-lib-dom.problem/src/index.ts rename to src/080-configuring-typescript/195-lib-dom.problem/src/index.ts diff --git a/src/080-configuring-typescript/194.5-lib-dom.problem/tsconfig.json b/src/080-configuring-typescript/195-lib-dom.problem/tsconfig.json similarity index 91% rename from src/080-configuring-typescript/194.5-lib-dom.problem/tsconfig.json rename to src/080-configuring-typescript/195-lib-dom.problem/tsconfig.json index dee3491..a049c98 100644 --- a/src/080-configuring-typescript/194.5-lib-dom.problem/tsconfig.json +++ b/src/080-configuring-typescript/195-lib-dom.problem/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/080-configuring-typescript/194.5-lib-dom.solution/package.json b/src/080-configuring-typescript/195-lib-dom.solution/package.json similarity index 100% rename from src/080-configuring-typescript/194.5-lib-dom.solution/package.json rename to src/080-configuring-typescript/195-lib-dom.solution/package.json diff --git a/src/080-configuring-typescript/194.5-lib-dom.solution/src/index.ts b/src/080-configuring-typescript/195-lib-dom.solution/src/index.ts similarity index 100% rename from src/080-configuring-typescript/194.5-lib-dom.solution/src/index.ts rename to src/080-configuring-typescript/195-lib-dom.solution/src/index.ts diff --git a/src/080-configuring-typescript/194.5-lib-dom.solution/tsconfig.json b/src/080-configuring-typescript/195-lib-dom.solution/tsconfig.json similarity index 91% rename from src/080-configuring-typescript/194.5-lib-dom.solution/tsconfig.json rename to src/080-configuring-typescript/195-lib-dom.solution/tsconfig.json index d54701c..83ec508 100644 --- a/src/080-configuring-typescript/194.5-lib-dom.solution/tsconfig.json +++ b/src/080-configuring-typescript/195-lib-dom.solution/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/080-configuring-typescript/194.6-lib-dom-iterable.problem/package.json b/src/080-configuring-typescript/196-lib-dom-iterable.problem/package.json similarity index 100% rename from src/080-configuring-typescript/194.6-lib-dom-iterable.problem/package.json rename to src/080-configuring-typescript/196-lib-dom-iterable.problem/package.json diff --git a/src/080-configuring-typescript/194.6-lib-dom-iterable.problem/src/index.ts b/src/080-configuring-typescript/196-lib-dom-iterable.problem/src/index.ts similarity index 100% rename from src/080-configuring-typescript/194.6-lib-dom-iterable.problem/src/index.ts rename to src/080-configuring-typescript/196-lib-dom-iterable.problem/src/index.ts diff --git a/src/080-configuring-typescript/194.6-lib-dom-iterable.problem/tsconfig.json b/src/080-configuring-typescript/196-lib-dom-iterable.problem/tsconfig.json similarity index 91% rename from src/080-configuring-typescript/194.6-lib-dom-iterable.problem/tsconfig.json rename to src/080-configuring-typescript/196-lib-dom-iterable.problem/tsconfig.json index d54701c..83ec508 100644 --- a/src/080-configuring-typescript/194.6-lib-dom-iterable.problem/tsconfig.json +++ b/src/080-configuring-typescript/196-lib-dom-iterable.problem/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/080-configuring-typescript/194.6-lib-dom-iterable.solution/package.json b/src/080-configuring-typescript/196-lib-dom-iterable.solution/package.json similarity index 100% rename from src/080-configuring-typescript/194.6-lib-dom-iterable.solution/package.json rename to src/080-configuring-typescript/196-lib-dom-iterable.solution/package.json diff --git a/src/080-configuring-typescript/194.6-lib-dom-iterable.solution/src/index.ts b/src/080-configuring-typescript/196-lib-dom-iterable.solution/src/index.ts similarity index 100% rename from src/080-configuring-typescript/194.6-lib-dom-iterable.solution/src/index.ts rename to src/080-configuring-typescript/196-lib-dom-iterable.solution/src/index.ts diff --git a/src/080-configuring-typescript/194.6-lib-dom-iterable.solution/tsconfig.json b/src/080-configuring-typescript/196-lib-dom-iterable.solution/tsconfig.json similarity index 92% rename from src/080-configuring-typescript/194.6-lib-dom-iterable.solution/tsconfig.json rename to src/080-configuring-typescript/196-lib-dom-iterable.solution/tsconfig.json index 993b03a..8d23177 100644 --- a/src/080-configuring-typescript/194.6-lib-dom-iterable.solution/tsconfig.json +++ b/src/080-configuring-typescript/196-lib-dom-iterable.solution/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "esModuleInterop": true, diff --git a/src/080-configuring-typescript/195-multiple-tsconfig-json-files.problem.ts b/src/080-configuring-typescript/197-multiple-tsconfig-json-files.problem.ts similarity index 100% rename from src/080-configuring-typescript/195-multiple-tsconfig-json-files.problem.ts rename to src/080-configuring-typescript/197-multiple-tsconfig-json-files.problem.ts diff --git a/src/080-configuring-typescript/195-multiple-tsconfig-json-files.solution.ts b/src/080-configuring-typescript/197-multiple-tsconfig-json-files.solution.ts similarity index 100% rename from src/080-configuring-typescript/195-multiple-tsconfig-json-files.solution.ts rename to src/080-configuring-typescript/197-multiple-tsconfig-json-files.solution.ts diff --git a/src/080-configuring-typescript/196-globals-are-tied-to-a-single-tsconfig.problem.ts b/src/080-configuring-typescript/198-globals-are-tied-to-a-single-tsconfig.problem.ts similarity index 100% rename from src/080-configuring-typescript/196-globals-are-tied-to-a-single-tsconfig.problem.ts rename to src/080-configuring-typescript/198-globals-are-tied-to-a-single-tsconfig.problem.ts diff --git a/src/080-configuring-typescript/196-globals-are-tied-to-a-single-tsconfig.solution.ts b/src/080-configuring-typescript/198-globals-are-tied-to-a-single-tsconfig.solution.ts similarity index 100% rename from src/080-configuring-typescript/196-globals-are-tied-to-a-single-tsconfig.solution.ts rename to src/080-configuring-typescript/198-globals-are-tied-to-a-single-tsconfig.solution.ts diff --git a/src/080-configuring-typescript/197-extending-from-other-tsconfig-json-files.problem.ts b/src/080-configuring-typescript/199-extending-from-other-tsconfig-json-files.problem.ts similarity index 100% rename from src/080-configuring-typescript/197-extending-from-other-tsconfig-json-files.problem.ts rename to src/080-configuring-typescript/199-extending-from-other-tsconfig-json-files.problem.ts diff --git a/src/080-configuring-typescript/197-extending-from-other-tsconfig-json-files.solution.ts b/src/080-configuring-typescript/199-extending-from-other-tsconfig-json-files.solution.ts similarity index 100% rename from src/080-configuring-typescript/197-extending-from-other-tsconfig-json-files.solution.ts rename to src/080-configuring-typescript/199-extending-from-other-tsconfig-json-files.solution.ts diff --git a/src/080-configuring-typescript/198-project-references.problem.ts b/src/080-configuring-typescript/200-project-references.problem.ts similarity index 100% rename from src/080-configuring-typescript/198-project-references.problem.ts rename to src/080-configuring-typescript/200-project-references.problem.ts diff --git a/src/080-configuring-typescript/198-project-references.solution.ts b/src/080-configuring-typescript/200-project-references.solution.ts similarity index 100% rename from src/080-configuring-typescript/198-project-references.solution.ts rename to src/080-configuring-typescript/200-project-references.solution.ts diff --git a/src/080-configuring-typescript/199-jsx.problem.ts b/src/080-configuring-typescript/201-jsx.problem.ts similarity index 100% rename from src/080-configuring-typescript/199-jsx.problem.ts rename to src/080-configuring-typescript/201-jsx.problem.ts diff --git a/src/080-configuring-typescript/199-jsx.solution.ts b/src/080-configuring-typescript/201-jsx.solution.ts similarity index 100% rename from src/080-configuring-typescript/199-jsx.solution.ts rename to src/080-configuring-typescript/201-jsx.solution.ts diff --git a/tsconfig.json b/tsconfig.json index b15ff60..ae0d4a4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2020", + "target": "ES2022", "module": "ESNext", "moduleResolution": "Bundler", "noEmit": true,