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: nodejs#36321
Fixes: https://github.com/ensure
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
aduh95 authored and cjihrig committed Dec 8, 2020
1 parent 456daac commit 92c507b
Show file tree
Hide file tree
Showing 1,590 changed files with 44,107 additions and 12,713 deletions.
13 changes: 10 additions & 3 deletions .eslintrc.js
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
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.

0 comments on commit 92c507b

Please sign in to comment.