Skip to content

Commit

Permalink
feat(replacements): add airbnb-prop-types-to-prop-types-tools (#29329)
Browse files Browse the repository at this point in the history
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
  • Loading branch information
3 people committed Jun 10, 2024
1 parent e5d8594 commit f6a6a81
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/config/presets/internal/replacements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const presets: Record<string, Preset> = {
all: {
description: 'Apply crowd-sourced package replacement rules.',
extends: [
'replacements:airbnb-prop-types-to-prop-types-tools',
'replacements:apollo-server-to-scoped',
'replacements:babel-eslint-to-eslint-parser',
'replacements:containerbase',
Expand Down Expand Up @@ -51,6 +52,20 @@ export const presets: Record<string, Preset> = {
],
ignoreDeps: [], // Hack to improve onboarding PR description
},
// eslint-disable-next-line sort-keys
'airbnb-prop-types-to-prop-types-tools': {
description:
'`airbnb-prop-types` was given to a new maintainer and renamed to `prop-types-tools`.',
packageRules: [
{
matchCurrentVersion: '^2',
matchDatasources: ['npm'],
matchPackageNames: ['airbnb-prop-types'],
replacementName: 'prop-types-tools',
replacementVersion: '2.17.0',
},
],
},
'apollo-server-to-scoped': {
description: '`apollo-server` packages became scoped.',
packageRules: [
Expand Down

0 comments on commit f6a6a81

Please sign in to comment.