Skip to content

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

@AbhinavRajesh

Description

@AbhinavRajesh

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions