summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2020-11-29 23:27:08 +0100
committerJames M Snell <jasnell@gmail.com>2020-12-07 10:05:29 -0800
commit5f1bf80b5e0f33040f108b7bc83e2e72e425727f (patch)
tree0162c937a762fc4e1fda9968fd143d82ab1becaf /.eslintrc.js
parent23f4b6ead712106bce397cd4d0207e3deef31e29 (diff)
downloadios-node-v8-5f1bf80b5e0f33040f108b7bc83e2e72e425727f.tar.gz
ios-node-v8-5f1bf80b5e0f33040f108b7bc83e2e72e425727f.tar.bz2
ios-node-v8-5f1bf80b5e0f33040f108b7bc83e2e72e425727f.zip
tools: upgrade to @babel/eslint-parser 7.12.1
PR-URL: https://github.com/nodejs/node/pull/36321 Fixes: https://github.com/ensure Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 51b6b6f27f..7f37fc19d5 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -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);
@@ -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: [