eslint-plugin-react icon indicating copy to clipboard operation
eslint-plugin-react copied to clipboard

[HELP WANTED] does `react/prop-types` support typescript declaration(d.ts) files in JS-only project?

Open AbhinavRajesh opened this issue 3 months ago • 0 comments

Hi team,

I'm working on a JS-only codebase(no .ts or .tsx files), but we use TypeScript declaration(.d.ts) files to define types for our components.

I've configured eslint with eslint-plugin-react to enforce the react/prop-types rule, but it doesn’t seem to work when using JSDoc or types imported from these declaration files.

Could you please confirm if this is expected behavior? Am I missing something in my configuration, or is support for .d.ts and JSDoc typings outside the scope of this plugin?

Thanks in advance!

AbhinavRajesh avatar Aug 25 '25 13:08 AbhinavRajesh