You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by va...@apache.org on 2023/02/09 19:34:47 UTC

[tinkerpop] branch 3.6-dev updated: Bumped eslint to ecmaVersion 2021

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

valentyn pushed a commit to branch 3.6-dev
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/3.6-dev by this push:
     new 97dd2948de Bumped eslint to ecmaVersion 2021
     new e3da9c2f37 Merge pull request #1959 from Bit-Quill/cole/eslint-version-bump
97dd2948de is described below

commit 97dd2948dec29b4e97a43ac7129f59365d436f07
Author: Cole Greer <co...@bitquilltech.com>
AuthorDate: Thu Feb 2 14:48:22 2023 -0800

    Bumped eslint to ecmaVersion 2021
    
    Unlocks language features such as `.?` and `??` which have been available since node v14 but
    have been blocked by eslint. According to https://node.green/#ES2021, node v16.13 (which is
    the current version in tinkerpop 3.6.x) fully supports ecma 2021.
---
 gremlin-javascript/src/main/javascript/gremlin-javascript/.eslintrc.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gremlin-javascript/src/main/javascript/gremlin-javascript/.eslintrc.js b/gremlin-javascript/src/main/javascript/gremlin-javascript/.eslintrc.js
index 91f243a380..cf781e2b2b 100644
--- a/gremlin-javascript/src/main/javascript/gremlin-javascript/.eslintrc.js
+++ b/gremlin-javascript/src/main/javascript/gremlin-javascript/.eslintrc.js
@@ -26,7 +26,7 @@ module.exports = {
     node: true,
   },
   parserOptions: {
-    ecmaVersion: 2017,
+    ecmaVersion: 2021,
   },
   ignorePatterns: ['test/**/*.js', 'doc/**/*.js'],
   extends: ['eslint:recommended', 'prettier'],