You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2020/09/20 03:39:41 UTC

[incubator-annotator] 08/10: Drop ESLint and TypeScript compilation target from es2018 to es2017

This is an automated email from the ASF dual-hosted git repository.

randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git

commit a5b400a6628403190c356f4ffd3b6c362617cde0
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Sat Sep 19 20:31:32 2020 -0700

    Drop ESLint and TypeScript compilation target from es2018 to es2017
    
    Node.js v10 has complete support for es2017, but not quite full support
    for es2018.
---
 .eslintrc.js       | 3 ---
 tsconfig.base.json | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/.eslintrc.js b/.eslintrc.js
index e21fd31..d0a98be 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -91,9 +91,6 @@ module.exports = {
         es2017: true,
         node: true,
       },
-      parserOptions: {
-        ecmaVersion: 2018,
-      },
       plugins: ['node'],
       rules: {
         'no-console': 'off',
diff --git a/tsconfig.base.json b/tsconfig.base.json
index 274039b..e9f79ca 100644
--- a/tsconfig.base.json
+++ b/tsconfig.base.json
@@ -14,6 +14,6 @@
     ],
     "moduleResolution": "node",
     "strict": true,
-    "target": "es2018"
+    "target": "es2017"
   }
 }