From 3b2e023ce2215feff50a1b7f263d23db99f79ec2 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Tue, 24 Sep 2024 15:17:57 -0500 Subject: [PATCH] fix: include deprecated props in rule (#239) * fix: include deprecated props in rule * chore: add changeset * fix: include TabNavLinkprops --- .changeset/proud-candles-divide.md | 5 ++++ src/rules/use-deprecated-from-deprecated.js | 28 +++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .changeset/proud-candles-divide.md diff --git a/.changeset/proud-candles-divide.md b/.changeset/proud-candles-divide.md new file mode 100644 index 0000000..abef2a5 --- /dev/null +++ b/.changeset/proud-candles-divide.md @@ -0,0 +1,5 @@ +--- +'eslint-plugin-primer-react': patch +--- + +Update use-deprecated-from-deprecated rule to include prop types diff --git a/src/rules/use-deprecated-from-deprecated.js b/src/rules/use-deprecated-from-deprecated.js index 5b6c220..3d713ee 100644 --- a/src/rules/use-deprecated-from-deprecated.js +++ b/src/rules/use-deprecated-from-deprecated.js @@ -7,22 +7,50 @@ const components = [ identifier: 'Dialog', entrypoint: '@primer/react', }, + { + identifier: 'DialogProps', + entrypoint: '@primer/react', + }, + { + identifier: 'DialogHeaderProps', + entrypoint: '@primer/react', + }, { identifier: 'Octicon', entrypoint: '@primer/react', }, + { + identifier: 'OcticonProps', + entrypoint: '@primer/react', + }, { identifier: 'Pagehead', entrypoint: '@primer/react', }, + { + identifier: 'PageheadProps', + entrypoint: '@primer/react', + }, { identifier: 'TabNav', entrypoint: '@primer/react', }, + { + identifier: 'TabNavProps', + entrypoint: '@primer/react', + }, + { + identifier: 'TabNavLinkProps', + entrypoint: '@primer/react', + }, { identifier: 'Tooltip', entrypoint: '@primer/react', }, + { + identifier: 'TooltipProps', + entrypoint: '@primer/react', + }, ] const entrypoints = new Map()