From 9366b0e3d13c6a6d2b5b2a9478c1e6dce15e7317 Mon Sep 17 00:00:00 2001 From: Matt Travi Date: Wed, 29 Dec 2021 02:03:50 -0600 Subject: [PATCH] feat(presets): added the rename of `babel-eslint` to `@babel/eslint-parser` (#13277) Co-authored-by: Michael Kriese --- lib/config/presets/internal/replacements.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/config/presets/internal/replacements.ts b/lib/config/presets/internal/replacements.ts index a6f027d1f1fef7..bc26992f054e28 100644 --- a/lib/config/presets/internal/replacements.ts +++ b/lib/config/presets/internal/replacements.ts @@ -5,6 +5,7 @@ export const presets: Record = { all: { description: 'All replacements', extends: [ + 'replacements:babel-eslint-to-eslint-parser', 'replacements:cucumber-to-scoped', 'replacements:hapi-to-scoped', 'replacements:jade-to-pug', @@ -13,6 +14,18 @@ export const presets: Record = { 'replacements:rollup-node-resolve-to-scoped', ], }, + 'babel-eslint-to-eslint-parser': { + description: 'babel-eslint was renamed under the @babel scope', + packageRules: [ + { + matchCurrentVersion: '>=7.11.0', + matchDatasources: ['npm'], + matchPackageNames: ['babel-eslint'], + replacementName: '@babel/eslint-parser', + replacementVersion: '7.11.0', + }, + ], + }, 'cucumber-to-scoped': { description: 'cucumber became scoped', packageRules: [