diff options
author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2020-11-30 01:27:08 +0300 |
---|---|---|
committer | Danielle Adams <adamzdanielle@gmail.com> | 2020-12-07 21:55:55 +0300 |
commit | 9ae59c847a315d8a6fe398e5c2c665e250d948d8 (patch) | |
tree | a1737af6b5802216429182cfde6361cf6c7d3a1b /.eslintrc.js | |
parent | 47345a1f84a418cf74c99ce071bd934dccc9b587 (diff) |
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.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 51b6b6f27fa..7f37fc19d5a 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: [ |