From 15f8b6625c9faf37a012db4a95563e3713229681 Mon Sep 17 00:00:00 2001 From: Jakub Neander Date: Wed, 22 Mar 2023 10:21:46 +0100 Subject: [PATCH] Migrate to `es2020` for TS (#3386) --- CHANGELOG.md | 1 + tsconfig.json | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00732ebd1..25afd9938 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ All notable, unreleased changes to this project will be documented in this file. - Allow subscription query for sync events - #3099 by @2can - Simplify codegen configuration to generate the graphql schema - #2538 by @abumalick - Add DevMode panel (trigger: CMD+') - #3333 by @zaiste +- Migrate to `es2020` for TypeScript - #3386 by @zaiste ## 3.4 diff --git a/tsconfig.json b/tsconfig.json index 2c633d8f0..cbd850d19 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,10 +7,12 @@ "strictNullChecks": false, "esModuleInterop": true, "jsx": "react", - "lib": ["es2017", "dom", "esnext"], + "lib": ["es2020", "dom", "esnext"], "skipLibCheck": true, "sourceMap": true, - "target": "es5", + "target": "ES2020", + "module": "es2020", + "moduleResolution": "node", "noUnusedLocals": true, "noUnusedParameters": true, "downlevelIteration": true,