diff options
author | Rich Trott <rtrott@gmail.com> | 2021-10-10 05:08:38 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2021-10-12 04:37:38 +0300 |
commit | a6fd39f44f446b832cfcc45a518719196e3b2059 (patch) | |
tree | 4770941dc537c2f8e8b594d9da181637e41e6a63 /.eslintrc.js | |
parent | 8ca76eba73cf75a72cc008b09c2ae537fe6e6d0f (diff) |
tools: remove @babel/plugin-syntax-top-level-await
ESLint 8.0.0 introduced support for top level await, so
@babel/plugin-syntax-top-level-await is no longer necessary.
PR-URL: https://github.com/nodejs/node/pull/40394
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 57345ff50dc..5dca5bba9b2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -19,7 +19,6 @@ const hacks = [ '@babel/eslint-parser', '@babel/plugin-syntax-class-properties', '@babel/plugin-syntax-import-assertions', - '@babel/plugin-syntax-top-level-await', ]; Module._findPath = (request, paths, isMain) => { const r = ModuleFindPath(request, paths, isMain); @@ -43,7 +42,6 @@ module.exports = { plugins: [ Module._findPath('@babel/plugin-syntax-class-properties'), Module._findPath('@babel/plugin-syntax-import-assertions'), - Module._findPath('@babel/plugin-syntax-top-level-await'), ], }, requireConfigFile: false, |