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()