From 957d39bcee63c661f7dcbda47bfc4f9c742610b1 Mon Sep 17 00:00:00 2001 From: wagener Date: Wed, 22 May 2024 09:12:21 +0200 Subject: [PATCH 1/2] allow nullish coalescing operator in js --- .eslintrc.js | 3 +++ tests/jshint.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 72ff0975797..dcc00fe76c7 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -10,6 +10,9 @@ module.exports = { "es6": true, "jquery": true }, + parserOptions: { + "ecmaVersion": "latest" + }, rules: { // errors "block-scoped-var": "error", diff --git a/tests/jshint.json b/tests/jshint.json index 30c56c2bb46..717c4335325 100644 --- a/tests/jshint.json +++ b/tests/jshint.json @@ -1,5 +1,5 @@ { "latedef": true, "laxbreak": true, - "esversion": 6 + "esversion": 11 } From cf29afb9eb3e5cd73213d5a8d10927ba8a83b0db Mon Sep 17 00:00:00 2001 From: wagener Date: Wed, 22 May 2024 09:58:33 +0200 Subject: [PATCH 2/2] using fixed ecmaVersion --- .eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index dcc00fe76c7..8b784badbd0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -11,7 +11,7 @@ module.exports = { "jquery": true }, parserOptions: { - "ecmaVersion": "latest" + "ecmaVersion": "2020" }, rules: { // errors