From 8501a05b6389e5e3b4901fcd93299c6078a65e4f Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 9 Oct 2021 19:28:09 -0700 Subject: [PATCH] tools: remove @babel/plugin-syntax-import-assertions As of ESLint 8.0.0 at least, this plugin is unnecessary. --- .eslintrc.js | 2 -- tools/update-babel-eslint.sh | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 1e35e787057e3e..1ebf058bc49122 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 dbaa167fdf4cb0..deaf8748cf252d 100755 --- a/tools/update-babel-eslint.sh +++ b/tools/update-babel-eslint.sh @@ -16,7 +16,7 @@ ROOT="$PWD/../.." NPM="$ROOT/deps/npm" "$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