From 161677aca8bae3853e0d000afb65d6655b21fa7b Mon Sep 17 00:00:00 2001 From: Alexander Neben Date: Fri, 25 Nov 2022 05:25:24 +0000 Subject: SERVER-71598 Upgraded eslint ecma version in server repo --- .eslintrc.yml | 4 ++-- buildscripts/eslint.py | 2 +- buildscripts/eslint/README.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 3bdb7d66a05..ff14b3bb5e5 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -1,9 +1,9 @@ env: - es6: true + es2019: true mongo: true parserOptions: - ecmaVersion: 6 + ecmaVersion: 2019 sourceType: "module" rules: diff --git a/buildscripts/eslint.py b/buildscripts/eslint.py index 8ff93a00796..58019284d9c 100755 --- a/buildscripts/eslint.py +++ b/buildscripts/eslint.py @@ -45,7 +45,7 @@ from buildscripts.linter import git, parallel # Expected version of ESLint. # If you want to update the version, please refer to `buildscripts/eslint/README.md` -ESLINT_VERSION = "7.22.0" +ESLINT_VERSION = "8.28.0" # Name of ESLint as a binary. ESLINT_PROGNAME = "eslint" diff --git a/buildscripts/eslint/README.md b/buildscripts/eslint/README.md index f8f6b692dfa..ea0d7fc3ae7 100644 --- a/buildscripts/eslint/README.md +++ b/buildscripts/eslint/README.md @@ -77,7 +77,7 @@ ESLINT_VERSION = "${version}" Unfortunately pkg doesn't work well with `require(variable)` statements and force include files using `assets` or `scripts` options might not help. -For the ESLint version 7.22.0 the following change was applied to the +For the ESLint version 7.22.0 and 8.28.0 the following change was applied to the source code to make everything work: ``` diff --git a/lib/cli-engine/cli-engine.js b/lib/cli-engine/cli-engine.js -- cgit v1.2.1