Skip to content

Commit 9ae59c8

Browse files
aduh95danielleadams
authored andcommitted
tools: upgrade to @babel/eslint-parser 7.12.1
PR-URL: #36321 Fixes: https://github.com/ensure Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 47345a1 commit 9ae59c8

File tree

1,589 files changed

+44091
-12697
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,589 files changed

+44091
-12697
lines changed

.eslintrc.js

+10-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ const ModuleFindPath = Module._findPath;
1616
const hacks = [
1717
'eslint-plugin-node-core',
1818
'eslint-plugin-markdown',
19-
'babel-eslint',
19+
'@babel/eslint-parser',
20+
'@babel/plugin-syntax-class-properties',
2021
];
2122
Module._findPath = (request, paths, isMain) => {
2223
const r = ModuleFindPath(request, paths, isMain);
@@ -37,8 +38,14 @@ Module._findPath = (request, paths, isMain) => {
3738
module.exports = {
3839
root: true,
3940
plugins: ['markdown', 'node-core'],
40-
parser: 'babel-eslint',
41-
parserOptions: { sourceType: 'script' },
41+
parser: '@babel/eslint-parser',
42+
parserOptions: {
43+
babelOptions: {
44+
plugins: [Module._findPath('@babel/plugin-syntax-class-properties')],
45+
},
46+
requireConfigFile: false,
47+
sourceType: 'script',
48+
},
4249
overrides: [
4350
{
4451
files: [

test/parallel/test-assert.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,7 @@ assert.throws(
12821282
);
12831283

12841284
assert.throws(
1285-
() => a.notStrictEqual(5n),
1285+
() => a.notStrictEqual(5n), // eslint-disable-line no-restricted-syntax
12861286
{ code: 'ERR_MISSING_ARGS' }
12871287
);
12881288

tools/node_modules/@babel/core/README.md

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/node_modules/@babel/core/lib/config/caching.js

+327
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)