From 4c37f54e3e5b4ff983fe5f6d22446d6032f9a920 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Mon, 26 Jul 2021 18:13:07 +0800 Subject: [PATCH] Revert "feat: enable es2020 syntax (#3750)" This reverts commit 3d6dd88d48bf7c35e261c31fe5a032fdf5bc73b9. --- packages/.eslintrc.json | 17 ----------------- tsconfig.json | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/packages/.eslintrc.json b/packages/.eslintrc.json index c772c3d7c114..15f8504a4536 100644 --- a/packages/.eslintrc.json +++ b/packages/.eslintrc.json @@ -33,23 +33,6 @@ "component": true, "html": true } - ], - "@typescript-eslint/ban-types": [ - "error", - { - "types": { - "bigint": "BigInt not supported until Safari 15.", - "BigInt": "BigInt not supported until Safari 15." - }, - "extendDefaults": false - } - ], - "no-restricted-syntax": [ - "error", - { - "selector": "Literal[raw=/n$/]", - "message": "BigInt not supported until Safari 15." - } ] } } diff --git a/tsconfig.json b/tsconfig.json index a90a47244315..17aea484fff6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,7 +16,7 @@ "compilerOptions": { /* Basic Options */ "incremental": true /* Enable incremental compilation */, - "target": "ES2020" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */, + "target": "ES2019" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */, "module": "ESNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, "lib": ["DOM", "DOM.Iterable", "ES2020"] /* Specify library files to be included in the compilation. */, "allowJs": true /* Allow javascript files to be compiled. */,