Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3611073

Browse filesBrowse 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 <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent b72d693 commit 3611073
Copy full SHA for 3611073

File tree

Expand file treeCollapse file tree

2 files changed

+1
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+1
-3
lines changed
Open diff view settings
Collapse file

‎.eslintrc.js‎

Copy file name to clipboardExpand all lines: .eslintrc.js
-2Lines changed: 0 additions & 2 deletions
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,
Collapse file

‎tools/update-babel-eslint.sh‎

Copy file name to clipboardExpand all lines: tools/update-babel-eslint.sh
+1-1Lines changed: 1 addition & 1 deletion
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 -- dmn@2.2.2 -f clean

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.