Skip to content

Commit a6fd39f

Browse files
committedOct 12, 2021
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: #40394 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 8ca76eb commit a6fd39f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed
 

‎.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const hacks = [
1919
'@babel/eslint-parser',
2020
'@babel/plugin-syntax-class-properties',
2121
'@babel/plugin-syntax-import-assertions',
22-
'@babel/plugin-syntax-top-level-await',
2322
];
2423
Module._findPath = (request, paths, isMain) => {
2524
const r = ModuleFindPath(request, paths, isMain);
@@ -43,7 +42,6 @@ module.exports = {
4342
plugins: [
4443
Module._findPath('@babel/plugin-syntax-class-properties'),
4544
Module._findPath('@babel/plugin-syntax-import-assertions'),
46-
Module._findPath('@babel/plugin-syntax-top-level-await'),
4745
],
4846
},
4947
requireConfigFile: false,

‎tools/update-babel-eslint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ROOT="$PWD/../.."
1818
NPM="$ROOT/deps/npm/bin/npm-cli.js"
1919

2020
"$NODE" "$NPM" init --yes
21-
"$NODE" "$NPM" install --global-style --no-bin-links --production --no-package-lock @babel/core @babel/eslint-parser@latest @babel/plugin-syntax-class-properties@latest @babel/plugin-syntax-import-assertions@latest @babel/plugin-syntax-top-level-await@latest
21+
"$NODE" "$NPM" install --global-style --no-bin-links --production --no-package-lock @babel/core @babel/eslint-parser@latest @babel/plugin-syntax-class-properties@latest @babel/plugin-syntax-import-assertions@latest
2222

2323
# Use dmn to remove some unneeded files.
2424
"$NODE" "$NPM" exec -- dmn@2.2.2 -f clean

0 commit comments

Comments
 (0)