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/08/21 03:36:38 UTC

[incubator-annotator] 03/03: Raise the TypeScript target to es2018

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 05298c299c38cab2de8a2f44f56e77dbae452499
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Thu Aug 20 20:10:45 2020 -0700

    Raise the TypeScript target to es2018
    
    Node.js v10 has full support for ECMAScript 2018 features, with only the
    exception of not throwing TypeError exceptions when a Proxy object
    returns an Array having duplicated entries from its ownKeys method. This
    target is consistent with that used by the recommended node10 base
    config.
    
    Also set the parser options for the build and configuration scripts.
---
 .eslintrc.js       | 3 +++
 tsconfig.base.json | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.eslintrc.js b/.eslintrc.js
index 2d6dd80..8672372 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -76,6 +76,9 @@ 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 e9f79ca..274039b 100644
--- a/tsconfig.base.json
+++ b/tsconfig.base.json
@@ -14,6 +14,6 @@
     ],
     "moduleResolution": "node",
     "strict": true,
-    "target": "es2017"
+    "target": "es2018"
   }
 }