Skip to content

Commit

Permalink
tools: upgrade to @babel/eslint-parser 7.12.1
Browse files Browse the repository at this point in the history
PR-URL: #36321
Fixes: https://github.com/ensure
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
aduh95 authored and danielleadams committed Dec 7, 2020
1 parent 47345a1 commit 9ae59c8
Show file tree
Hide file tree
Showing 1,589 changed files with 44,091 additions and 12,697 deletions.
13 changes: 10 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const ModuleFindPath = Module._findPath;
const hacks = [
'eslint-plugin-node-core',
'eslint-plugin-markdown',
'babel-eslint',
'@babel/eslint-parser',
'@babel/plugin-syntax-class-properties',
];
Module._findPath = (request, paths, isMain) => {
const r = ModuleFindPath(request, paths, isMain);
Expand All @@ -37,8 +38,14 @@ Module._findPath = (request, paths, isMain) => {
module.exports = {
root: true,
plugins: ['markdown', 'node-core'],
parser: 'babel-eslint',
parserOptions: { sourceType: 'script' },
parser: '@babel/eslint-parser',
parserOptions: {
babelOptions: {
plugins: [Module._findPath('@babel/plugin-syntax-class-properties')],
},
requireConfigFile: false,
sourceType: 'script',
},
overrides: [
{
files: [
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ assert.throws(
);

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

Expand Down
File renamed without changes.
19 changes: 19 additions & 0 deletions tools/node_modules/@babel/core/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

327 changes: 327 additions & 0 deletions tools/node_modules/@babel/core/lib/config/caching.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9ae59c8

Please sign in to comment.