From 96ae45effb237198cba119fbf024116c8b649286 Mon Sep 17 00:00:00 2001 From: Kai Cataldo Date: Thu, 30 Jul 2020 19:35:02 +0000 Subject: [PATCH] Change to 7.2.0 --- eslint/babel-eslint-parser/src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eslint/babel-eslint-parser/src/index.js b/eslint/babel-eslint-parser/src/index.js index 85c8d79bdf60..e385fd5fda8f 100644 --- a/eslint/babel-eslint-parser/src/index.js +++ b/eslint/babel-eslint-parser/src/index.js @@ -15,7 +15,8 @@ import visitorKeys from "./visitor-keys"; let isRunningMinSupportedCoreVersion = null; function baseParse(code, options) { - const minSupportedCoreVersion = ">=7.0.0"; + // Ensure we're using a version of `@babel/core` that includes `parse()` and `tokTypes`. + const minSupportedCoreVersion = ">=7.2.0"; if (typeof isRunningMinSupportedCoreVersion !== "boolean") { isRunningMinSupportedCoreVersion = semver.satisfies( @@ -24,7 +25,6 @@ function baseParse(code, options) { ); } - // Ensure we're using a version of `@babel/core` that includes the `parse()` API. if (!isRunningMinSupportedCoreVersion) { throw new Error( `@babel/eslint-parser@${packageJson.version} does not support @babel/core@${babelCoreVersion}. Please upgrade to @babel/core@${minSupportedCoreVersion}`,