diff options
author | Rich Trott <rtrott@gmail.com> | 2021-10-10 05:28:09 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2021-10-12 04:37:45 +0300 |
commit | 43c780e7410286068365adffa47a266961675347 (patch) | |
tree | e887a07f397d81c168b644eb41ee270f211fcbb0 | |
parent | b39db95737ce5f7e959e35af2b2dc9352d0744de (diff) |
tools: remove @babel/plugin-syntax-import-assertions
As of ESLint 8.0.0 at least, this plugin is unnecessary.
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>
-rw-r--r-- | .eslintrc.js | 2 | ||||
-rwxr-xr-x | tools/update-babel-eslint.sh | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 1e35e787057..1ebf058bc49 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -17,7 +17,6 @@ const hacks = [ 'eslint-plugin-node-core', 'eslint-plugin-markdown', '@babel/eslint-parser', - '@babel/plugin-syntax-import-assertions', ]; Module._findPath = (request, paths, isMain) => { const r = ModuleFindPath(request, paths, isMain); @@ -39,7 +38,6 @@ module.exports = { parserOptions: { babelOptions: { plugins: [ - Module._findPath('@babel/plugin-syntax-import-assertions'), ], }, requireConfigFile: false, diff --git a/tools/update-babel-eslint.sh b/tools/update-babel-eslint.sh index f2cadbd2297..eb312aad80d 100755 --- a/tools/update-babel-eslint.sh +++ b/tools/update-babel-eslint.sh @@ -18,7 +18,7 @@ ROOT="$PWD/../.." NPM="$ROOT/deps/npm/bin/npm-cli.js" "$NODE" "$NPM" init --yes -"$NODE" "$NPM" install --global-style --no-bin-links --production --no-package-lock @babel/core @babel/eslint-parser@latest @babel/plugin-syntax-import-assertions@latest +"$NODE" "$NPM" install --global-style --no-bin-links --production --no-package-lock @babel/core @babel/eslint-parser@latest # Use dmn to remove some unneeded files. "$NODE" "$NPM" exec -- dmn@2.2.2 -f clean |