Skip to content

Commit

Permalink
fix: include deprecated props in rule (#239)
Browse files Browse the repository at this point in the history
* fix: include deprecated props in rule

* chore: add changeset

* fix: include TabNavLinkprops
  • Loading branch information
joshblack authored Sep 24, 2024
1 parent 9a58afb commit 3b2e023
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/proud-candles-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'eslint-plugin-primer-react': patch
---

Update use-deprecated-from-deprecated rule to include prop types
28 changes: 28 additions & 0 deletions src/rules/use-deprecated-from-deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3b2e023

Please sign in to comment.