Skip to content

Commit 3611073

Browse files
Trotttargos
authored andcommitted
tools: remove @babel/plugin-syntax-import-assertions
As of ESLint 8.0.0 at least, this plugin is unnecessary. PR-URL: #40394 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent b72d693 commit 3611073

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
@@ -17,7 +17,6 @@ const hacks = [
1717
'eslint-plugin-node-core',
1818
'eslint-plugin-markdown',
1919
'@babel/eslint-parser',
20-
'@babel/plugin-syntax-import-assertions',
2120
];
2221
Module._findPath = (request, paths, isMain) => {
2322
const r = ModuleFindPath(request, paths, isMain);
@@ -39,7 +38,6 @@ module.exports = {
3938
parserOptions: {
4039
babelOptions: {
4140
plugins: [
42-
Module._findPath('@babel/plugin-syntax-import-assertions'),
4341
],
4442
},
4543
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-import-assertions@latest
21+
"$NODE" "$NPM" install --global-style --no-bin-links --production --no-package-lock @babel/core @babel/eslint-parser@latest
2222

2323
# Use dmn to remove some unneeded files.
2424
"$NODE" "$NPM" exec -- [email protected] -f clean

0 commit comments

Comments
 (0)