diff options
author | Alexander Neben <alexander.neben@mongodb.com> | 2022-11-25 05:25:24 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-11-25 05:55:05 +0000 |
commit | 161677aca8bae3853e0d000afb65d6655b21fa7b (patch) | |
tree | 7dc6500810b41f6d835fea7af8a0d6b63e3420b8 | |
parent | 1b3f18cba0a88c3298fcf644bfe64828c6ce6c82 (diff) | |
download | mongo-161677aca8bae3853e0d000afb65d6655b21fa7b.tar.gz |
SERVER-71598 Upgraded eslint ecma version in server repo
-rw-r--r-- | .eslintrc.yml | 4 | ||||
-rwxr-xr-x | buildscripts/eslint.py | 2 | ||||
-rw-r--r-- | 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 |