Skip to content

Commit b72d693

Browse files
Trotttargos
authored andcommitted
tools: remove @bable/plugin-syntax-class-properties
ESLint 8.0.0 makes the plugin 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 d6a99b7 commit b72d693

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-class-properties',
2120
'@babel/plugin-syntax-import-assertions',
2221
];
2322
Module._findPath = (request, paths, isMain) => {
@@ -40,7 +39,6 @@ module.exports = {
4039
parserOptions: {
4140
babelOptions: {
4241
plugins: [
43-
Module._findPath('@babel/plugin-syntax-class-properties'),
4442
Module._findPath('@babel/plugin-syntax-import-assertions'),
4543
],
4644
},

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
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
2222

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

0 commit comments

Comments
 (0)